CN104244174A - Method for obtaining geographical location information of terminals and server - Google Patents

Method for obtaining geographical location information of terminals and server Download PDF

Info

Publication number
CN104244174A
CN104244174A CN201310233403.6A CN201310233403A CN104244174A CN 104244174 A CN104244174 A CN 104244174A CN 201310233403 A CN201310233403 A CN 201310233403A CN 104244174 A CN104244174 A CN 104244174A
Authority
CN
China
Prior art keywords
terminal
geographical location
identification
wireless network
information
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.)
Granted
Application number
CN201310233403.6A
Other languages
Chinese (zh)
Other versions
CN104244174B (en
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201310233403.6A priority Critical patent/CN104244174B/en
Publication of CN104244174A publication Critical patent/CN104244174A/en
Priority to HK15102901.7A priority patent/HK1202753A1/en
Application granted granted Critical
Publication of CN104244174B publication Critical patent/CN104244174B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method for obtaining geographical location information of terminals and a server. The method includes the steps of obtaining a positioning service request for positioning the first terminal and first identity information of the first terminal, receiving second identity information sent by the second terminal with the location positioning function, judging whether the first identity information and the second identity information are matched or not, obtaining the geographical location information of the second terminal when the first identity information and the second identity information are matched, and determining the geographical location information of the second terminal as the geographical location information of the first terminal. By the adoption of the method, the server or a device, the accuracy of the obtained geographical location information of the first terminal can be improved.

Description

The acquisition methods of the geographical location information of terminal and server
Technical field
The application relates to network data processing field, particularly a kind of acquisition methods of geographical location information of terminal and server.
Background technology
At more and more universal present of GPS (Global Positioning System, global positioning system), some mobile terminals, such as mobile phone or PAD (panel computer) etc., all have GPS positioning function.In this application, the mobile terminal these with GPS positioning function is called the second terminal.But it realizes positioning function also to have some communication terminals not have hardware supports, such as, at present, PC (Personal Computer, personal computer) and notebook computer etc.
In prior art, in in acquisition, those itself do not have the geographical location information of the communication terminal of positioning function, can according to IP (Internet Protocol, the agreement interconnected between the network) address of communication terminal online to confirm the position of this communication terminal.But the IP generally in IP storehouse can only indicate a geographic area in a big way, this just makes prior art when carrying out itself and not having the acquisition of the geographical location information of the communication terminal of positioning function, often can only navigate to a geographical position in a big way, make the geographical location information precision of the communication terminal got lower.
In a word, the technical problem needing those skilled in the art urgently to solve at present is exactly: a kind of geographical location information method obtaining terminal of the proposition how can innovate, with the problem that the acquisition result precision solving the geographical location information of first terminal in prior art is lower.
Summary of the invention
Technical problems to be solved in this application are to provide a kind of acquisition methods of geographical location information of terminal, the problem that the acquisition result precision in order to solve the geographical location information of first terminal in prior art is lower.
Present invention also provides a kind of acquisition server of geographical location information of terminal, in order to ensure said method implementation and application in practice.
In order to solve the problem, this application discloses a kind of acquisition methods of geographical location information of terminal, comprising:
Obtain the first identification information of request for location services and the first terminal that first terminal is positioned;
Receive the second identification information of the second terminal transmission with position location functionality;
Judge whether described first identification information mates with the second identification information;
When the first identification information and the second identification information match, obtain the geographical location information of described second terminal;
The geographical location information of described second terminal is defined as the geographical location information of described first terminal.
Optionally, described first identification information comprises: the first user mark of first terminal and/or the first wireless network identification, and described second identification information comprises: the second user ID of the second terminal and/or second wireless network mark.
Optionally, described method also comprises:
Receive the device identification of the second terminal that described second terminal sends;
Accordingly, the geographical location information of described second terminal of described acquisition, comprising:
Device identification according to described second terminal sends positioning command, to trigger the location that described second terminal carries out geographical position to the second terminal;
The geographical location information returned after receiving described second terminal positioning success.
Optionally, when described identification information is wireless network identification, described method also comprises:
Receive the geographical location information corresponding with wireless network identification that described second terminal sends;
Accordingly, the geographical location information of described second terminal of described acquisition, comprising:
Wireless network identification according to coupling directly obtains the geographical location information corresponding with the wireless network identification of described coupling.
Optionally, when identification information is user ID, described first identification information is the accounts information of the first client-side program that first terminal logs in; Described second identification information is the accounts information of the second client-side program that the second terminal logs in; Wherein, described first client-side program and described second client-side program are identical program or associated program each other.
Optionally, when described identification information comprises user ID and wireless network identification, whether described the second identification information judging that described first identification information and second terminal with position location functionality send mates, and comprising:
Judge that the first wireless network identification of described first terminal identifies with the second wireless network of described second terminal whether to mate; If not, then judge whether the user ID of the login user of described first terminal mates with the user ID of the login user of described second terminal.
Optionally, also comprise:
The geographical location information of described first terminal is back to described first terminal.
The geographical location information that this application discloses a kind of terminal obtains server, and this server comprises:
First acquisition module, for obtaining the first identification information of request for location services and the first terminal positioned first terminal;
First receiver module, for receiving the second identification information of the second terminal transmission with position location functionality;
Judge module, for judging whether described first identification information mates with described second identification information;
Second acquisition module, for when the result of described judge module is for being, obtains the geographical location information of described second terminal;
Determination module, for being defined as the geographical location information of described first terminal by the geographical location information of described second terminal.
Optionally, described first identification information comprises: the first user mark of first terminal and/or the first wireless network identification, and described second identification information comprises: the second user ID of the second terminal and/or second wireless network mark.
Optionally, also comprise at described server:
Second receiver module, for receiving the mark of the second terminal that described second terminal sends;
Accordingly, described second acquisition module, comprising:
Send submodule, send positioning command, to trigger the location that described second terminal carries out geographical position for the device identification according to described second terminal to the second terminal;
Receive submodule, for receiving the geographical location information that returns after described second terminal positioning success.
Optionally, when described identification information is wireless network identification, described server also comprises:
3rd receiver module, for receiving the geographical location information corresponding with wireless network identification that described second terminal sends;
Accordingly, described acquisition module, specifically for:
Wireless network identification according to coupling directly obtains the geographical location information corresponding with the wireless network identification of described coupling.
Optionally, when described identification information is user ID, described first identification information is the accounts information of the first client-side program that first terminal logs in; Described second identification information is the accounts information of the second client-side program that the second terminal logs in; Wherein, described first client-side program and described second client-side program are identical program or associated program each other.
Optionally, when described identification information comprises user ID and wireless network identification, described judge module, comprising:
Whether first judges submodule, mate for judging that the first wireless network identification of described first terminal identifies with the second wireless network of described second terminal;
Second judges submodule, for when described first judges that the result of submodule is no, judges whether the user ID of the login user of described first terminal mates with the user ID of the login user of described second terminal.
Optionally, also comprise:
Return module, for the geographical location information of described first terminal is back to described first terminal.
Compared with prior art, the embodiment of the present application comprises following advantage:
In this application, when not having the location of first terminal of GPS positioning function, adopt the mode that the geographical location information with reference to second terminal with position location functionality positions, if the second identification information of the first identification information of first terminal and the second terminal can mate, then direct using the geographical location information of the second terminal that the gets geographical location information as first terminal.Because the second terminal has position location functionality, and both identification information match, so the geographical location information of the second terminal positioning is just comparatively accurate as the geographical location information of first terminal.Therefore, the precision of the acquisition result of the geographical location information of first terminal is just improved.Further, the geographical location information of the first terminal determined can also return to first terminal, is so also beneficial to the geographical location information that the user logging in first terminal knows this first terminal place, promotes Consumer's Experience.
Certainly, the arbitrary product implementing the application might not need to reach above-described all advantages simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present application, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the acquisition methods embodiment one of the geographical location information of the terminal of the application;
Fig. 2 is the flow chart of a kind of execution mode of step 104 in the application's embodiment of the method one;
Fig. 3 is the flow chart of the acquisition methods embodiment two of the geographical location information of the terminal of the application;
Fig. 4 is the structural framing figure of the acquisition server example one of the geographical location information of the terminal of the application;
Fig. 5 is the structural framing figure of a kind of execution mode of judge module in the application's server example one;
Fig. 6 is the structured flowchart of the acquisition server example two of the geographical location information of the terminal of the application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, be clearly and completely described the technical scheme in the embodiment of the present application, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of the application's protection.
The application can be used in numerous general or special purpose calculation element environment or configuration.Such as: personal computer, server computer, handheld device or portable set, laptop device, multi-processor device, the distributed computing environment (DCE) comprising above any device or equipment etc.
The application can describe in the general context of computer executable instructions, such as program module.Usually, program module comprises the routine, program, object, assembly, data structure etc. that perform particular task or realize particular abstract data type.Also can put into practice the application in a distributed computing environment, in these distributed computing environment (DCE), be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium comprising memory device.
In one typically configuration, computing equipment comprises one or more processor (CPU), input/output interface, network interface and internal memory.Internal memory may comprise the volatile memory in computer-readable medium, and the forms such as random access memory (RAM) and/or Nonvolatile memory, as read-only memory (ROM) or flash memory (flash RAM).Internal memory is the example of computer-readable medium.Computer-readable medium comprises permanent and impermanency, removable and non-removable media can be stored to realize information by any method or technology.Information can be computer-readable instruction, data structure, the module of program or other data.The example of the storage medium of computer comprises, but be not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), the random access memory (RAM) of other types, read-only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, tape magnetic rigid disk stores or other magnetic storage apparatus or any other non-transmitting medium, can be used for storing the information can accessed by computing equipment.According to defining herein, computer-readable medium does not comprise of short duration computer readable media (transitory media), as data-signal and the carrier wave of modulation.
One of main thought of the application can comprise, the request for location services of first terminal and the first identification information of first terminal is obtained by server, and receive the second identification information of the second terminal transmission with position location functionality, judge whether described first identification information mates with the second identification information again, when the first identification information and the second identification information match, server obtains the geographical location information of described second terminal, and the geographical location information of described second terminal is defined as the geographical location information of described first terminal.Because the geographical location information that with reference to first terminal location in the embodiment of the present application obtains the geographical location information of the second terminal, so the geographical location information of the first terminal adopting the embodiment of the present invention to get is just comparatively accurate, and when the identification information match of first terminal and the second terminal, distance between second terminal and first terminal can be ignored substantially, therefore, the precision of the acquisition result of the geographical location information of first terminal is just improved.
With reference to figure 1, show a kind of flow chart obtaining the geographical location information embodiment of the method one of first terminal of the application.
In step 101 place, obtain the first identification information of request for location services and the first terminal that first terminal is positioned, and receive the second identification information that second terminal with position location functionality sends.
In the embodiment of the present application, in actual applications, first terminal is the terminal equipment without GPS positioning function, such as the equipment such as personal computer or portable computer.When first terminal has location requirement, such as, user triggers position location request in the process using first terminal, then first terminal can initiate request for location services to server, and the first identification information of first terminal is also sent to server.Understandable, the request for location services of first terminal also can be that server is initiated.Server, when needing to position the first terminal communicated with, generates request for location services by server, and obtains the first identification information of the first terminal needing location.
Second terminal generally refers to the mobile terminal with GPS positioning function, such as mobile phone or PAD (panel computer) etc.
In the present embodiment, described first identification information can be specifically first user mark and/or first wireless network identification of first terminal.Described second identification information can be specifically the second user ID and/or the second wireless network mark of the second terminal.
Wherein, user ID can be the information (such as accounts information or phone number etc.) of a unique identification user.Wireless network identification is then first terminal or the radio network information of the second terminal by using during wireless network accessing Internet, such as wifi etc.
Preferably, first identification information of the application comprises the accounts information of the first client-side program that user logs at first terminal.Second identification information of the application comprises the accounts information of the second client-side program that user logs in the second terminal.Wherein, described first client-side program and described second client-side program are identical program or associated program each other.Described associated program refers to that achieving accounts information shares or intercommunication, has two or more client-side program of incidence relation.
When the first client-side program and the second client-side program each other associated program time, share or intercommunication owing to achieving accounts information, have incidence relation, therefore, same user can use same accounts information to log in the different clients program with incidence relation at distinct device.
Such as, first terminal has installed certain first client-side program (such as Taobao's client).Then user's successful registration after logging in, the accounts information of this first client-side program that user uses also can as user ID on this first client-side program.That is, first user mark is just the accounts information of the first client-side program of first terminal login.Second terminal has installed certain second client-side program (such as Alipay client), and described second user ID is the accounts information of the second client-side program that the second terminal logs in.Taobao's client in the present embodiment and Alipay client are set in advance as account information intercommunication.That is, Taobao's client and Alipay client associated program each other.Use the account information of Taobao's client also can log in Alipay client.The account information of Taobao's client and the account information of Alipay client can be bound mutually.
Server can store the second identification information of the second terminal received.When user triggers the location-server request of first terminal, then second identification information of the first identification information of the first terminal got with the second terminal stored before is mated.Certainly, server receives the second identification information of the second terminal, also can after user triggers the request for location services of first terminal, in this case, server is when the first identification information getting first terminal, temporarily can not respond this request for location services, but carry out mating of the first identification information and the second identification information when the first identification information of subsequently received first terminal more yet.
Be understandable that, in the server, a data structure storing the first identification information and the second identification information specially can be safeguarded, the second identification information sent with the first identification information and the second terminal that store first terminal transmission.
In the present embodiment, in actual applications, when this second terminal utilizes wireless network (such as wifi etc.) logging in online, second terminal the GPS positioning function of self can be adopted to get self residing for geographical location information (such as latitude and longitude information), and its logging in online adopt wireless network identification correspondence send to server for its store.In addition, if this second terminal has installed the application program of some websites (such as Taobao), user's successful registration after logging in this website on the web site, then the second terminal also can by the user ID of login user, and the terminal identification information correspondence of self sends to server to store for it.Wherein, user ID can be the information logging in the unique identification such as a title or phone number login user of user, and terminal identification information can be then the information of energy unique identification terminals such as the international identification code of mobile terminal.
Step 102: server judges whether described first identification information mates with the second identification information, if so, then enters step 103.
Server is after the second identification information of the first identification information and the second terminal that get first terminal, and whether both judgements mate.Such as, if identification information is user ID, so whether server can judge first user mark and the second user ID unanimously or whether associate, if identification information is wireless network identification, then server can judge whether the first wireless network identification is consistent with second wireless network mark.
And if include wireless network identification and user ID in identification information simultaneously, so with reference to shown in figure 2, described step 102 specifically can comprise:
Step 201: judge that the first wireless network identification of described first terminal identifies with the second wireless network of described second terminal and whether mate; If not, then step 202 is entered.
When comprising wireless network identification and user ID in identification information, server first can judge whether wireless network identification mates in actual applications simultaneously, also first can judge whether user ID mates.Under preferable case, as shown in Figure 2, whether server first can judge that first wireless network identification at first terminal place in identification information identifies with the second wireless network at the second terminal place and mate, because when adopting wireless network identification to position, first terminal and second terminal of wireless network identification coupling are in same wireless network, too far away so position can not be separated by, its positioning result also can be comparatively accurate.
Step 202: server judges whether the first user mark of the login user of described first terminal mates with the second user ID of the login user of described second terminal.
In the unmatched situation of wireless network identification, server judges whether the first user mark of the login user of first terminal mates with the second user ID of the login user of the second terminal again.
Then return Fig. 1, enter step 103: server obtains the geographical location information of described second terminal.
When the first identification information and the second identification information match, server obtains the geographical location information of the second terminal again.
In actual applications, when described identification information is user ID, server, when the second identification information that reception second terminal sends, can also receive the device identification of second terminal corresponding with user ID that described second terminal sends.Accordingly, server can send positioning command according to the device identification of the second terminal received to the second terminal, triggers the second terminal and utilizes the GPS function of self to carry out the location in geographical position.Geographical location information can be returned to server after second terminal positioning success.The geographical location information returned after the second terminal positioning success received can be defined as the geographical location information of first terminal by server.
And when described identification information is wireless network identification, server is when the second identification information that reception second terminal sends, what can also receive the second terminal transmission identifies corresponding geographical location information with second wireless network.So corresponding, server can identify the geographical location information of corresponding geographical location information as the first terminal corresponding with the wireless network identification that this wireless network identification is mated according to using this second wireless network.
In the embodiment of the present application, the data structure of server maintenance not only can comprise the first user mark of first terminal, the second wireless network mark of the second user ID of the second terminal, the first wireless network identification of first terminal and the second terminal, the device identification of second terminal corresponding with the second user ID can also be comprised, and identify the geographical location information of the second corresponding terminal with second wireless network.Wherein, the wireless network identification of the second terminal and geographical location information one_to_one corresponding.
Step 104: the geographical location information of described second terminal is defined as the geographical location information of described first terminal by server.
After the geographical location information returned after server receives the second terminal positioning success, the geographical location information of the second terminal is defined as the geographical location information of described first terminal, so just achieves the acquisition of the geographical location information of the first terminal without positioning function.
Adopt the embodiment of the present application, when not having the location of first terminal of GPS positioning function, if the second identification information match of the first identification information of first terminal and the second terminal, by the geographical location information of the second terminal got being defined as the mode of the geographical location information of first terminal, the geographical location information of first terminal can be obtained.Because when the identification information match of the second terminal and first terminal, distance is between the two very near, so the geographical location information of the first terminal adopting the embodiment of the present invention to get is just comparatively accurate.Therefore, the embodiment of the present application improves the precision of the acquisition result of the geographical location information of first terminal.
With reference to figure 3, show a kind of flow chart obtaining the embodiment two of the geographical location information method of terminal of the application, the present embodiment can comprise the following steps:
Step 301: server obtains the first wireless network identification to request for location services, the first user mark of first terminal and the wireless network at first terminal place that first terminal positions, and, receive the second user ID of the second terminal transmission with position location functionality, the device identification of the second terminal, the second wireless network mark of the wireless network at the second terminal place and the geographical location information of the second terminal.
In the present embodiment, the first user of first terminal is designated the accounts information of the first client-side program that user logs at first terminal.The accounts information of the second user ID of the second terminal the second client-side program that to be user log in the second terminal.
Accordingly, server, except receiving the second identification information of the second terminal transmission, also receives the device identification of second terminal corresponding with the second user ID that the second terminal sends, and the geographical location information of the second terminal.Wherein, the second terminal after employing second wireless network identifies successful accessing Internet, can utilize the GPS function triggered location of self, and the geographical location information of this second wireless network mark and location is sent to server in the lump.
Step 302: whether server judges that the first wireless network identification of described first terminal identifies with the second wireless network of the second terminal and mate, and if not, then enters step 303, if so, then enters step 306.
In the present embodiment, under preferable case, whether server first judges that the first wireless network identification identifies with second wireless network and mates, and whether the wireless network that to be namely the wireless network that adopts of first terminal accessing Internet adopt with the second terminal accessing Internet is identical.
Step 303: server judges whether the first user mark of described first terminal mates with the second user ID of described second terminal, if so, then enters step 304, if not, then stops current process.
In the present embodiment, if the wireless network that first terminal accessing Internet adopts is different from the wireless network that the second terminal accessing Internet adopts, so server then judges whether the first user mark of first terminal mates with the second user ID of the second terminal, if coupling, then enter step 304, if do not mated, then can stop performing current acquisition flow process of carrying out the geographical location information of terminal.
Step 304: server sends positioning command, to trigger the location that described second terminal carries out geographical position according to the device identification of described second terminal to the second terminal.
In the present embodiment, because there is the second user ID of second terminal marking matched with the first user of first terminal in the server, so now according to the corresponding relation between second user ID of the second terminal of server stores and the device identification of the second terminal, can uniquely determine second terminal of mating by the user ID of mating.Server sends positioning command to the second terminal of coupling again.Second terminal is after receiving positioning command, and the GPS function according to self positions.Be understandable that, in the embodiment of the present application, when judging whether the first user mark of first terminal mates with the second user ID of the second terminal, login user is required to be the user logging in same client-side program or log in associated clients program.Such as, the second user ID that second terminal sends is the login account information of user in Taobao's client, the first user mark that so first terminal sends also needs to be the login account information of Taobao's client, or the first user that sends of first terminal is designated the login account information with the Alipay client of Taobao client associate.
Step 305: the geographical location information that server returns after receiving the second terminal positioning success, enters step 306.
Step 306: the geographical location information of the second terminal is defined as the geographical location information of described first terminal by server.
In the present embodiment, server can have received the second wireless network mark of the second terminal and corresponding geographical location information in advance, sets up the mapping relations of wireless network identification and geographical location information.If the second wireless network at the first wireless network identification that first terminal uses and the second terminal place is marking matched, then illustrate that the second terminal and first terminal use same wireless network.Based on the principle that the area coverage of wireless network is limited, the distance of the second terminal and first terminal also can not be too far away.Therefore, according to the mapping relations of wireless network identification and geographical location information, geographical location information corresponding to wireless network identification first terminal can mated is as the geographical location information of first terminal.
Server also can the geographical location information of Real-time Obtaining second terminal.When the first user mark of first terminal and/or the second user ID of the first wireless network identification and the second terminal and/or second wireless network marking matched time, the second terminal is given in real-time restoring to normal position instruction, the locating information that second terminal sends directly is defined as the geographical location information of first terminal, can directly utilizes the positioning function of the second terminal to get the geographical location information of first terminal.
Step 307: the geographical location information of described first terminal is back to described first terminal by server.
Optionally, server is after the geographical location information getting first terminal in different ways, the geographical location information got can also be returned to this first terminal, the convenient user triggering the request for location services of first terminal checks, the user utilizing this first terminal to surf the Net so also can get information about the geographical location information of first terminal very much.
In the present embodiment, when identification information comprises user ID and wireless network identification simultaneously, first can carry out the coupling of wireless network identification, like this because the coverage of wireless network is subject to the restriction of area, so the geographical location information of the second terminal determined according to the geographical location information of first terminal is also comparatively accurate.And, in the unmatched situation of wireless network identification, carry out the coupling of user ID again, can easily and the geographical location information of first terminal can be got accurately in varied situations, visible the present embodiment be adapted to any can the first terminal of logon, and geographical location information can also return to and use the user of first terminal to know, improves Consumer's Experience.
For aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the application is not by the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the application is necessary.
Corresponding with the method that a kind of geographical location information embodiment of the method 1 obtaining first terminal of above-mentioned the application provides, see Fig. 4, present invention also provides a kind of server example one obtaining the geographical location information of first terminal, in the present embodiment, this server can comprise:
First acquisition module 401, for obtaining the first identification information of request for location services and the first terminal positioned first terminal.
First receiver module 402, for receiving the second identification information of the second terminal transmission with position location functionality.
Judge module 403, for judging whether described first identification information mates with described second identification information.
Described first identification information can be specifically first user mark and/or first wireless network identification of first terminal, and described second identification information can be the second user ID and/or the second wireless network mark of the second terminal.When described identification information comprises user ID and wireless network identification simultaneously, described judge module 402, shown in figure 5, specifically can comprise:
Whether first judges submodule 501, mate for judging that the first wireless network identification of described first terminal identifies with the second wireless network of described second terminal;
Second judges submodule 502, for when described first judges that the result of submodule is no, judges whether the user ID of the login user of described first terminal mates with the user ID of the login user of described second terminal.
Second acquisition module 404, for when the result of described judge module is for being, obtains the geographical location information of described second terminal.
When described identification information is user ID, described server can also comprise: the second receiver module, for receiving the mark of second terminal corresponding with user ID that described second terminal sends; Accordingly, described second acquisition module 403, specifically can comprise: send submodule, sends positioning command, to trigger the location that described second terminal carries out geographical position for the mark according to described second terminal to the second terminal; With, receive submodule, for receiving the geographical location information that returns after described second terminal positioning success.
When described identification information is wireless network identification, described server can also comprise: the 3rd receiver module, for receiving the geographical location information corresponding with wireless network identification that described second terminal sends; Accordingly, described acquisition module 403, specifically for: the wireless network identification according to coupling directly obtains the geographical location information corresponding with the user ID of described coupling.
When described identification information is user ID, the accounts information of the first client-side program that described first user mark can log in for first terminal; Described second user ID can be the accounts information of the second client-side program that the second terminal logs in; Wherein, described first client-side program and described second client-side program can be identical program or associated program each other.
Determination module 405, for being defined as the geographical location information of described first terminal by the geographical location information of described second terminal.
Adopt the embodiment of the present invention, when not having the location of first terminal of GPS positioning function, if the second identification information match of the first identification information of first terminal and the second terminal, can by the geographical location information of the second terminal got being defined as the mode of the geographical location information of first terminal, obtain the geographical location information of first terminal, because when the identification information match of the second terminal and first terminal, distance is between the two very near, so the geographical location information of the first terminal adopting the embodiment of the present invention to get is just comparatively accurate, therefore, just improve the precision of the acquisition result of the geographical location information of first terminal.
Corresponding with the method that a kind of geographical location information embodiment of the method 2 obtaining first terminal of above-mentioned the application provides, see Fig. 6, present invention also provides a kind of embodiment two obtaining the server of the geographical location information of first terminal, in the present embodiment, this server can comprise:
First acquisition module 401, for obtaining first user mark and first wireless network identification of request for location services and the first terminal positioned first terminal.
First receiver module 402, for receiving the second user ID and the second wireless network mark of the second terminal transmission with position location functionality.
Second receiver module 601, for receiving the device identification of the second terminal that described second terminal sends.
3rd receiver module 602, for receive described second terminal send identify corresponding geographical location information with second wireless network.
Whether first judges submodule 501, mate for judging that the first wireless network identification of described first terminal identifies with the second wireless network of described second terminal;
Second judges submodule 502, for when described first judges that the result of submodule 501 is no, judges whether the user ID of the login user of described first terminal mates with the user ID of the login user of described second terminal.
Send submodule 603, for when described second judges the result of submodule 503 for being, the mark according to described second terminal sends positioning command, to trigger the location that described second terminal carries out geographical position to the second terminal.
Receive submodule 604, for receiving the geographical location information that returns after described second terminal positioning success.
Determination module 405, for being defined as the geographical location information of described first terminal by the geographical location information of described second terminal.
Return module 605, for the geographical location information of described first terminal is back to described first terminal.
In the present embodiment, not only when user ID and wireless network identification all mate less than the mode of Quick Response Code can be adopted to carry out the acquisition of the geographical location information of first terminal, only match user ID or wireless network identification, easily and accurately can get the geographical location information of first terminal, visible the present embodiment not only can improve the precision of the geographical location information of the first terminal got, can also be adapted to any can the first terminal of logon, and geographical location information can also return to user to be known, improve Consumer's Experience.
It should be noted that, each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For device class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Above the acquisition methods of the geographical location information of a kind of terminal that the application provides and server are described in detail, apply specific case herein to set forth the principle of the application and execution mode, the explanation of above embodiment is just for helping method and the core concept thereof of understanding the application; Meanwhile, for one of ordinary skill in the art, according to the thought of the application, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application.

Claims (14)

1. a geographical position information acquisition method for terminal, is characterized in that, the method comprises:
Obtain the first identification information of request for location services and the first terminal that first terminal is positioned;
Receive the second identification information of the second terminal transmission with position location functionality;
Judge whether described first identification information mates with the second identification information;
When the first identification information and the second identification information match, obtain the geographical location information of described second terminal;
The geographical location information of described second terminal is defined as the geographical location information of described first terminal.
2. method according to claim 1, is characterized in that, described first identification information comprises: the first user mark of first terminal and/or the first wireless network identification; Described second identification information comprises: the second user ID of the second terminal and/or second wireless network mark.
3. method according to claim 2, is characterized in that, described method also comprises:
Receive the device identification of the second terminal that described second terminal sends;
Accordingly, the geographical location information of described second terminal of described acquisition comprises:
Device identification according to described second terminal sends positioning command, to trigger the location that described second terminal carries out geographical position to the second terminal;
The geographical location information returned after receiving described second terminal positioning success.
4. method according to claim 2, is characterized in that, when described identification information is wireless network identification, described method also comprises:
Receive the geographical location information corresponding with wireless network identification that described second terminal sends;
Accordingly, the geographical location information of described second terminal of described acquisition, comprising:
Wireless network identification according to coupling directly obtains the geographical location information corresponding with the wireless network identification of described coupling.
5. method according to claim 2, is characterized in that, when identification information is user ID, described first identification information is the accounts information of the first client-side program that first terminal logs in; Described second identification information is the accounts information of the second client-side program that the second terminal logs in; Wherein, described first client-side program and described second client-side program are identical program or associated program each other.
6. method according to claim 1, it is characterized in that, when described identification information comprises user ID and wireless network identification, whether described the second identification information judging that described first identification information and second terminal with position location functionality send mates, and comprising:
Judge that the first wireless network identification of described first terminal identifies with the second wireless network of described second terminal whether to mate; If not, then judge whether the user ID of the login user of described first terminal mates with the user ID of the login user of described second terminal.
7. method according to claim 1, is characterized in that, also comprises:
The geographical location information of described first terminal is back to described first terminal.
8. the geographical location information of terminal obtains a server, and it is characterized in that, this server comprises:
First acquisition module, for obtaining the first identification information of request for location services and the first terminal positioned first terminal;
First receiver module, for receiving the second identification information of the second terminal transmission with position location functionality;
Judge module, for judging whether described first identification information mates with described second identification information;
Second acquisition module, for when the result of described judge module is for being, obtains the geographical location information of described second terminal;
Determination module, for being defined as the geographical location information of described first terminal by the geographical location information of described second terminal.
9. server according to claim 8, it is characterized in that, described first identification information comprises: the first user mark of first terminal and/or the first wireless network identification, and described second identification information comprises: the second user ID of the second terminal and/or second wireless network mark.
10. server according to claim 9, is characterized in that, described server also comprises:
Second receiver module, for receiving the device identification of the second terminal that described second terminal sends;
Accordingly, described second acquisition module, comprising:
Send submodule, send positioning command, to trigger the location that described second terminal carries out geographical position for the device identification according to described second terminal to the second terminal;
Receive submodule, for receiving the geographical location information that returns after described second terminal positioning success.
11. servers according to claim 9, is characterized in that, when described identification information is wireless network identification, described server also comprises:
3rd receiver module, for receiving the geographical location information corresponding with wireless network identification that described second terminal sends;
Accordingly, described acquisition module, specifically for:
Wireless network identification according to coupling directly obtains the geographical location information corresponding with the wireless network identification of described coupling.
12. servers according to claim 9, is characterized in that, when described identification information is user ID, described first identification information is the accounts information of the first client-side program that first terminal logs in; Described second identification information is the accounts information of the second client-side program that the second terminal logs in; Wherein, described first client-side program and described second client-side program are identical program or associated program each other.
13. servers according to claim 8, is characterized in that, when described identification information comprises user ID and wireless network identification, described judge module, comprising:
Whether first judges submodule, mate for judging that the first wireless network identification of described first terminal identifies with the second wireless network of described second terminal;
Second judges submodule, for when described first judges that the result of submodule is no, judges whether the user ID of the login user of described first terminal mates with the user ID of the login user of described second terminal.
14. servers according to claim 8, is characterized in that, also comprise:
Return module, for the geographical location information of described first terminal is back to described first terminal.
CN201310233403.6A 2013-06-13 2013-06-13 The acquisition methods and server of the geographical location information of terminal Active CN104244174B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310233403.6A CN104244174B (en) 2013-06-13 2013-06-13 The acquisition methods and server of the geographical location information of terminal
HK15102901.7A HK1202753A1 (en) 2013-06-13 2015-03-23 Method for obtaining location information of terminal and server thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310233403.6A CN104244174B (en) 2013-06-13 2013-06-13 The acquisition methods and server of the geographical location information of terminal

Publications (2)

Publication Number Publication Date
CN104244174A true CN104244174A (en) 2014-12-24
CN104244174B CN104244174B (en) 2018-10-26

Family

ID=52231364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310233403.6A Active CN104244174B (en) 2013-06-13 2013-06-13 The acquisition methods and server of the geographical location information of terminal

Country Status (2)

Country Link
CN (1) CN104244174B (en)
HK (1) HK1202753A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580549A (en) * 2014-12-26 2015-04-29 广东美的制冷设备有限公司 Controlled terminal and control terminal correlation method and system
CN105100231A (en) * 2015-07-13 2015-11-25 小米科技有限责任公司 Method, equipment and system for obtaining location information of intelligent equipment
CN105636200A (en) * 2016-03-03 2016-06-01 臧利 Method and system for positioning user equipment based on base station
CN106921938A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 Localization method, device and intelligent terminal based on wireless network
CN107666697A (en) * 2016-07-28 2018-02-06 中兴通讯股份有限公司 A kind of method for searching network based on cloud service, terminal and Cloud Server
CN108966340A (en) * 2017-05-17 2018-12-07 腾讯科技(深圳)有限公司 A kind of equipment localization method and device
CN109640247A (en) * 2018-11-13 2019-04-16 苏州达家迎信息技术有限公司 A kind of method, apparatus, terminal, server and the system of determining location information
CN110942527A (en) * 2018-09-21 2020-03-31 阿里巴巴集团控股有限公司 Sign-in and information sending method, client, electronic device and storage medium
CN111121752A (en) * 2019-12-30 2020-05-08 中祖建设安装工程有限公司 Control method and system of intelligent construction site positioning device
CN111698643A (en) * 2020-06-11 2020-09-22 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for positioning location of terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102348258A (en) * 2011-10-12 2012-02-08 北京百度网讯科技有限公司 Mobile terminal positioning method and device
CN102687572A (en) * 2009-12-31 2012-09-19 高通股份有限公司 Systems and methods for determining the location of mobile devices independent of location fixing hardware
US20120317229A1 (en) * 2011-06-13 2012-12-13 Sony Corporation Information processing apparatus, server apparatus, information processing method, and program
CN102904974A (en) * 2012-09-28 2013-01-30 腾讯科技(深圳)有限公司 Method for obtaining location of terminal, related device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102687572A (en) * 2009-12-31 2012-09-19 高通股份有限公司 Systems and methods for determining the location of mobile devices independent of location fixing hardware
US20120317229A1 (en) * 2011-06-13 2012-12-13 Sony Corporation Information processing apparatus, server apparatus, information processing method, and program
CN102348258A (en) * 2011-10-12 2012-02-08 北京百度网讯科技有限公司 Mobile terminal positioning method and device
CN102904974A (en) * 2012-09-28 2013-01-30 腾讯科技(深圳)有限公司 Method for obtaining location of terminal, related device and system

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580549B (en) * 2014-12-26 2018-09-04 广东美的制冷设备有限公司 The correlating method and system of controlled terminal and control terminal
CN104580549A (en) * 2014-12-26 2015-04-29 广东美的制冷设备有限公司 Controlled terminal and control terminal correlation method and system
CN105100231B (en) * 2015-07-13 2019-02-22 小米科技有限责任公司 Acquisition methods, equipment and the system of smart machine location information
CN105100231A (en) * 2015-07-13 2015-11-25 小米科技有限责任公司 Method, equipment and system for obtaining location information of intelligent equipment
CN106921938A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 Localization method, device and intelligent terminal based on wireless network
CN105636200A (en) * 2016-03-03 2016-06-01 臧利 Method and system for positioning user equipment based on base station
CN107666697A (en) * 2016-07-28 2018-02-06 中兴通讯股份有限公司 A kind of method for searching network based on cloud service, terminal and Cloud Server
CN108966340A (en) * 2017-05-17 2018-12-07 腾讯科技(深圳)有限公司 A kind of equipment localization method and device
CN108966340B (en) * 2017-05-17 2020-10-13 腾讯科技(深圳)有限公司 Equipment positioning method and device
CN110942527A (en) * 2018-09-21 2020-03-31 阿里巴巴集团控股有限公司 Sign-in and information sending method, client, electronic device and storage medium
CN109640247A (en) * 2018-11-13 2019-04-16 苏州达家迎信息技术有限公司 A kind of method, apparatus, terminal, server and the system of determining location information
CN111121752A (en) * 2019-12-30 2020-05-08 中祖建设安装工程有限公司 Control method and system of intelligent construction site positioning device
CN111121752B (en) * 2019-12-30 2021-08-10 中祖建设安装工程有限公司 Control method and system of intelligent construction site positioning device
CN111698643A (en) * 2020-06-11 2020-09-22 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for positioning location of terminal
CN111698643B (en) * 2020-06-11 2022-03-15 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for positioning location of terminal

Also Published As

Publication number Publication date
HK1202753A1 (en) 2015-10-02
CN104244174B (en) 2018-10-26

Similar Documents

Publication Publication Date Title
CN104244174A (en) Method for obtaining geographical location information of terminals and server
US10268701B2 (en) Method and system for acquiring and distributing location-related information
CN104243516B (en) Method, server, terminal and the system that the geographical location information of terminal obtains
US8670785B2 (en) Method and system for acquiring position of terminal
CN103369009B (en) A kind of online answering method, equipment and system
CN107168960B (en) Service execution method and device
CN105592011B (en) Account login method and device
US10237272B2 (en) Methods, apparatus, and systems for identity authentication
US9584529B2 (en) Method and system for obtaining peripheral information, and location proxy server
WO2021254261A1 (en) Device positioning method and apparatus
KR102225194B1 (en) Method and apparatus for verifying entity information
KR20190069574A (en) Wireless network type detection method and apparatus, and electronic device
CN106658666B (en) Method and equipment for establishing wireless connection
US8244832B1 (en) Providing location information to website providers
CN103987022A (en) Position information checking method and system based on mobile terminal and mobile terminal
TWI677223B (en) Page display method and device
CN108289290B (en) Method and equipment for connecting intelligent wearable equipment and wireless access point
CN110209956B (en) Method, medium, apparatus and computing device for providing reading service
US10111047B2 (en) Positioning method and device
CN106777072B (en) Method, equipment and system for providing presentation information
CN104125266A (en) Position information processing method and device
CN110636061B (en) Service server access method, storage medium, terminal device and login server
Pierre et al. Cross-platform mobile geolocation applications based on PhoneGap
Tair Location-based applications for smartphones
Eugen et al. Fundamentals of smart geolocation solutions for business

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1202753

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant