CN104244174B - The acquisition methods and server of the geographical location information of terminal - Google Patents
The acquisition methods and server of the geographical location information of terminal Download PDFInfo
- Publication number
- CN104244174B CN104244174B CN201310233403.6A CN201310233403A CN104244174B CN 104244174 B CN104244174 B CN 104244174B CN 201310233403 A CN201310233403 A CN 201310233403A CN 104244174 B CN104244174 B CN 104244174B
- Authority
- CN
- China
- Prior art keywords
- terminal
- information
- wireless network
- geographical location
- identifier
- 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.)
- Active
Links
Abstract
This application provides the acquisition methods of the geographical location information of terminal and server, the method includes:Obtain the first identifier information of the request for location services and first terminal that are positioned to first terminal;Receive the second identifier information that the second terminal with position location functionality is sent;Judge whether the first identifier information matches with second identifier information;When first identifier information and second identifier information matches, the geographical location information of the second terminal is obtained;The geographical location information of the second terminal is determined as to the geographical location information of the first terminal.Using method, server or the device in the embodiment of the present application, the precision of the geographical location information of the first terminal got can be promoted.
Description
Technical field
This application involves network data processing field, more particularly to a kind of acquisition methods of the geographical location information of terminal and
Server.
Background technology
In more and more universal present, some shiftings of GPS (Global Positioning System, global positioning system)
Dynamic terminal, such as mobile phone or PAD (tablet computer) etc., all have GPS positioning function.In this application, by these with GPS
The mobile terminal of positioning function is known as second terminal.But there are also communication terminal, there is no its realization positioning work(of hardware supported
Can, for example, currently, PC (Personal Computer, personal computer) and laptop etc..
In the prior art, obtain those itself do not have positioning function communication terminal geographical location information when
It waits, can confirm this according to (Internet Protocol, the agreement interconnected between the network) addresses IP that communication terminal is surfed the Internet
The position of communication terminal.As soon as but the IP in the libraries IP can only represent a large range of geographic area under normal circumstances, this
When so that the prior art does not have the acquisition of the geographical location information of the communication terminal of positioning function in progress itself, often
A large range of geographical location can only be navigated to so that the geographical location information precision of the communication terminal got is relatively low.
In short, at present a technical problem that is urgently needed by the technical personnel in the field at present is that:How to innovate
It proposes a kind of geographical location information method obtaining terminal, is obtained with solving the geographical location information of first terminal in the prior art
The problem for taking result precision relatively low.
Invention content
Technical problems to be solved in this application are to provide a kind of acquisition methods of the geographical location information of terminal, to solve
The certainly relatively low problem of the acquisition result precision of the geographical location information of first terminal in the prior art.
Present invention also provides a kind of acquisition servers of the geographical location information of terminal, to ensure the above method in reality
Realization in border and application.
To solve the above-mentioned problems, this application discloses a kind of acquisition methods of the geographical location information of terminal, including:
Obtain the first identifier information of the request for location services and first terminal that are positioned to first terminal;
Receive the second identifier information that the second terminal with position location functionality is sent;
Judge whether the first identifier information matches with second identifier information;
When first identifier information and second identifier information matches, the geographical location information of the second terminal is obtained;
The geographical location information of the second terminal is determined as to the geographical location information of the first terminal.
Optionally, the first identifier information includes:First user identifier of first terminal and/or the first wireless network mark
Know, the second identifier information includes:The second user of second terminal identifies and/or second wireless network mark.
Optionally, the method further includes:
Receive the device identification for the second terminal that the second terminal is sent;
Correspondingly, the geographical location information for obtaining the second terminal, including:
According to the second terminal device identification to second terminal send positioning command, with trigger the second terminal into
The positioning in row geographical location;
Receive the geographical location information returned after the second terminal positions successfully.
Optionally, in the case where the identification information is wireless network identification, the method further includes:
Receive the geographical location information corresponding with wireless network identification that the second terminal is sent;
Correspondingly, the geographical location information for obtaining the second terminal, including:
Geographical location corresponding with the matched wireless network identification is directly acquired according to matched wireless network identification
Information.
Optionally, in the case where identification information is user identifier, the first identifier information is what first terminal logged in
The account information of first client-side program;The second identifier information is the account for the second client-side program that second terminal logs in
Information;Wherein, first client-side program and second client-side program are identical program or associated program each other.
Optionally, in the case where the identification information includes user identifier and wireless network identification, described in the judgement
Whether first identifier information matches with the second identifier information that the second terminal with position location functionality is sent, including:
The second wireless network of the first wireless network identification and the second terminal that judge the first terminal identifies
No matching;If it is not, then judging the login user of the user identifier and the second terminal of the login user of the first terminal
User identifier whether match.
Optionally, further include:
The geographical location information of the first terminal is back to the first terminal.
This application discloses a kind of geographical location information of terminal to obtain server, which includes:
First acquisition module, first for obtaining the request for location services and first terminal that are positioned to first terminal
Identification information;
First receiving module, the second identifier information sent for receiving the second terminal with position location functionality;
Judgment module, for judging whether the first identifier information matches with the second identifier information;
Second acquisition module, in the case where the result of the judgment module is to be, obtaining the second terminal
Geographical location information;
Determining module, the geographical location for the geographical location information of the second terminal to be determined as to the first terminal
Information.
Optionally, the first identifier information includes:First user identifier of first terminal and/or the first wireless network mark
Know, the second identifier information includes:The second user of second terminal identifies and/or second wireless network mark.
Optionally, further include in the server:
Second receiving module, the mark for receiving the second terminal that the second terminal is sent;
Correspondingly, second acquisition module, including:
Sending submodule sends positioning command, to touch for the device identification according to the second terminal to second terminal
Send out second terminal described and carry out the positioning in geographical location;
Receiving submodule, for receiving the geographical location information returned after the second terminal positions successfully.
Optionally, in the case where the identification information is wireless network identification, the server further includes:
Third receiving module, geographical location corresponding with the wireless network identification letter sent for receiving the second terminal
Breath;
Correspondingly, the acquisition module, is specifically used for:
Geographical location corresponding with the matched wireless network identification is directly acquired according to matched wireless network identification
Information.
Optionally, in the case where the identification information is user identifier, the first identifier information is stepped on for first terminal
The account information of first client-side program of record;The second identifier information is the second client-side program that second terminal logs in
Account information;Wherein, first client-side program and second client-side program are identical program or associated program each other.
Optionally, in the case where the identification information includes user identifier and wireless network identification, the judgment module,
Including:
First judging submodule, the first wireless network identification for judging the first terminal and the second terminal
Second wireless network identifies whether to match;
Second judgment submodule, in the case where the result of first judging submodule is no, judging described the
Whether the user identifier of the login user of one terminal matches with the user identifier of the login user of the second terminal.
Optionally, further include:
Module is returned to, for the geographical location information of the first terminal to be back to the first terminal.
Compared with prior art, the embodiment of the present application includes the following advantages:
In this application, when carrying out the positioning of the first terminal without GPS positioning function, using with reference to position
The mode that the geographical location information of the second terminal of positioning function is positioned, if the first identifier information of first terminal and
The second identifier information of two terminals can match, then directly whole using the geographical location information of the second terminal got as first
The geographical location information at end.Because second terminal has position location functionality, and the identification information match of the two, so by second
The geographical location information of terminal positioning is just more accurate as the geographical location information of first terminal.Therefore, first is just improved
The precision of the acquisition result of the geographical location information of terminal.Further, the geographical location information of determining first terminal may be used also
To return to first terminal, the geographical location letter where the first terminal is also known conducive to the user for logging in first terminal in this way
Breath promotes user experience.
Certainly, any product for implementing the application does not necessarily require achieving all the advantages described above at the same time.
Description of the drawings
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present application, for
For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these attached drawings
His attached drawing.
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 a kind of flow chart of embodiment of the step 104 in the application 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 a kind of structural framing figure of embodiment of judgment module in the application server example one;
Fig. 6 is the structure diagram of the acquisition server example two of the geographical location information of the terminal of the application.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
The application can be used in numerous general or special purpose computing device environment or configuration.Such as:Personal computer, service
Device computer, handheld device or portable device, laptop device, multi-processor device including any of the above device or equipment
Distributed computing environment etc..
The application can describe in the general context of computer-executable instructions executed by a computer, such as program
Module.Usually, program module includes routines performing specific tasks or implementing specific abstract data types, program, object, group
Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these distributed computing environments, by
Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with
In the local and remote computer storage media including storage device.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.Memory may include the volatile memory in computer-readable medium, 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 side
Method or technology realize information storage.Information can be computer-readable instruction, data structure, the module of program or other numbers
According to.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM
(SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory
(ROM), electrically erasable programmable read-only memory (EEPROM), fast flash memory bank or other memory techniques, CD-ROM are read-only
Memory (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or
Other magnetic storage apparatus or any other non-transmission medium can be used for storage and can be accessed by a computing device information.According to
Herein defines, and computer-readable medium does not include of short duration computer readable media (transitory media), such as modulation
Data-signal and carrier wave.
One of main thought of the application may include that the request for location services and first of first terminal is obtained by server
The first identifier information of terminal, and the second identifier information that the second terminal with position location functionality is sent is received, then judge
Whether the first identifier information matches with second identifier information, when first identifier information and second identifier information matches, clothes
Business device obtains the geographical location information of the second terminal, and the geographical location information of the second terminal is determined as described the
The geographical location information of one terminal.Because being obtained in the embodiment of the present application with reference to the geographical location information of first terminal positioning
The geographical location information of second terminal is taken, so the geographical location information of the first terminal got using the embodiment of the present invention is just
It is more accurate, and when first terminal and the identification information match of second terminal, between second terminal and first terminal away from
From being substantially negligible, therefore, the precision of the acquisition result of the geographical location information of first terminal is just improved.
With reference to figure 1, a kind of flow for the geographical location information embodiment of the method one obtaining first terminal of the application is shown
Figure.
At step 101, the first identifier of the request for location services and first terminal that are positioned to first terminal is obtained
Information, and receive the second identifier information that the second terminal with position location functionality is sent.
In the embodiment of the present application, in practical applications, first terminal is the terminal device without GPS positioning function,
Such as the equipment such as personal computer or portable computer.When first terminal has location requirement, for example, user is using
Position location request is triggered during first terminal, then first terminal can initiate request for location services to server, and will
The first identifier information of first terminal is also sent to server.It should be understood that the request for location services of first terminal can also
It is that server is initiated.Server generates positioning clothes when needing to position the first terminal communicated with, by server
Business request, and obtain the first identifier information for the first terminal for needing to position.
Second terminal is generally referred to as the mobile terminal with GPS positioning function, such as mobile phone or PAD (tablet computer)
Deng.
In the present embodiment, the first identifier information can be specifically the first user identifier and/or of first terminal
One wireless network identification.The second identifier information can be specifically that the second user of second terminal identifies and/or second is wireless
Network identity.
Wherein, user identifier can be information (such as account information or the phone number of one user of unique mark
Deng).Wireless network identification is then first terminal or second terminal used wireless network when accessing internet by wireless network
Network information, such as wifi etc..
Preferably, the first identifier information of the application includes the account for the first client-side program that user logs in first terminal
Family information.The second identifier information of the application includes the account information for the second client-side program that user logs in second terminal.
Wherein, first client-side program and second client-side program are identical program or associated program each other.The association
Program refers to realizing that account information is shared or intercommunication, two or more client-side program with incidence relation.
It is shared due to realizing account information when the first client-side program and the second client-side program associated program each other
Or intercommunication, there is incidence relation, therefore, same user can be logged in distinct device using same account information, and there is association to close
The different clients program of system.
For example, first terminal is mounted with some first client-side program (such as Taobao's client).Then user this
Successful registration and after logging on one client-side program, the account information for first client-side program that user uses can also be made
For user identifier.That is, the first user identifier is just the account information for the first client-side program that first terminal logs in.Second terminal
It is mounted with some second client-side program (such as Alipay client), the second user is identified as the of second terminal login
The account information of two client-side program.Taobao's client and Alipay client in the present embodiment is set in advance as account
Information mutual communication.That is, Taobao's client and Alipay client associated program each other.Use the account information of Taobao's client
Alipay client can also be logged in.The account information of Taobao's client and the account information of Alipay client can be mutual
Binding.
Server can store the second identifier information of the second terminal received.When user triggers first terminal
Location-server request when, then by the of the first identifier information of the first terminal got and the second terminal that before stores
Two identification informations are matched.Certainly, server receives the second identifier information of second terminal, can also trigger first in user
After the request for location services of terminal, in this case, server the first identifier information for getting first terminal when
Wait, also can temporarily be not responding to the request for location services, but in the first identifier information of subsequently received first terminal again into
The matching of row first identifier information and second identifier information.
It is understood that in the server, can safeguard a special storage first identifier information and second identifier letter
The data structure of breath, the second identifier information sent with the first identifier information and second terminal that store first terminal transmission.
In the present embodiment, in practical applications, when the second terminal utilizes wireless network (such as wifi etc.) debarkation net
When network, second terminal can be used the GPS positioning function of itself gets itself residing for geographical location information (such as
Latitude and longitude information) and its logging in online use wireless network identification correspondence be sent to server for its store.In addition, such as
The fruit second terminal is mounted with the application program of some websites (such as Taobao), and user successful registration and logs on the web site
After the website, then the user identifier of login user and the terminal identification information of itself can also be corresponded to hair by second terminal
Server is given for its storage.Wherein, user identifier can be that user logs in the unique marks such as title or phone number one
The information of login user, and terminal identification information can be then energy one terminal of unique mark such as mobile terminal world identification code
Information.
Step 102:Server judges whether the first identifier information matches with second identifier information, if it is, into
Enter step 103.
Server judges after the second identifier information of the first identifier information and second terminal that get first terminal
Whether the two matches.For example, if identification information is user identifier, server may determine that the first user identifier and second
Whether whether user identifier is consistent or be associated with, if identification information is wireless network identification, server may determine that first
Wireless network identification identifies whether consistent with second wireless network.
And if including simultaneously wireless network identification and user identifier in identification information, refering to what is shown in Fig. 2, described
Step 102 can specifically include:
Step 201:Judge the first wireless network identification of the first terminal and the second wireless network of the second terminal
Network identifies whether to match;If it is not, then entering step 202.
In identification information simultaneously including wireless network identification and user identifier in the case of, server in practical applications
It can first judge whether wireless network identification matches, can also first judge whether user identifier matches.Under preferable case, such as Fig. 2
Shown, server can first judge where the first wireless network identification and second terminal in identification information where first terminal
Second wireless network identifies whether to match, because when positioning using wireless network identification, wireless network identification matching
First terminal and second terminal be in the same wireless network, so will not be too far apart on position, positioning result
It can be more accurate.
Step 202:Server judges the first user identifier of the login user of the first terminal and the second terminal
The second user of login user identify whether to match.
Unmatched in wireless network identification, server judges the first user of the login user of first terminal again
Mark identifies whether to match with the second user of the login user of second terminal.
It is then returned to Fig. 1, enters step 103:Server obtains the geographical location information of the second terminal.
In the case of first identifier information and second identifier information matches, server obtains the geographical position of second terminal again
Confidence ceases.
In practical applications, in the case where the identification information is user identifier, server is receiving second terminal hair
When the second identifier information sent, the second terminal corresponding with user identifier that the second terminal is sent can also be received
Device identification.Correspondingly, server can send positioning life according to the device identification of the second terminal received to second terminal
It enables, triggering second terminal carries out the positioning in geographical location using the GPS functions of itself.Second terminal can be to service after positioning successfully
Device returns to geographical location information.The geographical location information that server returns after can positioning the second terminal received successfully is true
It is set to the geographical location information of first terminal.
And in the case where the identification information is wireless network identification, server is receiving the second of second terminal transmission
When identification information, the geographical location information corresponding with second wireless network mark of second terminal transmission can also be received.
So correspondingly, server can according to using the second wireless network identify corresponding geographical location information as with the wireless network
Network identifies the geographical location information of the corresponding first terminal of matched wireless network identification.
In the embodiment of the present application, the data structure that server is safeguarded may include not only the first user mark of first terminal
Know, the second wireless network of the second user of second terminal mark, the first wireless network identification of first terminal and second terminal
Network identify, can also include the device identification of corresponding second terminal is identified with second user, and with second wireless network mark
Know the geographical location information of corresponding second terminal.Wherein, the wireless network identification of second terminal and geographical location information be one by one
It is corresponding.
Step 104:The geographical location information of the second terminal is determined as the geographical position of the first terminal by server
Confidence ceases.
After server receives the geographical location information returned after second terminal positions successfully, by the ground of second terminal
Reason location information is determined as the geographical location information of the first terminal, and it is whole to thereby realize first without positioning function
The acquisition of the geographical location information at end.
Using the embodiment of the present application, when carrying out the positioning of the first terminal without GPS positioning function, if first terminal
First identifier information and second terminal second identifier information matches, can be by by the geographical position of the second terminal got
Confidence breath is determined as the mode of the geographical location information of first terminal, to obtain the geographical location information of first terminal.Because the
In the case of the identification information match of two terminals and first terminal, distance between the two is close, so being implemented using the present invention
The geographical location information for the first terminal that example is got is just more accurate.Therefore, the embodiment of the present application improves first terminal
The precision of the acquisition result of geographical location information.
With reference to figure 3, a kind of flow chart of the embodiment two for the geographical location information method obtaining terminal of the application is shown,
The present embodiment may comprise steps of:
Step 301:First user of request for location services, first terminal that server acquisition positions first terminal
First wireless network identification of the wireless network where mark and first terminal, and, receive the with position location functionality
Second user mark that two terminals are sent, the device identification of second terminal, wireless network where second terminal second wirelessly
The geographical location information of network identity and second terminal.
In the present embodiment, the first user identifier of first terminal is the first client journey that user logs in first terminal
The account information of sequence.The second user of second terminal is identified as the account for the second client-side program that user logs in second terminal
Information.
Correspondingly, server also receives second terminal other than receiving the second identifier information of second terminal transmission
Device identification and the geographical location information of second terminal that corresponding second terminal is identified with second user sent.Wherein,
Second terminal can be after being successfully accessed internet using second wireless network mark, and it is fixed to be triggered using the GPS functions of itself
Position, and the geographical location information that the second wireless network is identified and positioned is sent to server together.
Step 302:Server judge the first terminal the first wireless network identification and second terminal it is second wireless
Whether network identity matches, if it is not, then 303 are entered step, if it is, entering step 306.
In the present embodiment, under preferable case, server first judges the first wireless network identification and second wireless network mark
Whether knowledge matches, and is used by wireless network used by first terminal access internet accesses internet with second terminal
Whether wireless network is identical.
Step 303:Server judges the second user of the first user identifier and the second terminal of the first terminal
It identifies whether to match, if it is, 304 are entered step, if it is not, then stopping current process.
In the present embodiment, if wireless network used by first terminal access internet is interconnected with second terminal access
Wireless network is different used by net, then server then judge first terminal the first user identifier and second terminal the
Whether two user identifiers match, if it does, then 304 are entered step, if it does not match, can stop executing current carry out eventually
The acquisition flow of the geographical location information at end.
Step 304:Server sends positioning command according to the device identification of the second terminal to second terminal, with triggering
The second terminal carries out the positioning in geographical location.
In the present embodiment, because there is the matched second terminal of the first user identifier with first terminal in the server
Second user mark, then at this time according to the second user mark of the second terminal of server storage and the equipment of second terminal
Correspondence between mark can be uniquely determined a matched second terminal by matched user identifier.Server again to
Matched second terminal sends positioning command.Second terminal carries out after receiving positioning command according to the GPS functions of itself
Positioning.It is understood that in the embodiment of the present application, the of the first user identifier and second terminal for judging first terminal
When whether two user identifiers match, login user need to be to log in the same client-side program or log in associated client end program
User.For example, the second user that second terminal is sent is identified as login account information of the user in Taobao's client, then
First terminal send the first user identifier be also required to be Taobao's client login account information or first terminal send
The first user identifier be login account information with the Alipay client of Taobao client associate.
Step 305:Server receives the geographical location information returned after second terminal positions successfully, enters step 306.
Step 306:Believe in the geographical location that the geographical location information of second terminal is determined as the first terminal by server
Breath.
In the present embodiment, server can have received in advance second terminal second wireless network mark and correspondingly
Location information is managed, wireless network identification and the mapping relations of geographical location information are established.If first used in first terminal
Wireless network identification is matched with the second wireless network mark where second terminal, then illustrates that second terminal is used with first terminal
The same wireless network.The limited principle of area coverage based on wireless network, second terminal at a distance from first terminal not yet
It can be too far.It therefore, can be matched wireless by first terminal according to the mapping relations of wireless network identification and geographical location information
Geographical location information of the corresponding geographical location information of network identity as first terminal.
Server can also obtain the geographical location information of second terminal in real time.When the first user identifier of first terminal
And/or first wireless network identification and second terminal second user mark and/or second wireless network mark when matching, in real time
Restoring to normal position is instructed to second terminal, and the geographical location that the location information that second terminal is sent is determined directly as to first terminal is believed
Breath, you can the geographical location information of first terminal is directly got using the positioning function of second terminal.
Step 307:The geographical location information of the first terminal is back to the first terminal by server.
Optionally, server is after getting the geographical location information of first terminal in different ways, can be with
The geographical location information got is returned into the first terminal, the user of the request for location services of triggering first terminal is facilitated to look into
It sees, the user to be surfed the Internet in this way using the first terminal can also get information about the geographical location information of first terminal very much.
In the present embodiment, in the case where identification information includes simultaneously user identifier and wireless network identification, Ke Yixian
The matching of wireless network identification is carried out, in this way because the coverage area of wireless network is limited by area, according to first
The geographical location information for the second terminal that the geographical location information of terminal determines is also more accurate.Also, in wireless network identification
In the case of unmatched, then carry out the matching of user identifier, can easily and can accurately get in varied situations
The geographical location information of first terminal, it is seen that the present embodiment be adapted to it is any can logon first terminal, and geographical position
Confidence breath can also be returned to be known using the user of first terminal, and the user experience is improved.
For each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of combination of actions, but
Be those skilled in the art should understand that, the application is not limited by the described action sequence because according to the application, certain
A little steps can be performed in other orders or simultaneously.Secondly, it those skilled in the art should also know that, is retouched in specification
The embodiment stated belongs to preferred embodiment, necessary to involved action and module not necessarily the application.
It is opposite with a kind of method that the geographical location information embodiment of the method 1 obtaining first terminal is provided of above-mentioned the application
It answers, referring to Fig. 4, present invention also provides a kind of server examples one for the geographical location information obtaining first terminal, at this
In embodiment, which may include:
First acquisition module 401, for obtaining the request for location services and first terminal that are positioned to first terminal
First identifier information.
First receiving module 402, the second identifier information sent for receiving the second terminal with position location functionality.
Judgment module 403, for judging whether the first identifier information matches with the second identifier information.
The first identifier information can be specifically the first user identifier and/or the first wireless network mark of first terminal
Know, the second identifier information can be the second user mark and/or second wireless network mark of second terminal.In the mark
In the case of knowing information while including user identifier and wireless network identification, the judgment module 402, refering to what is shown in Fig. 5, specifically
May include:
First judging submodule 501, the first wireless network identification and described second for judging the first terminal are whole
The second wireless network at end identifies whether to match;
Second judgment submodule 502 is used in the case where the result of first judging submodule is no, described in judgement
Whether the user identifier of the login user of first terminal matches with the user identifier of the login user of the second terminal.
Second acquisition module 404, in the case where the result of the judgment module is to be, obtaining the second terminal
Geographical location information.
In the case where the identification information is user identifier, the server can also include:Second receiving module is used
In the mark for receiving the second terminal corresponding with user identifier that the second terminal is sent;Correspondingly, described second obtains mould
Block 403, can specifically include:Sending submodule sends positioning life for the mark according to the second terminal to second terminal
It enables, to trigger the positioning that the second terminal carries out geographical location;It is fixed for receiving the second terminal with, receiving submodule
The geographical location information returned after the success of position.
In the case where the identification information is wireless network identification, the server can also include:Third receives mould
Block, the geographical location information corresponding with wireless network identification sent for receiving the second terminal;Correspondingly, the acquisition
Module 403, is specifically used for:Geography corresponding with the matched user identifier is directly acquired according to matched wireless network identification
Location information.
In the case where the identification information is user identifier, first user identifier can be what first terminal logged in
The account information of first client-side program;The second user mark can be the second client-side program that second terminal logs in
Account information;Wherein, first client-side program can be identical program with second client-side program or be associated with each other
Program.
Determining module 405, the geography for the geographical location information of the second terminal to be determined as to the first terminal
Location information.
Using the embodiment of the present invention, when carrying out the positioning of the first terminal without GPS positioning function, if first terminal
First identifier information and second terminal second identifier information matches, can be by by the geographical position of the second terminal got
Confidence breath is determined as the mode of the geographical location information of first terminal, to obtain the geographical location information of first terminal, because the
In the case of the identification information match of two terminals and first terminal, distance between the two is close, so being implemented using the present invention
The geographical location information for the first terminal that example is got is just more accurate, therefore, just improves the geographical location letter of first terminal
The precision of the acquisition result of breath.
It is opposite with a kind of method that the geographical location information embodiment of the method 2 obtaining first terminal is provided of above-mentioned the application
It answers, referring to Fig. 6, present invention also provides a kind of embodiment two of the server for the geographical location information obtaining first terminal,
In the present embodiment, which may include:
First acquisition module 401, for obtaining the request for location services and first terminal that are positioned to first terminal
First user identifier and the first wireless network identification.
First receiving module 402, the second user mark sent for receiving the second terminal with position location functionality
It is identified with second wireless network.
Second receiving module 601, the device identification for receiving the second terminal that the second terminal is sent.
Third receiving module 602, correspondingly with second wireless network mark for receive that the second terminal sends
Manage location information.
First judging submodule 501, the first wireless network identification and described second for judging the first terminal are whole
The second wireless network at end identifies whether to match;
Second judgment submodule 502, in the case where the result of first judging submodule 501 is no, judging
Whether the user identifier of the login user of the first terminal matches with the user identifier of the login user of the second terminal.
Sending submodule 603, in the case of for being in the result of the second judgment submodule 503, according to described in
The mark of second terminal sends positioning command to second terminal, to trigger the positioning that the second terminal carries out geographical location.
Receiving submodule 604, for receiving the geographical location information returned after the second terminal positions successfully.
Determining module 405, the geography for the geographical location information of the second terminal to be determined as to the first terminal
Location information.
Module 605 is returned to, for the geographical location information of the first terminal to be back to the first terminal.
In the present embodiment, not only user identifier and wireless network identification all match less than in the case of may be used two
The mode of dimension code carries out the acquisition of the geographical location information of first terminal, is only matched to user identifier or wireless network identification,
It can easily and accurately get the geographical location information of first terminal, it is seen that the present embodiment can not only improve acquisition
The precision of the geographical location information of the first terminal arrived, may also adapt in it is any can logon first terminal, and ground
Reason location information can also return to user and know that the user experience is improved.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment weight
Point explanation is all difference from other examples, and the same or similar parts between the embodiments can be referred to each other.
For device class embodiment, since it is basically similar to the method embodiment, so fairly simple, the related place ginseng of description
See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only that
A little elements, but also include other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence " including one ... ", not
There is also other identical elements in the process, method, article or apparatus that includes the element for exclusion.
The acquisition methods and server of a kind of geographical location information of terminal provided herein have been carried out in detail above
Thin to introduce, specific examples are used herein to illustrate the principle and implementation manner of the present application, and above example is said
It is bright to be merely used to help understand the present processes and its core concept;Meanwhile for those of ordinary skill in the art, foundation
The thought of the application, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not
It is interpreted as the limitation to the application.
Claims (10)
1. a kind of geographical position information acquisition method of terminal, which is characterized in that this method includes:
Obtain the first identifier information of the request for location services and first terminal that are positioned to first terminal;The first identifier
Information includes:First user identifier and/or the first wireless network identification;The user identifier is used for the letter of unique mark user
Breath, the wireless network identification include:Used radio network information when by wireless network access internet;
Receive the second identifier information that the second terminal with position location functionality is sent;The second identifier information includes:The
Two user identifiers and/or second wireless network mark;
Judge whether the first identifier information matches with second identifier information;
When first identifier information and second identifier information matches, the geographical location information of the second terminal is obtained;
The geographical location information of the second terminal is determined as to the geographical location information of the first terminal;
In the case where identification information is user identifier, the first identifier information is the first client journey that first terminal logs in
The account information of sequence;The second identifier information is the account information for the second client-side program that second terminal logs in;Wherein, institute
It is identical program or associated program each other to state the first client-side program and second client-side program.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
Receive the device identification for the second terminal that the second terminal is sent;
Correspondingly, the geographical location information for obtaining the second terminal includes:
Device identification according to the second terminal sends positioning command to second terminal, carries out ground to trigger the second terminal
Manage the positioning of position;
Receive the geographical location information returned after the second terminal positions successfully.
3. according to the method described in claim 1, it is characterized in that, the case where the identification information is wireless network identification
Under, the method further includes:
Receive the geographical location information corresponding with wireless network identification that the second terminal is sent;
Correspondingly, the geographical location information for obtaining the second terminal, including:
Geographical location information corresponding with the matched wireless network identification is directly acquired according to matched wireless network identification.
4. according to the method described in claim 1, it is characterized in that, including user identifier and wireless network in the identification information
In the case of mark, second mark for judging the first identifier information and being sent with the second terminal with position location functionality
Know whether information matches, including:
The second wireless network of the first wireless network identification for judging the first terminal and the second terminal identifies whether
Match;If it is not, then judging the use of the user identifier of the login user of the first terminal and the login user of the second terminal
Family identifies whether to match.
5. according to the method described in claim 1, it is characterized in that, further including:
The geographical location information of the first terminal is back to the first terminal.
6. the geographical location information of terminal a kind of obtains server, which is characterized in that the server includes:
First acquisition module, the first identifier for obtaining the request for location services and first terminal that are positioned to first terminal
Information;The first identifier information includes:First user identifier and/or the first wireless network identification;The user identifier is used for
The information of unique mark user, the wireless network identification include:It is used wireless when by wireless network access internet
The network information;
First receiving module, the second identifier information sent for receiving the second terminal with position location functionality;Described
Two identification informations include:Second user identifies and/or second wireless network mark;
Judgment module, for judging whether the first identifier information matches with the second identifier information;
Second acquisition module, in the case where the result of the judgment module is to be, obtaining the geography of the second terminal
Location information;
Determining module, the geographical location for the geographical location information of the second terminal to be determined as to the first terminal are believed
Breath;
In the case where identification information is user identifier, the first identifier information is the first client journey that first terminal logs in
The account information of sequence;The second identifier information is the account information for the second client-side program that second terminal logs in;Wherein, institute
It is identical program or associated program each other to state the first client-side program and second client-side program.
7. server according to claim 6, which is characterized in that the server further includes:
Second receiving module, the device identification for receiving the second terminal that the second terminal is sent;
Correspondingly, second acquisition module, including:
Sending submodule sends positioning command, to trigger for the device identification according to the second terminal to second terminal
State the positioning that second terminal carries out geographical location;
Receiving submodule, for receiving the geographical location information returned after the second terminal positions successfully.
8. server according to claim 6, which is characterized in that the case where the identification information is wireless network identification
Under, the server further includes:
Third receiving module, the geographical location information corresponding with wireless network identification sent for receiving the second terminal;
Correspondingly, the acquisition module, is specifically used for:
Geographical location information corresponding with the matched wireless network identification is directly acquired according to matched wireless network identification.
9. server according to claim 6, which is characterized in that in the identification information include user identifier and wireless network
In the case that network identifies, the judgment module, including:
First judging submodule, the first wireless network identification and the second of the second terminal for judging the first terminal
Whether wireless network identification matches;
Second judgment submodule, in the case where the result of first judging submodule is no, judging described first eventually
Whether the user identifier of the login user at end matches with the user identifier of the login user of the second terminal.
10. server according to claim 6, which is characterized in that further include:
Module is returned to, for the geographical location information of the first terminal to be back to the first terminal.
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 CN104244174A (en) | 2014-12-24 |
CN104244174B true 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) |
Families Citing this family (10)
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 |
CN105100231B (en) * | 2015-07-13 | 2019-02-22 | 小米科技有限责任公司 | Acquisition methods, equipment and the system of smart machine location information |
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 |
CN108966340B (en) * | 2017-05-17 | 2020-10-13 | 腾讯科技(深圳)有限公司 | Equipment positioning method and device |
CN110942527B (en) * | 2018-09-21 | 2022-10-11 | 阿里巴巴集团控股有限公司 | Sign-in and information sending method, client, electronic device and storage medium |
CN109640247B (en) * | 2018-11-13 | 2021-01-29 | 苏州达家迎信息技术有限公司 | Method, device, terminal, server and system for determining position information |
CN111121752B (en) * | 2019-12-30 | 2021-08-10 | 中祖建设安装工程有限公司 | Control method and system of intelligent construction site positioning device |
CN111698643B (en) * | 2020-06-11 | 2022-03-15 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for positioning location of terminal |
Citations (3)
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 |
CN102904974A (en) * | 2012-09-28 | 2013-01-30 | 腾讯科技(深圳)有限公司 | Method for obtaining location of terminal, related device and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013003661A (en) * | 2011-06-13 | 2013-01-07 | Sony Corp | Information processing device, server device, information processing method and program |
-
2013
- 2013-06-13 CN CN201310233403.6A patent/CN104244174B/en active Active
-
2015
- 2015-03-23 HK HK15102901.7A patent/HK1202753A1/en unknown
Patent Citations (3)
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 |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104244174A (en) | 2014-12-24 |
HK1202753A1 (en) | 2015-10-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104244174B (en) | The acquisition methods and server of the geographical location information of terminal | |
US10757102B2 (en) | Methods, apparatus, and systems for identity authentication | |
CN109040099B (en) | Verification method, terminal and system for application | |
JP5161333B2 (en) | Information display server, information display system, and information display method | |
CN103686591B (en) | Obtain the method and system of positional information | |
CN104243516B (en) | Method, server, terminal and the system that the geographical location information of terminal obtains | |
US9398416B2 (en) | Location-based communication system and method for employment recruiting or the like | |
US10057302B2 (en) | Context-based selection of instruction sets for connecting through captive portals | |
JP6739648B2 (en) | Wireless network type detection method and apparatus and electronic device | |
WO2017031009A1 (en) | System and method for monitoring devices relative to a user defined geographic area | |
US20180121684A1 (en) | Power charger authorization for a user equipment via a cryptographic handshake | |
US20140301612A1 (en) | Method, apparatus, and system for friend recommendations | |
CN106685891A (en) | Verification method and apparatus for accessing network | |
US10169619B2 (en) | Physical token based secured charge management of a user equipment | |
CN105933869B (en) | Method of locating terminal, device and terminal server | |
CN106254328A (en) | A kind of access control method and device | |
US9898626B1 (en) | Location defined power charger management authorization for a user equipment | |
JP2019175197A (en) | Authentication device, authentication device control method, and program thereof | |
Pierre et al. | Cross-platform mobile geolocation applications based on PhoneGap | |
CN104125266A (en) | Position information processing method and device | |
US20160156726A1 (en) | Method, server, terminal, system, and storage medium for displaying multiuser map | |
CN105610831A (en) | Privacy information protection method and device and electronic equipment | |
CN104348833A (en) | Method of safely obtaining track between multiple devices | |
CN103647809A (en) | Data synchronization method and server system | |
WO2016191917A1 (en) | Position camouflage method, apparatus and system |
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 |