CN108206865A - Obtain the method and device in geographical location residing for user - Google Patents

Obtain the method and device in geographical location residing for user Download PDF

Info

Publication number
CN108206865A
CN108206865A CN201611179897.4A CN201611179897A CN108206865A CN 108206865 A CN108206865 A CN 108206865A CN 201611179897 A CN201611179897 A CN 201611179897A CN 108206865 A CN108206865 A CN 108206865A
Authority
CN
China
Prior art keywords
geographical location
user
address
residing
network session
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611179897.4A
Other languages
Chinese (zh)
Inventor
王宇航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201611179897.4A priority Critical patent/CN108206865A/en
Publication of CN108206865A publication Critical patent/CN108206865A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number

Abstract

The invention discloses a kind of method and devices for obtaining geographical location residing for user, are related to network technique field, solve can not preferably judge user it is current definite where geographical location, and then cause geographical location residing for user judgement it is inaccurate the problem of.The present invention main technical schemes be:Obtain the IP address of all-network session in the range of user's predetermined time;The IP address for parsing the all-network session determines geographical location belonging to each IP address;Geographical location residing for by preset rules determining the user according to the information in the affiliated geographical location of each IP address.Present invention is mainly used for obtain geographical location residing for user.

Description

Obtain the method and device in geographical location residing for user
Technical field
The present invention relates to network technique field more particularly to a kind of method and devices for obtaining geographical location residing for user.
Background technology
With the continuous development of network technology, internet has become an indispensable part in people's life.No matter It is to rest at home, in company work or gos out tourism, people be unable to do without the use of internet.Pass through calculating in people During the equipment browse internet of machine one kind, internet can provide an IP address (Internet Protocol for each equipment Address, internet protocol address).Wherein, when browsing internet each time, system can all preserve a network session, wherein, " call " when network session can be understood as user by browser browse network in equipment records.Due to each IP Address corresponds to the distinct device of different regions, therefore can to obtain user current for the parsing of IP address when passing through network session Address information.
IP address when in the prior art, by obtaining network session, the address information of parsing user at that time, and then To geographical location of the user where specific.But in practical applications, after due to getting geographical location every time, it can be all covered Therefore the geographical location of preceding record, can only get the geographical location record of last time every time.However, if user is just Other places is only gone to go on business primary when having returned to original geographical location, last time is only recorded by the prior art when going on business Geographical location records, and covers the original permanent geographical location of user, and then can not preferably judge that user is currently true Geographical location where cutting, and then cause the judgement in geographical location residing for user inaccurate.
Invention content
In view of the above problems, it is proposed that the present invention overcomes the above problem in order to provide one kind or solves at least partly State the method and device for obtaining geographical location residing for user of problem.
In order to achieve the above objectives, present invention generally provides following technical solutions:
On the one hand, an embodiment of the present invention provides a kind of method for obtaining geographical location residing for user, this method includes:
Obtain the IP address of all-network session in the range of user's predetermined time;
The IP address for parsing the all-network session determines geographical location belonging to each IP address;
Geographical location residing for by preset rules determining the user according to the information in the affiliated geographical location of each IP address.
On the other hand, the embodiment of the present invention also provides a kind of device for obtaining geographical location residing for user, which includes:
First acquisition unit, for obtaining the IP address of all-network session in the range of user's predetermined time;
Resolution unit, the IP address for parsing the all-network session determine the geographical location belonging to each IP address;
Determination unit determines the user institute for the information according to the affiliated geographical location of each IP address by preset rules Locate geographical location.
By above-mentioned technical proposal, a kind of method and device for obtaining geographical location residing for user provided by the invention.With In the prior art, after getting geographical location every time, the geographical location recorded before can be all covered, and then can only get every time The geographical location record of last time is compared, and the present invention passes through with obtaining in the range of user's predetermined time the IP of all-network session Location, and then the IP address for parsing the all-network session determines the geographical location belonging to each IP address, finally according to each IP The information in the affiliated geographical location in location determines geographical location residing for the user by preset rules, can get predetermined time model The geographical location residing for interior user is enclosed, and then preferably judges the geographical location at the current definite place of user, and then improve The accuracy that geographical location residing for user judges.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this field Technical staff will become clear.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is a kind of method flow diagram for obtaining geographical location residing for user provided in an embodiment of the present invention;
Fig. 2 is another method flow diagram for obtaining geographical location residing for user provided in an embodiment of the present invention;
Fig. 3 is a kind of apparatus structure schematic diagram for obtaining geographical location residing for user provided in an embodiment of the present invention;
Fig. 4 is another apparatus structure schematic diagram for obtaining geographical location residing for user provided in an embodiment of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
The advantages of to make technical solution of the present invention, is clearer, and the present invention is made specifically with reference to the accompanying drawings and examples It is bright.
An embodiment of the present invention provides a kind of method for obtaining geographical location residing for user, as shown in Figure 1, the method packet It includes:
101st, the IP address of all-network session in the range of user's predetermined time is obtained.
In internet, network session can be understood as recording a certain user pass through it is primary between browser and server Call, only this converse is realized in a manner that browser browses.When user closes browser, can be regarded as Into primary network session.Usually, network session can be stored in the system log of current device.
In this step, the predetermined time ranging from needs set time range according to us, for example, can be with Predetermined time range can be chosen 3 months, can also be chosen for 1 year, and specific selection range can be carried out voluntarily as needed It chooses, does not do specific restriction herein.
102nd, the IP address of the parsing all-network session determines the geographical location belonging to each IP address.
Wherein, IP address is a kind of unified Internet protocol address, is that each host on internet all has Logical address, it can be understood as the Position Number in internet of every computer has uniqueness.Therefore, pass through IP address The actual address information corresponding to current IP address can be parsed, and then can obtain geographical location at that time.Wherein, it obtains Geographical location at that time can be specially a certain region in country, province, city or city, not do specific restriction herein.
For example, when the IP address of network session is " 221.199.66.121 ", can be parsed by certain algorithm or software The corresponding cities of this IP are " Ningxia Hui Autonomous Region's Shizuishan City ".It should be noted that the parsing network session IP address Algorithm or software can voluntarily choose as needed, do not do specific restriction herein.
103rd, the user is determined by preset rules according to the information in the affiliated geographical location of each IP address residing for geographical position It puts.
After the diverse geographic location belonging to each IP address is obtained, by preset rules with determining residing for the user Manage position.Wherein described rule can be the geographical location most geographical location of current quantity being determined as where user. Under normal circumstances, required determining geographical location can be specific to city rank, and therefore, selected exemplary geographical location is with specific Based on city.But it should be recognized that selected example is only exemplary, the specific restriction in geographical location, with reality It is chosen, is not done specific restriction herein.
For example, it is respectively when getting the different cities belonging to each IP address:Beijing, Shanghai, Guangzhou, during Shenzhen, Wherein, Beijing 22 times, 3 times, Shanghai, 12 times, Guangzhou, 1 time, Shenzhen can then determine the different cities belonging to current subscriber IP address Middle Beijing is occupied the first in four cities with 22 times, it may be determined that and be city residing for user be Beijing, i.e. geography residing for user Position is Beijing.
A kind of method for obtaining geographical location residing for user provided by the invention.With in the prior art, getting ground every time After managing position, the geographical location recorded before can be all covered, and then the geographical location record of last time can only be got every time It compares, the present invention parses all nets by obtaining the IP address of all-network session in the range of user's predetermined time The IP address of network session determines the geographical location belonging to each IP address, is finally led to according to the information in the affiliated geographical location of each IP address It crosses preset rules and determines geographical location residing for the user, the geographical position residing for the user in the range of the predetermined time can be got It puts, and then preferably judges the geographical location at the current definite place of user, and then improve geographical location residing for user and sentence Disconnected accuracy.
An embodiment of the present invention provides another method for obtaining geographical location residing for user, as shown in Fig. 2, the method Including:
201st, the IP address of all-network session in the range of user's predetermined time is obtained.
Wherein, it is specifically included in this step:
Record network session all in the range of user's predetermined time;Parsing is carried out to the network session and obtains network meeting Talk about corresponding IP address.
Typically, since IP address is a kind of unified Internet protocol address, it is each host on internet The logical address all having.Therefore each IP address corresponds to the specific address of an equipment.Network session described in this step Pass through primary " call " that is recorded in system log during browser browse network for user.
In this step, the acquisition of IP address is determined according to network session, therefore, if wanting to obtain IP address, is needed First get the corresponding network session of user.The acquisition modes of network session are not specifically limited, and can be selected as needed It takes.Then, when being parsed to the IP address got, since IP address corresponds to the specific address of each equipment, The address information of user can be obtained by parsing.
202nd, the IP address of the parsing all-network session determines the geographical location belonging to each IP address.
By in step 201, by parsing the IP address of the network session, the address information of user can be obtained, according to institute The address information stated can obtain the information of user geographic location.Wherein, geographical location can be country, province, city Or some region in city, specifically according to user choose, not limit herein, but the geographical location chosen Generally it is specially city.
For example, by parsing, we can obtain user geographic location:The cities such as Beijing, Shanghai, Shenzhen.It needs Illustrate, as described in step 201, it is IP address in the range of the predetermined time to get, therefore, in this step finally Obtained geographical location is not necessarily unique, i.e., in the range of certain time, the quantity of the geographic location of user is likely to not Only one.
203rd, the user is determined by preset rules according to the information in the affiliated geographical location of each IP address residing for geographical position It puts.
Wherein, this step is specially:
A, the affiliated geographical location of same IP address is grouped according to geographical location difference;
B, the occurrence number in the geographical location of statistical packet;
C, the geographical location according to residing for the number that the geographical location information of grouping and its correspondence occur determines the user.
Specifically in this step, however, it is determined that each affiliated geographical location of IP address is different multiple and different geography During position, since the geographical location of appearance is different, in order to determine the geographical location residing for user, then need to having occurred Geographical location is grouped and counts the process of occurrence number, according to the occurrence number in different groups of geographical location, it can be determined that Go out the geographical location that user often occurs, the geographical location according to residing for this geographical location may determine that user.Certainly, if really When geographical location belonging to fixed IP address is one, then the position is actually the location of user, i.e. user Geographical location does not change.But in most cases, the geographical location of user is not unique as described in step 202.
It should be noted that it carries out in step a to the affiliated geographical location of same IP address according to geographical location difference Before being grouped, it is also necessary to geographical location mark network session time label.It is marked according to the time of network session, The time corresponding to different geographical positions can be got information about, and is prepared for follow-up step.
In step c is carried out according to residing for the number that the geographical location information of grouping and its correspondence occur determines the user Geographical location when, be specifically as follows:Determine that the user resides geographical location according to the occurrence number in each geographical location, with And determine that the corresponding geographical location of last time network session is nearest geographical location according to the time label of network session.
Wherein, it when determining that the user resides geographical location according to the occurrence number in each geographical location, needs to institute It states geographical location to be ranked up according to occurrence number, and resident geographical location is determined according to sort order, the specific steps are: First, the geographical location is subjected to sort ascending according to occurrence number;2nd, it is the geographical location of N before ranking in the sequence is true It is set to the user and resides geographical location, N is natural number.
Since the number that the geographical location occurs is different, the geographical location of user is continually changing.Therefore it needs The geographical location that user often occurs is come out, and chooses the several geographical locations of occurrence number highest as needed as use The resident geographical location at family characterizes the residing geographical location of active user with this.It is specific to need the geographical location of appearance Sort ascending is carried out according to number, then the several former in sequence is set as to the resident geographical location of user.Selected by specific Resident geographical location occurrence number ranking N can be as needed, is voluntarily chosen.
For example, Lee active user three, the affiliated diverse geographic location of each IP address and its number are respectively:12 times, Beijing is breathed out That shore 4 times, Lijing 3 times, 22 times, Shanghai, 15 times, Chongqing, when selected resident geographical number of positions is 3.Due to the IP address of user Affiliated geographical location is not same geographical location, then carries out sort ascending according to occurrence number to above-mentioned geographical location, wherein before Three is entitled:22 times, Shanghai, 15 times, Chongqing, 12 times, Beijing, it is thus determined that the resident geographical location of Lee three is Shanghai, and Chongqing, Beijing. If in geographical location mark network session time label, when the corresponding geographical location of the last one time label is Lijing, then The nearest geographical location for being determined as Lee three is Lijing.
204th, the identification information of user is obtained.
It should be noted that if when the equipment that user carries out network session is intelligent terminal, then this step and following is carried out Step.
When it is intelligent terminal user to determine user, need to obtain the identification information of active user, to subsequent use, There are many kinds of the acquisition modes of identification information, can be chosen as needed, this step does not do specific restriction.
205th, the geographical location according to residing for user obtains and the relevant information on services in the geographical location.
Firstly, it is necessary to the geographical location where active user is obtained in abovementioned steps, then, according to where active user Geographical location, obtain the related service of current geographic position.Wherein, information on services can include:Hotel accommodations information, cuisines Recommendation information, local conditions and customs information, Weather information, scenic spot information etc..
206th, the information on services is sent to user corresponding to the identification information.
The local information on services obtained in step 205 is sent to the user containing identification information in step 204, passes through this Step can make the related service information in geographical location residing for user's acquisition of intelligent terminal.
Another method for obtaining geographical location residing for user provided by the invention.With in the prior art, getting every time Behind geographical location, the geographical location recorded before can be all covered, and then the geographical location note of last time can only be got every time Picture recording ratio, the present invention are parsed described all by obtaining the IP address of all-network session in the range of user's predetermined time The IP address of network session determines the geographical location belonging to each IP address, finally according to the information in the affiliated geographical location of each IP address Geographical location residing for the user is determined by preset rules, can get the geography residing for the user in the range of the predetermined time Position, and then preferably judge the geographical location at the current definite place of user, and then improve geographical location residing for user The accuracy of judgement.Further, the present invention is not also by being same geographical location when the geographical location belonging to determining User IP When, according to the sort ascending to geographical location according to occurrence number, determine the resident geographical location of user, and according to geographical position Mark network session time label is put, the corresponding geographical location of the time label that last time occurs is determined as nearest geography Position, the further accurate judgement to user geographic location, and after determining user for intelligent terminal user, pass through The information on services of user geographic location is obtained, and information on services is supplied to user, user is made to reduce the related clothes of acquisition Information the time it takes of being engaged in and energy.
Further, the embodiment of the present invention provides a kind of device for obtaining geographical location residing for user, as shown in figure 3, institute Device is stated to include:First acquisition unit 31, resolution unit 32, determination unit 33.
First acquisition unit 31 can be used for obtaining the IP address of all-network session in the range of user's predetermined time.
Resolution unit 32, the IP address that can be used for parsing the all-network session that the first acquisition unit 31 obtains are true Geographical location belonging to fixed each IP address.
Determination unit 33, can be used for being determined by preset rules according to the information in the affiliated geographical location of each IP address described in Geographical location residing for user.
It is it should be noted that each involved by the device in geographical location residing for a kind of acquisition user provided in an embodiment of the present invention Other corresponding descriptions of functional unit, can be described with the corresponding of method shown in reference chart 1, and details are not described herein, it should be understood that Device in the present embodiment can correspond to the full content realized in preceding method embodiment.
A kind of device for obtaining geographical location residing for user provided by the invention.Described device includes:First acquisition unit, Resolution unit, determination unit.With in the prior art, after getting geographical location every time, can all cover the geographical position recorded before It puts, and then the geographical location record that can only get last time every time is compared, the present invention is by obtaining user's predetermined time model The IP address of interior all-network session is enclosed, and then the IP address for parsing the all-network session determines the ground belonging to each IP address Manage position, the user is finally determined by preset rules according to the information in the affiliated geographical location of each IP address residing for geographical position It puts, the geographical location residing for the user in the range of the predetermined time can be got, and then preferably judge that user is currently true Geographical location where cutting, and then improve the accuracy that geographical location residing for user judges.
Further, the embodiment of the present invention provides another device for obtaining geographical location residing for user, as shown in figure 4, Described device includes:First acquisition unit 41, resolution unit 42, determination unit 43.
First acquisition unit 41 can be used for obtaining the IP address of all-network session in the range of user's predetermined time.
Resolution unit 42, the IP address that can be used for parsing the all-network session that the first acquisition unit 41 obtains are true Geographical location belonging to fixed each IP address.
Determination unit 43, can be used for being determined by preset rules according to the information in the affiliated geographical location of each IP address described in Geographical location residing for user.
Further, the determination unit 43 includes:Grouping module 4301, statistical module 4302 and determining module 4303.
The grouping module 4301 can be used for the affiliated geographical location of same IP address according to geographical location difference It is grouped.
The statistical module 4302, can be used for the occurrence number in the geographical location of statistical packet.
The determining module 4303 can be used for being determined according to the number that the geographical location information of grouping and its correspondence occur Geographical location residing for the user.
Further, the determination unit 43, further includes:Labeling module 4304.
The labeling module 4304 can be used for geographical location mark network session time label.
Further, the determining module 4303 specifically can be used for being determined according to the occurrence number in each geographical location The user resides geographical location and determines the corresponding geography of last time network session according to the time label of network session Position is nearest geographical location.
Further, the determining module 4303, including:Sorting sub-module 430301 and determination sub-module 430302.
The sorting sub-module 430301 can be used for the geographical location carrying out sort ascending according to occurrence number.
The determination sub-module 430302 can be used for the geographical location of N before ranking in the sequence being determined as described User resides geographical location, and N is natural number.
Further, described device further includes:Second acquisition unit 44, transmitting element 45.
The second acquisition unit 44 can be used for obtaining the identification information of user.
The second acquisition unit 44 can be also used for being obtained and the geographical location according to the geographical location residing for user Relevant information on services.
The transmitting element 45 can be used for the mark that the information on services is sent to the second acquisition unit 44 and is obtained Know the corresponding user of information.
Further, the first acquisition unit 41 includes:Logging modle 4101 and parsing module 4102.
The logging modle 4101 can be used for recording network session all in the range of user's predetermined time.
The parsing module 4102 can be used for carrying out the network session parsing with obtaining the corresponding IP of network session Location.
It should be noted that another device for obtaining geographical location residing for user provided in an embodiment of the present invention, involved And other corresponding descriptions of each functional unit, it can be described with the corresponding of method shown in reference chart 2, details are not described herein, but it should Clearly, the device in the present embodiment can correspond to the full content realized in preceding method embodiment.
Another device for obtaining geographical location residing for user provided by the invention.Described device includes:First obtains list Member, resolution unit, determination unit, second acquisition unit, transmitting element.With in the prior art, after getting geographical location every time, The geographical location recorded before will be covered, and then the geographical location record that can only get last time every time is compared, this hair The bright IP address by obtaining all-network session in the range of user's predetermined time, and then parse the IP of the all-network session Address determines the geographical location belonging to each IP address, finally passes through preset rules according to the information in the affiliated geographical location of each IP address It determines geographical location residing for the user, the geographical location residing for the user in the range of the predetermined time, Jin Ergeng can be got Good judges the geographical location at the current definite place of user, and then improves the accurate of geographical location judgement residing for user Degree.Further, the present invention also by when determine the geographical location belonging to User IP be same geographical location when, according to over the ground The sequence of position number is managed, determines the resident geographical location of user, and according to geographical location mark network session time label The corresponding geographical location of the time label that last time occurs is determined as nearest geographical location, it is further accurate to user The judgement of geographic location, and after determining user for intelligent terminal user, by obtaining user geographic location Information on services, and information on services is supplied to user, reduce user and obtain related service information the time it takes and essence Power.
The device for obtaining geographical location residing for user includes processor and memory, above-mentioned first acquisition unit, solution Unit, determination unit, second acquisition unit, transmitting element etc. is analysed to store in memory, by processor as program unit Above procedure unit stored in memory is performed to realize corresponding function.
Comprising kernel in processor, gone in memory to transfer corresponding program unit by kernel.Kernel can set one Or more, preferably to judge the geographical location at the current definite place of user by adjusting kernel parameter, and then improve and sentence The accuracy in geographical location residing for disconnected user.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes at least one deposit Store up chip.
Present invention also provides a kind of computer program products, first when being performed on data processing equipment, being adapted for carrying out The program code of beginningization there are as below methods step:Obtain the IP address of all-network session in the range of user's predetermined time;Parsing The IP address of the all-network session determines the geographical location belonging to each IP address;According to the affiliated geographical location of each IP address Information determines geographical location residing for the user by preset rules.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the application Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the application The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real The device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, CD-ROM read-only memory (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, available for storing the information that can be accessed by a computing device.It defines, calculates according to herein Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It these are only embodiments herein, be not limited to the application.To those skilled in the art, The application can have various modifications and variations.All any modifications made within spirit herein and principle, equivalent replacement, Improve etc., it should be included within the scope of claims hereof.

Claims (10)

  1. A kind of 1. method for obtaining geographical location residing for user, which is characterized in that including:
    Obtain the IP address of all-network session in the range of user's predetermined time;
    The IP address for parsing the all-network session determines geographical location belonging to each IP address;
    Geographical location residing for by preset rules determining the user according to the information in the affiliated geographical location of each IP address.
  2. 2. according to the method described in claim 1, it is characterized in that, the information according to the affiliated geographical location of each IP address is led to It crosses preset rules and determines geographical location residing for the user, including:
    The affiliated geographical location of same IP address is grouped according to geographical location difference;
    The occurrence number in the geographical location of statistical packet;
    Geographical location according to residing for the number that the geographical location information of grouping and its correspondence occur determines the user.
  3. 3. according to the method described in claim 2, it is characterized in that, it is described to the affiliated geographical location of same IP address according to Before geographical location difference is grouped, the method further includes:
    To geographical location mark network session time label.
  4. 4. according to the method described in claim 3, it is characterized in that, the geographical location information according to grouping corresponds to out with it Existing number determines that the geographical location residing for the user includes:
    Determine that the user resides geographical location and the time according to network session according to the occurrence number in each geographical location Label determines that the corresponding geographical location of last time network session is nearest geographical location.
  5. 5. according to the method described in claim 4, it is characterized in that, the occurrence number in each geographical location of the basis determines institute It states user and resides geographical location and include:
    The geographical location is subjected to sort ascending according to occurrence number;
    The geographical location of N before ranking in the sequence is determined as the user and resides geographical location, N is natural number.
  6. 6. method according to any one of claims 1-5, which is characterized in that if the user is intelligent terminal user, After geographical location residing for determining the user by preset rules according to the information in the affiliated geographical location of each IP address, the party Method further includes:
    Obtain the identification information of user;
    Geographical location according to residing for user obtains and the relevant information on services in the geographical location;
    The information on services is sent to user corresponding to the identification information.
  7. 7. method according to any one of claims 1-5, which is characterized in that in the range of acquisition user's predetermined time The IP address of all-network session includes:
    Record network session all in the range of user's predetermined time;
    Parsing is carried out to the network session and obtains the corresponding IP address of network session.
  8. 8. a kind of device for obtaining geographical location residing for user, which is characterized in that including:
    First acquisition unit, for obtaining the IP address of all-network session in the range of user's predetermined time;
    Resolution unit, the IP address for parsing the all-network session determine the geographical location belonging to each IP address;
    Determination unit, for the information according to the affiliated geographical location of each IP address by preset rules determine the user residing for Manage position.
  9. 9. device according to claim 8, which is characterized in that the determination unit, including:
    Grouping module, for being grouped to the affiliated geographical location of same IP address according to geographical location difference;
    Statistical module, for the occurrence number in the geographical location of statistical packet;
    Determining module, the number occurred for the geographical location information according to grouping and its correspondence determine ground residing for the user Manage position.
  10. 10. device according to claim 9, which is characterized in that the determination unit further includes:Labeling module,
    The labeling module, for geographical location mark network session time label.
CN201611179897.4A 2016-12-19 2016-12-19 Obtain the method and device in geographical location residing for user Pending CN108206865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611179897.4A CN108206865A (en) 2016-12-19 2016-12-19 Obtain the method and device in geographical location residing for user

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611179897.4A CN108206865A (en) 2016-12-19 2016-12-19 Obtain the method and device in geographical location residing for user

Publications (1)

Publication Number Publication Date
CN108206865A true CN108206865A (en) 2018-06-26

Family

ID=62602865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611179897.4A Pending CN108206865A (en) 2016-12-19 2016-12-19 Obtain the method and device in geographical location residing for user

Country Status (1)

Country Link
CN (1) CN108206865A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151088A (en) * 2018-08-20 2019-01-04 下代互联网重大应用技术(北京)工程研究中心有限公司 The statistical method of IPv6 access user's geographical distribution ranking based on Http log

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103547333A (en) * 2013-03-26 2014-01-29 华为技术有限公司 Ad pushing method, device and system
CN104426844A (en) * 2013-08-21 2015-03-18 深圳市腾讯计算机系统有限公司 Safety authentication method, server and safety authentication system
CN104601547A (en) * 2014-12-22 2015-05-06 新浪网技术(中国)有限公司 Illegal operation identification method and device
CN104680336A (en) * 2015-03-24 2015-06-03 深圳市中兴云服务有限公司 Staff position determination method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103547333A (en) * 2013-03-26 2014-01-29 华为技术有限公司 Ad pushing method, device and system
CN104426844A (en) * 2013-08-21 2015-03-18 深圳市腾讯计算机系统有限公司 Safety authentication method, server and safety authentication system
CN104601547A (en) * 2014-12-22 2015-05-06 新浪网技术(中国)有限公司 Illegal operation identification method and device
CN104680336A (en) * 2015-03-24 2015-06-03 深圳市中兴云服务有限公司 Staff position determination method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151088A (en) * 2018-08-20 2019-01-04 下代互联网重大应用技术(北京)工程研究中心有限公司 The statistical method of IPv6 access user's geographical distribution ranking based on Http log

Similar Documents

Publication Publication Date Title
CN106897205A (en) A kind of test data generating method and device
CN104426713B (en) The monitoring method and device of web site access effect data
CN104462534B (en) network information sharing method and device
CN109255564A (en) Pick-up point address recommendation method and device
CN108416616A (en) The sort method and device of complaints and denunciation classification
CN106874320A (en) The method and apparatus of distributive type data processing
CN108282508A (en) Determination method and device, information-pushing method and the device in geographical location
CN107404408A (en) A kind of virtual identity association recognition methods and device
CN106487939B (en) A kind of method and apparatus, a kind of electronic equipment of determining User IP subnet
CN107590123A (en) Vehicle-mounted middle place context reference resolution method and device
US20210133227A1 (en) Access points for maps
CN106547646B (en) Data backup and recovery method and data backup and recovery device
CN109684052A (en) Transaction analysis method, apparatus, equipment and storage medium
CN102316167A (en) Website recommending method, system thereof and network server
CN106790744A (en) IP dispatching methods and system
CN109743309A (en) A kind of illegal request recognition methods, device and electronic equipment
CN114338413A (en) Method and device for determining topological relation of equipment in network and storage medium
CN108207012A (en) A kind of flow control methods, device, terminal and system
CN108900547A (en) Return operated control method and device
CN108154024A (en) A kind of data retrieval method, device and electronic equipment
CN113190267B (en) Dynamic configuration method and system of interface layout
CN109271438A (en) A kind of data bank access method and its system
CN109982158A (en) A kind of distribution method, device and the server of UGC video
CN104750860B (en) A kind of date storage method of uncertain data
CN107220260A (en) The method and device that a kind of page is shown

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180626