CN107295073B - A kind of localization method, positioning device and computer storage media - Google Patents

A kind of localization method, positioning device and computer storage media Download PDF

Info

Publication number
CN107295073B
CN107295073B CN201710442085.2A CN201710442085A CN107295073B CN 107295073 B CN107295073 B CN 107295073B CN 201710442085 A CN201710442085 A CN 201710442085A CN 107295073 B CN107295073 B CN 107295073B
Authority
CN
China
Prior art keywords
location information
location
time
page
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.)
Active
Application number
CN201710442085.2A
Other languages
Chinese (zh)
Other versions
CN107295073A (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.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710442085.2A priority Critical patent/CN107295073B/en
Publication of CN107295073A publication Critical patent/CN107295073A/en
Application granted granted Critical
Publication of CN107295073B publication Critical patent/CN107295073B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Navigation (AREA)

Abstract

The embodiment of the invention discloses a kind of localization methods,Positioning device and computer storage media,In the embodiment of the present invention,Obtain the Location Request generated according to user to the operational order of the page,Then the first location information is determined from the history location information of storage according to the Location Request,First location information be the history location information in storage time closest to current time history location information,After determining that time difference of the current time with the storage time of first location information is less than predetermined value,Obtain first location information,Using as the requested current location information of the Location Request,Thus,Thus without to web server requests current location information,It is positioned also without using alignment system,So as to reduce time and the positioning number needed for positioning,Be conducive to improve location efficiency.

Description

A kind of localization method, positioning device and computer storage media
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of localization method, positioning device and computer storage media.
Background technology
With the rise of mobile tide, very fast operation expanding improves requirement of the team to development efficiency, mixed mode Mobile application (hybird application, hybird app) comes into being.Hybird app are between native applications Application between (native application, native app) and web application (web application, web app), The advantage of the good user-interaction experiences of native app and the advantage of web app Cross-border congestion managements have been had both, has been very suitable for industry Business iteratively faster is conducive to promote development efficiency.
Hybrid app are mainly realized by web page embedded in native applications, clear its essence is forging one Look at the native app of device, the inside operation is web app.Therefore, in addition to the primary page in hybird app, it may have Webpage (web) page.Webpage namely using homepages language (such as the 5th generation hypertext markup language, HyperText Markup Language5, html5) webpage write.In hybird app, it will usually there is more Webpage opening When can be automatically positioned current position, such as in the instant messaging application of a hybird app type, when opening this immediately During tourism webpage in communication applications, which needs to position current position to provide local travel information.It is existing The Webpage of hybird app be usually that Location Request is sent to network server when being positioned, by network service Device obtains corresponding location information according to Location Request and returns to Webpage, is returned so as to which Webpage receives network server The location information returned realizes positioning.
In the research and practice process to the prior art, it was found by the inventors of the present invention that in existing hybird app Webpage positioning when need by network server obtain location information, with network server between communication process, with And network server obtains the process of location information and is required for consumption longer time, if also, Webpage in a short time It needs to carry out multiple bearing, such as user repeatedly opens a tourism webpage in a short time, then opens the tourism webpage every time When be required for re-executing primary above-mentioned position fixing process, therefore need to perform repeatedly above-mentioned position fixing process in the short time, and Larger change will not usually occur for the current location of user within this short time, therefore multiple position fixing process need not by increase That wants takes, and causes location efficiency low.
Invention content
The embodiment of the present invention provides a kind of localization method, positioning device and computer storage media, can reduce positioning institute The time needed, and positioning number can be reduced, so as to improve location efficiency.
The embodiment of the present invention provides a kind of localization method, including:
Obtain the Location Request generated according to user to the operational order of the page;
First location information, the first positioning letter are determined from the history location information of storage according to the Location Request Cease is storage time in the history location information closest to the history location information of current time;
After determining that time difference of the current time with the storage time of first location information is less than predetermined value, obtain First location information is taken, using as the requested current location information of the Location Request.
The embodiment of the present invention also provides a kind of positioning device, including:
Acquisition module, for obtaining the Location Request generated according to user to the operational order of the page;
Determining module, for determining the first location information from the history location information of storage according to the Location Request, First location information be the history location information in storage time closest to current time history location information;
Processing module, for small in the time difference for determining the current time and the storage time of first location information After predetermined value, first location information is obtained, using as the requested current location information of the Location Request.
Optionally, the processing module is additionally operable to obtain the page identification information of the page, and according to the page mark Know information and determine the corresponding time span of the page, to determine predetermined value.
Optionally, the acquisition module please according to the positioning that user generates the operational order of Webpage for obtaining It asks.
The embodiment of the present invention also provides a kind of computer storage media, which is characterized in that the computer storage media is used In storing a plurality of computer program, the computer program is loaded suitable for processor, described in any one of the above embodiments to perform Step in localization method.
The embodiment of the present invention determines that storage time is closest when generating Location Request from the history location information of preservation The history location information of current time, to determine the first location information, i.e. the first location information is the history positioning being most recently stored Then after determining that time difference of the current time with the storage time of the first location information is less than predetermined value, first is determined for information Position information is as the requested current location information of Location Request, wherein current time and the storage time of the first location information When time difference is less than predetermined value, it may be to trigger Location Request again in a relatively short period of time to illustrate user, the present bit of user Putting not to change, thus this programme directly using the first location information being most recently stored in history location information as The requested current location information of Location Request so as to fulfill positioning, works as prelocalization thus without to web server requests Information so as to reduce time and the positioning number needed for positioning, is conducive to improve location efficiency.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, 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 invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 a are the frame diagrams of localization method provided in an embodiment of the present invention;
Fig. 1 b are one flow charts of localization method provided in an embodiment of the present invention;
Fig. 1 c are the storage tables of the history location information in cache module in localization method provided in an embodiment of the present invention;
Fig. 1 d are in localization method provided in an embodiment of the present invention, and page identification information and time span are locally-located and are The mapping table of system;
Fig. 2 is another flow chart of localization method provided in an embodiment of the present invention;
Fig. 3 a are a structure diagrams of positioning device provided in an embodiment of the present invention;
Fig. 3 b are another structure diagrams of positioning device provided in an embodiment of the present invention;
Fig. 4 is the structure diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of localization method, positioning device and computer storage media.
Wherein, positioning device can integrate in the client as function module, can also be used as an entity independently of Client, client refer to run on the application in the equipment such as terminal, and terminal for example can be tablet computer, personal computer (Personal Computer, PC), mobile phone etc. have storage element and are equipped with microprocessor and the electronics with operational capability Equipment.Wherein, the page involved by the embodiment of the present invention refers to the page in client, and client is, for example, mixed mode movement Using, can be specifically instant messaging application, forum's application or game application, etc., the page involved by the embodiment of the present invention Either the primary page in Webpage or client in client.Webpage is, for example, to surpass in the 5th generation The Webpage that text mark up language html5 writes.
Client is integrated in using positioning device as function module, and client is run on for terminal, as shown in Figure 1a, The Location Request that positioning device acquisition generates the operational order of the page according to user, which is, for example, the webpage of client Then the page determines the first location information according to Location Request from the history location information of storage, history location information is for example It can be stored in cache module, which is storage time going through closest to current time in history location information History location information namely the history location information being most recently stored in cache module are determining current time and the first positioning letter After the time difference of the storage time of breath is less than predetermined value, the first location information is obtained, using requested current as Location Request Location information, so as to fulfill positioning, thus without to web server requests location information, it is not required that utilize alignment system (such as GPS system) is positioned, and so as to reduce time and the positioning number needed for positioning, is conducive to improve positioning effect Rate.
Wherein, using the first location information as the requested current location information of Location Request after, client can basis Current location information carries out relevant treatment, such as current location, etc. is shown in the page.
It is described in detail separately below.It should be noted that the serial number of following embodiment is not as preferably suitable to embodiment The restriction of sequence.
Embodiment one,
The present embodiment will be described from the angle of positioning device, and positioning device can be specifically integrated in as function module In client, client is, for example, the application run in the equipment such as terminal.
As shown in Figure 1 b, the idiographic flow of the localization method of the present embodiment can be as follows:
Step S101:Obtain the Location Request generated according to user to the operational order of the page.
Wherein, Location Request generates the operational order of the page according to user for client, operation of the user to the page Such as may include turn on the page and relevant instruction inputted in the page, such as when detect user open client it is a certain During the page generate Location Request or can be according to user click the page in navigation button clicking operation and generate Location Request.
The page operated by user can be the Webpage in client or the primary page of client.With For Webpage, the condition that different types of Webpage triggering client generates Location Request is different, for example, for tourism The Webpage of type is typically to detect to automatically generate Location Request when user opens the tourism page, for class of doing shopping The Webpage of type may then need user to click the button of positioning current location in shopping page so as to trigger client production Raw Location Request.
Step S102:First location information, the first positioning are determined from the history location information of storage according to Location Request Information be history location information in storage time closest to current time history location information.
Wherein it is possible to pre-set a cache module, which is used to preserve the history location information of client, goes through History location information referred to before current time, according to client before current time generated Location Request and determined Location information acquired in position.Wherein storage time refers to that history location information preserves the time point into cache module, can be with Time precision is set according to actual needs, such as the second (s) can be accurate to from year or is accurate to point (min), etc., such as On 01 01st, 2017 12:05:06.
Can be only to preserve a nearest history location information or preserve client at one section in cache module The a plurality of history location information generated in time, and record the storage time of every history location information.
Wherein, the location information of the present embodiment can only include location information, can also include location information and position Latitude and longitude information corresponding to information, location information for example can be to be accurate to small towns, such as China * * cities of * * provinces * * from nationality Town * * townshiies can also directly be city, such as * * cities or be accurate to region/county, such as * * areas of * * cities from city, etc. Deng.For a plurality of history location information generated whithin a period of time by recording client, as illustrated in figure 1 c, in cache module The record form of history location information can be as illustrated in figure 1 c record form.
Step S103:After determining that time difference of the current time with the storage time of the first location information is less than predetermined value, The first location information is obtained, using as the requested current location information of Location Request.
Specifically, obtain current time and obtain the first location information storage time, then calculate current time with The time difference of the storage time of first location information calculates the time span between current time and storage time, sentences later Whether the time difference break less than predetermined value, may thereby determine that whether the time difference is less than predetermined value.
Predetermined value be a time span, can be configured as needed, for example, could be provided as 10s (second), 30s, 1h (hour) or 1 day etc..Wherein, the different pages using same predetermined value can be judged, can also made Judged with different predetermined values.For different predetermined values to be used to be judged, determining that current time is fixed with first The time difference of the storage time of position information is less than before predetermined value, further includes:The page identification information of the page is obtained, and according to page The page identification information in face determines the corresponding time span of the page, to determine predetermined value.So as to be judged according to determining predetermined value Whether the time difference of current time and the storage time of the first location information is less than predetermined value.
Wherein it is possible to pre-set the time span corresponding to the page, such as the corresponding time span of the tourism page can be with It is set as 2 days, the corresponding time span of shopping page could be provided as 2h.It as shown in Figure 1 d, can be by by the page of the page Identification information and corresponding time span correspond to storage, to establish the correspondence between the page and its corresponding time span, Page identification information for example can be at least one of page ID, Page Name and page link.So as to when judging current Between whether be less than predetermined value with time difference of the storage time of the first location information before, first determined according to the identification information of the page The corresponding time span of the page, and then determine predetermined value.After determining predetermined value, execution judges current time and the first location information Storage time time difference whether be less than predetermined value the step of.
After the time difference for the storage time for determining current time and the first location information predetermined value is less than, it is, for example, less than 10s illustrates that the first location information is the preceding 10s memory storages in current time in cache module, that is to say, that in current time Preceding 10s in client occurred locating events, and the usually variation of the current position of user is little in 10s, therefore directly obtains The first location information is taken using as the requested current location information of Location Request, so as to which client can be believed according to when prelocalization It ceases and carries out relevant operation, such as the location information in current location information shows current location in the page, such as in the page Middle display current location * * areas of * * cities or the location information in current location information obtain and the relevant letter in current location Breath, such as the information such as tourism, traffic and cuisines, are then shown or are pushed these information by the page.
In the present embodiment, when being positioned, if current time and the first location information in history location information Time difference of storage time be less than predetermined value, then directly work as prelocalization using the first location information as Location Request is requested Information, so as to fulfill positioning, thus without to web server requests location information, it is not required that positioning is re-started, from And the time needed for positioning and positioning number can be reduced, be conducive to improve and determine efficiency.
Wherein, it is greater than or equal to predetermined value when the time difference for the storage time for judging current time and the first location information When, illustrate to have pass by longer time apart from previous positioning, be stored in the current position of user and cache module Position in the first nearest location information may have occurred large change, at this point it is possible to export that positioning fails as a result, also may be used To position current location according to Location Request, such as Location Request can be sent to network server to be obtained from network server side It takes current location information or local positioning system can also be utilized to obtain current location information.To utilize local positioning system For being obtained, specifically, it is greater than or equal to when the time difference for determining current time and the storage time of the first location information After predetermined value, further include:Positioning thread is called, and please using the acquisition positioning of scheduled local positioning system according to positioning thread Seek requested current location information.
Positioning thread is used to implement the thread of positioning function for client, positions to have in thread and calls local positioning system Interface.Client is the mixed mode mobile application run in terminal, can directly invoke local positioning system and be determined Position, local positioning system refer to run the alignment system of the terminal of client, i.e., realize positioning using the hardware device in terminal System, such as including global position system, mobile network base station alignment system and wireless network wifi alignment systems.
Wherein, global position system is mainly based upon global positioning system (the Global Positioning in terminal System, GPS) signal receiving module realization positioning, satellite-signal is received by the GPS signal receiving module in terminal and is added With analysis, so as to obtain location information.
The sim cards that mobile network base station is mainly based upon in terminal realize positioning, and multiple base stations are received by sim clampings Signal can substantially estimate the distance of base station according to the power of signal, after base station location is determined, can be obtained according to base station location Take location information.
The wireless wifi signal receiving modules that wireless network wifi alignment systems are mainly based upon in terminal realize positioning, It is scanned by wireless wifi signal receiving modules and acquires the wireless signal of surrounding, then obtained from collected wireless signal Emit MAC (Media Access Control, the network equipment) address information of the equipment of the wireless signal, then by these ground Location information is sent to location server, so as to which location server obtains location information according to these address informations and returns to end End.
It is understood that obtain the requested current location information of Location Request using scheduled local positioning system Process, as startup local positioning system are positioned the process to position current location.
The positioning accuracy of each local positioning system is different, and positioning accuracy refers to the location information and reality that alignment system obtains The positioning accuracy of degree of closeness between the position of border, wherein global position system is up to the location information within 10 meters, that is, obtained 10 meters or so are differed with physical location, the positioning accuracy of mobile network base station alignment system is 100 meters or so, wireless network The positioning accuracy of wifi alignment systems is at tens meters or so.
Wherein, scheduled local positioning system can be global position system, mobile network base station alignment system and nothing One of which in gauze network wifi alignment systems, can specifically be selected as needed, for example, can according to signal strength, Power supply used in the current electricity of positioning accuracy, terminal or terminal is selected, if such as current satellite-signal Relatively can then global position system be selected to be positioned by force.
Wherein, the different pages can be positioned using same local positioning system or can also use difference Local positioning system positioned, by taking the latter as an example, for example, call position thread before, further include:Obtain the page of the page Face identification information, and the corresponding local positioning system of the page is determined according to the identification information of the page, to determine that scheduled local is determined Position system.
Specifically, the local positioning system corresponding to the page can be pre-set, is locally-located when the setting page corresponds to one After system, then subsequently if desired utilized when user carries out relevant operation to the page and triggers client generation Location Request When local positioning system obtains Location Request requested current location information, then the local positioning system corresponding to the page is utilized It is obtained.Wherein, the local positioning system corresponding to the page is pre-set, can be specifically to establish corresponding with its of the page Correspondence between ground alignment system for example, as shown in Figure 1 d, by the page identification information of the page and corresponding is locally-located System corresponds to storage, so as to establish correspondence between the two, therefore, by obtaining the page identification information of the page, so as to The corresponding local positioning system of the page can be determined according to the correspondence, to determine scheduled local positioning system.
Wherein it is possible to the positioning accuracy according to needed for the different pages sets corresponding local positioning system, such as page of travelling Face may need more accurate geographical location, therefore the corresponding local positioning system of the page of travelling could be provided as satellite positioning system System, that is to say, that if desired sharp when user carries out relevant operation to the tourism page generates Location Request to trigger client With local positioning system obtain the requested location information of Location Request, then using the corresponding global position system of the page of travelling into Row obtains.For another example, for the page not high to positioning accuracy request such as shopping page, corresponding local positioning system can be set For mobile network base station alignment system.
By the above-mentioned means, the different pages can obtain relevant positioning letter using more suitably local positioning system Breath, can improve positioning performance, such as the page not high to positioning accuracy request, Location Request is according to mobile network Base station location system is handled, can be with the corresponding location information of quick obtaining while positioning accuracy can be satisfied, and can To reduce the power consumption of terminal.
Wherein, it is requested current fixed when getting Location Request using scheduled local positioning system according to positioning thread After the information of position, the current location information got is stored, with the first location information in more new historical location information, And the time of record storage.
Optionally, it is requested when failing to get Location Request using scheduled local positioning system according to positioning thread After current location information, further include:It is requested current fixed using scheduled local positioning system acquisition Location Request to judge Whether the number of position information is more than pre-determined number;If more than pre-determined number, third positioning letter is obtained from history location information Breath, using as the requested current location information of Location Request, wherein third location information is utilizes in advance in history location information Fixed local positioning system obtains and storage time is closest to the history location information of current time;If it is not above making a reservation for Number then returns to the step of performing current location information requested using scheduled local positioning system acquisition Location Request, Until obtain the requested current location information of Location Request.
Wherein, when failing to get current location information using scheduled local positioning system, then execution is recycled using pre- Fixed local positioning system obtains the step of current location information, and cycle-index is no more than pre-determined number, please until obtaining positioning Seek requested current location information.Pre-determined number can be configured according to actual needs, such as could be provided as 3 times, 5 times Or 8 times etc..
When cycle-index has been more than pre-determined number, then stops performing and work as prelocalization using the acquisition of scheduled local positioning system The step of information, and third location information is obtained from history location information, currently to determine as Location Request is requested Position information.Wherein, the selection condition of third location information is:For using scheduled local positioning system (namely corresponding to the page Local positioning system) obtain and storage apply history location information closest to current time, i.e. third location information Positioning accuracy and the positioning accuracy needed for the page are closest, and are nearest in all history location informations of same accuracy The history location information of storage.
Alternatively, in other embodiments, when cycle-index is more than pre-determined number, it can directly choose history positioning letter In breath storage time closest to current time history location information, using as the requested current location information of Location Request, Also it is requested to current location information using the first location information as Location Request.
Wherein, positioning thread is being called, and Location Request is obtained using local positioning system according to positioning thread and is asked Location information during, if client generates other new Location Requests, such as user opens another page again, The requested current location information of new Location Request if desired is obtained using local positioning system at this time, then calls another New positioning thread, it is requested to obtain the new Location Request using local positioning system according to the new positioning thread Current location information, it is possible thereby to realize that multitask positions, multiple positioning threads are individually positioned, and are not interfere with each other.
In the present embodiment, it is greater than or equal in advance when the time difference of current time and the storage time of first location information During definite value, current location information is obtained using local positioning system, i.e., is positioned using local positioning system, compared to existing For the mode that request network server is positioned, location information can be faster got, so as to reduce positioning time.
Embodiment two,
According to one described method of embodiment, citing is described in further detail below.
As shown in Fig. 2, the idiographic flow of the localization method of the present embodiment can be as follows:
Step S201:Obtain the Location Request generated according to user to the operational order of the page.
Wherein, Location Request generates the operational order of the page according to user for client, operation of the user to the page Such as it may include turn on the page and relevant instruction inputted in the page.The page operated by user can be in client The primary page of Webpage or client.By taking Webpage as an example, different types of Webpage triggers client The condition for generating Location Request is different, is typically to detect that user opens the tourism for example, for the Webpage of type of tour Location Request is automatically generated during the page, for the Webpage for type of doing shopping, then may need user at shopping page midpoint The button for hitting positioning current location generates Location Request so as to trigger client.
Step S202:First location information, the first positioning are determined from the history location information of storage according to Location Request Information be history location information in storage time closest to current time history location information.
Step S203:It is less than predetermined value in the time difference for determining current time and the storage time of first location information Later, local positioning system is called according to Location Request, to obtain the second location information and obtain the first location information, with As the requested current location information of Location Request.
Wherein it is determined that after the first location information, obtain current time and obtain the storage time of the first location information, Then the time difference of current time and the storage time of the first location information is calculated, that is, is calculated between current time and storage time Time span, judge later the time difference whether be less than predetermined value, may thereby determine that the time difference whether be less than predetermined value.
Wherein, local positioning system can be selected according to actual needs, such as can be global position system, movement One kind in network base station alignment system and wireless network wifi alignment systems.Optionally, call local positioning system it Before, the page identification information of the page is obtained, and the corresponding local positioning system of the page is determined according to page identification information, wherein, Local positioning system is called to specifically include the corresponding local positioning system of invoking page, to obtain the second location information.
Second location information is the positioning that local positioning system is positioned and got after starting local positioning system Information.
Step S204:Judge whether the first location information and the second location information are identical.
For example, can by judging whether the latitude and longitude information in the first location information and the second location information identical, if It is identical, then judge that the first location information is identical with the second location information, be otherwise judged as differing.Alternatively, can also be passed through Whether the location information in one location information and the second location information is identical, if identical, judges the first location information and second Location information is identical, is otherwise judged as differing.
Step S205:If identical, the first location information is continued as current location information, it, ought if differing Prelocalization information is updated to the second location information.
When the first location information is identical with the second location information, illustrate the first location information in history location information with working as Prelocalization to location information be identical, current position can be reflected, therefore the first location information is continued as working as Prelocalization information.When the first location information and the second location information differ, illustrate the first location information and currently navigate to Location information differs, can not correct response go out current position, current location information is updated to the second location information at this time, i.e., The first location information is not used as current location information, but using the second location information currently navigated to as currently Location information, so as to improve the accuracy of positioning.
Step S206:After judging that the first location information and the second location information differ, the second location information is stored With the first location information in more new historical location information, and the time of record storage.
When the first location information and the second location information differ, the second location information is stored into cache module, and The record storage time, so as to which the history positioning information update that history location information is most recently stored is second location information.
In the present embodiment, it is less than in advance when in the time difference for determining current time and the storage time of first location information After definite value, first using the first location information as current location information to be supplied to client, so as to client can according to work as Prelocalization information first carries out relevant operation, such as shows current location in the page.Meanwhile local positioning system is called to be determined Position, to position current position, is judged by that will position the second obtained location information with the first location information, with verification Whether the first location information is accurate, when the second location information and the first location information difference, illustrates that the first location information is not allowed Really, current location information is updated to the second location information at this time, the accuracy of positioning can be improved, when the second location information with When first location information is identical, without updating current location information, and client is also without waiting local positioning system positioning After could according to current location information carry out relevant operation, operational efficiency can be improved.
Embodiment three,
In order to preferably implement the above method, the embodiment of the present invention also provides a kind of positioning device, and the positioning device is specific It can be integrated in the client as function module, client is, for example, the application run in the equipment such as terminal.
As shown in Figure 3a, the positioning device of the present embodiment includes acquisition module 301, determining module 302 and processing module 303。
Wherein, the Location Request that acquisition module 301 generates the operational order of the page according to user for acquisition.
Location Request generates the operational order of the page according to user for client, and user for example may be used to the operation of the page To include opening the page and input relevant instruction in the page, the page operated by user can be the webpage page in client Face or the primary page of client.When the page is Webpage, the first acquisition module 301 is specifically used for obtaining root The Location Request generated according to user to the operational order of Webpage.
Determining module 302 is used to determine the first location information from the history location information of storage according to Location Request, the One location information be history location information in storage time closest to current time history location information.
Wherein it is possible to pre-set a cache module, which is used to preserve the history location information of client.It is slow Can be only to preserve a nearest history location information or preserve client to generate whithin a period of time in storing module A plurality of history location information, and record the storage time of every history location information.To record client in a period of time For a plurality of history location information of interior generation, as illustrated in figure 1 c, the record form of the history location information in cache module can In the form of record as illustrated in figure 1 c.
Processing module 303 is used to determine that it is predetermined that time difference of the current time with the storage time of the first location information is less than After value, the first location information is obtained, using as the requested current location information of Location Request.
Specifically, processing module 303 can obtain current time and obtain the storage time of the first location information, then The time difference of current time and the storage time of the first location information is calculated, judges whether the time difference is less than predetermined value later, It may thereby determine that whether the time difference is less than predetermined value.
Predetermined value be a time span, can be configured as needed, for example, could be provided as 10s (second), 30s, 1h (hour) or 1 day etc..Wherein, the different pages can be judged using different predetermined values.Processing module 303 into One step is additionally operable to obtain the page identification information of the page, and determines that the page corresponding time is long according to the page identification information of the page Degree, to determine predetermined value.So as to, judged according to determining predetermined value current time and the first location information storage time when Between difference whether be less than predetermined value.
It, can be by by the page for example, as shown in Figure 1 d wherein it is possible to pre-set the time span corresponding to the page Page identification information and corresponding time span correspond to storage, to establish the correspondence between the page and its corresponding time span Relationship, page identification information for example can be at least one of page ID, Page Name and page link.
After the time difference for the storage time for determining current time and the first location information predetermined value is less than, it is, for example, less than 10s illustrates that the first location information is the preceding 10s memory storages in current time in cache module, that is to say, that in current time Preceding 10s in client occurred locating events, and the usually variation of the current position of user is little in 10s, therefore directly obtains The first location information is taken using as the requested current location information of Location Request, so as to which client can be believed according to when prelocalization Breath carries out relevant operation.
In the present embodiment, when being positioned, if preceding time and the first location information in history location information The time difference of storage time is less than predetermined value, then directly requested when prelocalization is believed using the first location information as Location Request Breath, so as to fulfill positioning, thus without to web server requests location information, it is not required that positioning is re-started, thus The time needed for positioning and positioning number can be reduced, is conducive to improve and determines efficiency.
As shown in Figure 3b, optionally, positioning device can also further include the first judgment module 304, memory module 305 And second judgment module 306.
Wherein, processing module 303 was additionally operable in the time difference for determining current time and the storage time of the first location information After predetermined value, local positioning system is called according to Location Request, to obtain the second location information.
Local positioning system can be selected according to actual needs, such as can be global position system, mobile network One kind in base station location system and wireless network wifi alignment systems.
First judgment module 304 is used to obtain the first location information in processing module 303, to be asked as Location Request Current location information after, judge whether the first location information and the second location information identical.
For example, can by judging whether the latitude and longitude information in the first location information and the second location information identical, if It is identical, then judge that the first location information is identical with the second location information, be otherwise judged as differing.
Processing module 303 is additionally operable to, when the first judgment module 304 is judged as differing, the first location information be continued to make For current location information, when the first judgment module 304 is judged as differing, current location information is updated to the second positioning letter Breath.
When the first location information is identical with the second location information, illustrate the first location information in history location information with working as Prelocalization to location information be identical, current position can be reflected, therefore the first location information is continued as working as Prelocalization information.When the first location information and the second location information differ, illustrate the first location information and currently navigate to Location information differs, can not correct response go out current position, current location information is updated to the second location information at this time, i.e., The first location information is not used as current location information, but using the second location information currently navigated to as currently Location information, so as to improve the accuracy of positioning.
Wherein, memory module 305 is used for after the first judgment module 304 is judged as differing, storage the second positioning letter It ceases with the first location information in more new historical location information, and the time of record storage.
Further, processing module 303 be additionally operable to determine the storage time of current time and the first location information when Between difference be greater than or equal to predetermined value after, call positioning thread, and according to positioning thread obtained using scheduled local positioning system Take the requested current location information of Location Request.
Positioning thread is used to implement the thread of positioning function for client, positions to have in thread and calls local positioning system Interface.Local positioning system refers to run the alignment system of the terminal of client, i.e., is realized using the hardware device in terminal The system of positioning, such as including global position system, mobile network base station alignment system and wireless network wifi alignment systems.
It is understood that obtain the requested current location information of Location Request using scheduled local positioning system Process, as startup local positioning system are positioned the process to position current location.
Wherein, the different pages can be positioned using same local positioning system or can also use difference Local positioning system positioned, by taking the latter as an example, processing module 303 be additionally operable to call position thread before, obtain page The page identification information in face, and the corresponding local positioning system of the page is determined according to the identification information of the page, it is scheduled to determine Local positioning system.
The local positioning system corresponding to the page can be wherein pre-set, for example, as shown in Figure 1 d, by the page of the page Identification information and corresponding local positioning system correspond to storage, so as to establish correspondence between the two, therefore, pass through acquisition The page identification information of the page, it is pre- to determine so as to determine the corresponding local positioning system of the page according to the correspondence Fixed local positioning system.
By the above-mentioned means, the different pages can obtain relevant positioning letter using more suitably local positioning system Breath, can improve positioning performance.
Wherein, the second judgment module 306 is using scheduled be locally-located according to positioning thread for working as processing module 303 System fails after getting the requested current location information of Location Request, and it is fixed to judge to obtain using scheduled local positioning system Position asks whether the number of requested current location information is more than pre-determined number.
Processing module 303 is further additionally operable to, when the second judgment module 306 judges to be more than pre-determined number, position from history Third location information is obtained in information, using as the requested current location information of Location Request, wherein third location information is The history of obtained in history location information using scheduled local positioning system and storage time closest to current time is positioned Information;When the judgement of the second judgment module 306 is not above pre-determined number, returns to perform and be obtained using scheduled local positioning system The step of taking Location Request requested current location information, until obtaining the requested current location information of Location Request.
Wherein, positioning thread is being called, and Location Request is obtained using local positioning system according to positioning thread and is asked Location information during, if client generates other new Location Requests, such as user opens another page again, The requested current location information of new Location Request if desired is obtained using local positioning system at this time, then calls another New positioning thread, it is requested to obtain the new Location Request using local positioning system according to the new positioning thread Current location information, it is possible thereby to realize that multitask positions, multiple positioning threads are individually positioned, and are not interfere with each other.
In embodiment of the present invention, be more than when the time difference of current time and the storage time of first location information or During equal to predetermined value, current location information is obtained using local positioning system, i.e., is positioned, compared using local positioning system For the existing mode that is positioned of request network server, location information can be faster got, during so as to reduce positioning Between.
Example IV,
Correspondingly, the embodiment of the present invention also provides a kind of terminal, as shown in figure 4, the terminal can include radio frequency (RF, Radio Frequency) circuit 401, the memory 402, defeated that includes one or more computer readable storage mediums Enter unit 403, display unit 404, sensor 405, voicefrequency circuit 406, Wireless Fidelity (WiFi, Wireless Fidelity) Module 407, including there are one or the processor 408 of more than one processing core and the components such as power supply 409.This field skill Art personnel are appreciated that the restriction of the terminal structure shown in Fig. 4 not structure paired terminal, can include more or more than illustrating Few component either combines certain components or different components arrangement.Wherein:
RF circuits 401 can be used for receive and send messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, transfer to one or more than one processor 408 is handled;In addition, the data for being related to uplink are sent to Base station.In general, RF circuits 401 include but not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low-noise amplifier (LNA, Low Noise Amplifier), duplexer etc..In addition, RF circuits 401 can also by radio communication with network and its He communicates at equipment.The wireless communication can use any communication standard or agreement, including but not limited to global system for mobile telecommunications system Unite (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more Location (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term Evolution), Email, short message service (SMS, Short Messaging Service) etc..
Memory 402 can be used for storage software program and module, and processor 408 is stored in memory 402 by operation Software program and module, so as to perform various functions application and data processing.Memory 402 can mainly include storage journey Sequence area and storage data field, wherein, storing program area can storage program area, the application program (ratio needed at least one function Such as sound-playing function, image player function) etc.;Storage data field can be stored uses created data according to terminal (such as audio data, phone directory etc.) etc..In addition, memory 402 can include high-speed random access memory, can also include Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase Ying Di, memory 402 can also include Memory Controller, to provide processor 408 and input unit 403 to memory 402 Access.
Input unit 403 can be used for receiving the number inputted or character information and generate and user setting and function Control related keyboard, mouse, operating lever, optics or the input of trace ball signal.Specifically, in a specific embodiment In, input unit 403 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display screen or tactile Control plate, collect user on it or neighbouring touch operation (such as user using any suitable object such as finger, stylus or Operation of the attachment on touch sensitive surface or near touch sensitive surface), and corresponding connection dress is driven according to preset formula It puts.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects the signal that touch operation is brought, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 408, and can reception processing Order that device 408 is sent simultaneously is performed.It is furthermore, it is possible to a variety of using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch sensitive surface.In addition to touch sensitive surface, input unit 403 can also include other input equipments.Specifically, other are defeated Enter equipment and can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse It is one or more in mark, operating lever etc..
Display unit 404 can be used for display by information input by user or be supplied to user information and terminal it is various Graphical user interface, these graphical user interface can be made of figure, text, icon, video and its arbitrary combination.Display Unit 404 may include display panel, optionally, may be used liquid crystal display (LCD, Liquid Crystal Display), Display panel is configured in the forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode).Further , touch sensitive surface can cover display panel, when touch sensitive surface is detected on it or after neighbouring touch operation, send processing to Device 408 is followed by subsequent processing device 408 and is provided on a display panel accordingly according to the type of touch event to determine the type of touch event Visual output.Although in Fig. 4, touch sensitive surface and display panel are the components independent as two to realize input and input Function, but in some embodiments it is possible to touch sensitive surface and display panel are integrated and realizes and outputs and inputs function.
Terminal may also include at least one sensor 405, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel, proximity sensor can close display panel and/or the back of the body when terminal is moved in one's ear Light.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) acceleration Size can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as terminal The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, details are not described herein.
Voicefrequency circuit 406, loud speaker, microphone can provide the audio interface between user and terminal.Voicefrequency circuit 406 can By the transformed electric signal of the audio data received, loud speaker is transferred to, voice signal output is converted to by loud speaker;It is another The voice signal of collection is converted to electric signal by aspect, microphone, and audio data is converted to after being received by voicefrequency circuit 406, then After audio data output processor 408 is handled, through RF circuits 401 to be sent to such as another terminal or by audio data It exports to memory 402 to be further processed.Voicefrequency circuit 406 is also possible that earphone jack, with provide peripheral hardware earphone with The communication of terminal.
WiFi belongs to short range wireless transmission technology, and terminal can help user's transceiver electronics postal by WiFi module 407 Part, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 4 is shown WiFi module 407, but it is understood that, and must be configured into for terminal is not belonging to, it can not change as needed completely Become in the range of the essence of invention and omit.
Processor 408 is the control centre of terminal, using various interfaces and the various pieces of connection whole mobile phone, is led to It crosses operation or performs the software program being stored in memory 402 and/or module and call and be stored in memory 402 Data perform the various functions of terminal and processing data, so as to carry out integral monitoring to mobile phone.Optionally, processor 408 can wrap Include one or more processing cores;Preferably, processor 408 can integrate application processor and modem processor, wherein, it should With the main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication. It is understood that above-mentioned modem processor can not also be integrated into processor 408.
Terminal further includes the power supply 409 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe Reason system and processor 408 are logically contiguous, so as to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.Power supply 409 can also include one or more direct current or AC power, recharging system, power failure inspection The random components such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal can also include camera, bluetooth module etc., and details are not described herein.Specifically in this implementation In example, the processor 408 in terminal can be corresponding by the process of one or more application program according to following instruction Executable file is loaded into memory 402, and runs the application program being stored in memory 402 by processor 408, from And realize various functions:
The Location Request that is generated according to user to the operational order of the page is obtained, according to Location Request from the history of storage Determine the first location information in location information, the first location information be in history location information storage time closest to current time History location information, so as to be less than predetermined value in the time difference for the storage time for determining current time and the first location information Afterwards, the first location information is obtained, using as the requested current location information of Location Request.
Wherein, the first location information is obtained, as after the requested current location information of Location Request, can call Local positioning system is positioned to obtain the second location information, then judges whether are the first location information and the second location information It is identical, if differing, current location information is updated to the second location information, it is possible thereby to improve the accuracy of positioning.
Wherein, it is greater than or equal to predetermined value when the time difference for determining current time and the storage time of the first location information When, positioning thread can be called, and requested using scheduled local positioning system acquisition Location Request according to positioning thread Current location information.
Wherein, it is requested current when failing acquisition Location Request using scheduled local positioning system according to positioning thread After location information, cycle perform using scheduled local positioning system fail obtain Location Request it is requested when prelocalization believe Breath, for example, whether judging the number that scheduled local positioning system is utilized to obtain the requested current location information of Location Request More than pre-determined number, if so, third location information is obtained from history location information, to work as Location Request is requested Prelocalization information;If it is not, then returning to execution obtains that Location Request is requested works as prelocalization using scheduled local positioning system The step of information, until obtaining the requested current location information of Location Request.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
In the embodiment of the present invention, when generating Location Request, storage time is determined most from the history location information of preservation Close to the history location information of current time, to determine the first location information, i.e. the first location information is the history being most recently stored Location information, then after the time difference for the storage time for determining current time and the first location information is less than predetermined value, by the One location information as the requested current location information of Location Request, wherein the storage of current time and the first location information when Between time difference be less than predetermined value when, it may be to trigger Location Request again in a relatively short period of time to illustrate user, user work as Front position may not change, therefore this programme is directly by the first location information being most recently stored in history location information As the requested current location information of Location Request, so as to fulfill positioning, thus without current to web server requests Location information, it is not required that positioned using alignment system (such as GPS system), so as to reduce positioning needed for time with And positioning number, be conducive to improve location efficiency.
It will appreciated by the skilled person that all or part of step in the various methods of above-described embodiment can be with By instructing to complete or relevant hardware being controlled to complete by instructing, which can be stored in one and computer-readable deposit In storage media, and loaded and performed by processor.
For this purpose, the embodiment of the present invention also provides a kind of computer storage media, wherein a plurality of computer program is stored with, it should Computer program can be loaded by processor, to perform the step in any localization method that the embodiment of the present invention provided Suddenly.For example, the computer program can perform following steps:
The Location Request that is generated according to user to the operational order of the page is obtained, according to Location Request from the history of storage Determine the first location information in location information, the first location information be in history location information storage time closest to current time History location information, so as to be less than predetermined value in the time difference for the storage time for determining current time and the first location information Afterwards, the first location information is obtained, using as the requested current location information of Location Request.
Wherein, the first location information is obtained, as after the requested current location information of Location Request, can call Local positioning system is positioned to obtain the second location information, then judges whether are the first location information and the second location information It is identical, if differing, current location information is updated to the second location information, it is possible thereby to improve the accuracy of positioning.
Wherein, it is greater than or equal to predetermined value when the time difference for determining current time and the storage time of the first location information When, positioning thread can be called, and requested using scheduled local positioning system acquisition Location Request according to positioning thread Current location information.
Wherein, it is requested current when failing acquisition Location Request using scheduled local positioning system according to positioning thread After location information, cycle perform using scheduled local positioning system fail obtain Location Request it is requested when prelocalization believe Breath, for example, whether judging the number that scheduled local positioning system is utilized to obtain the requested current location information of Location Request More than pre-determined number, if so, third location information is obtained from history location information, to work as Location Request is requested Prelocalization information;If it is not, then returning to execution obtains that Location Request is requested works as prelocalization using scheduled local positioning system The step of information, until obtaining the requested current location information of Location Request.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which can include:Read-only memory (ROM, Read Only Memory) is deposited at random Take memory body (RAM, Random Access Memory), disk or CD etc..
By the computer program stored in the computer storage media, it can perform what the embodiment of the present invention was provided Step in any localization method, it is thereby achieved that any localization method institute that the embodiment of the present invention is provided can be real Existing advantageous effect refers to the embodiment of front, and details are not described herein.
A kind of localization method, positioning device and the computer storage media provided above the embodiment of the present invention carries out It is discussed in detail, specific case used herein is expounded the principle of the present invention and embodiment, above example Illustrate to be merely used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, according to this The thought of invention, there will be changes in specific embodiments and applications, in conclusion the content of the present specification should It is interpreted as limitation of the present invention.

Claims (15)

1. a kind of localization method, which is characterized in that including:
Obtain the Location Request generated according to user to the operational order of the page;
First location information is determined from the history location information of storage according to the Location Request, first location information is Storage time is closest to the history location information of current time in the history location information;
After determining that time difference of the current time with the storage time of first location information is less than predetermined value, institute is obtained The first location information is stated, using as the requested current location information of the Location Request.
2. localization method according to claim 1, which is characterized in that determining the current time and the described first positioning The time difference of the storage time of information is less than after predetermined value, further includes:
Local positioning system is called according to the Location Request, to obtain the second location information;
It is described to obtain first location information, as after the requested current location information of the Location Request, also to wrap It includes:Judge whether first location information and second location information are identical;If identical, by first location information Continue as the current location information;If differing, the current location information is updated to second location information.
3. localization method according to claim 2, which is characterized in that when judging first location information and described second After location information differs, further include:
Second location information is stored with the first location information in more new historical location information, and the time of record storage.
4. localization method according to claim 1, which is characterized in that determining the current time and the described first positioning The time difference of the storage time of information is greater than or equal to after predetermined value, further includes:
Call positioning thread;
It is requested when prelocalization is believed using the scheduled local positioning system acquisition Location Request according to the positioning thread Breath.
5. localization method according to claim 4, which is characterized in that it is described to call before positioning thread, it further includes:
Obtain the page identification information of the page;
The corresponding local positioning system of the page is determined according to the page identification information, is with determining scheduled be locally-located System.
6. localization method according to claim 4, which is characterized in that when according to it is described positioning thread utilize scheduled local Alignment system fails after obtaining the requested current location information of the Location Request, further includes:
Whether judge the number that scheduled local positioning system is utilized to obtain the requested current location information of Location Request More than pre-determined number;
If so, third location information is obtained from the history location information, to work as the Location Request is requested Prelocalization information, wherein the third location information is utilizes the scheduled local positioning system in the history location information Obtain and storage time closest to current time history location information;
If it is not, then return to execution obtains the requested current location information of Location Request using scheduled local positioning system The step of, until obtaining the requested current location information of Location Request.
7. localization method according to claim 1, which is characterized in that determining the current time and the described first positioning The time difference of the storage time of information is less than before predetermined value, further includes:
Obtain the page identification information of the page;
The corresponding time span of the page is determined according to the page identification information, to determine predetermined value.
8. according to claim 1-7 any one of them localization methods, which is characterized in that the acquisition is according to user to the page Operational order and the Location Request generated, including:Obtaining please according to the positioning that user generates the operational order of Webpage It asks.
9. a kind of positioning device, which is characterized in that including:
Acquisition module, for obtaining the Location Request generated according to user to the operational order of the page;
Determining module, it is described for determining the first location information from the history location information of storage according to the Location Request First location information be the history location information in storage time closest to current time history location information;
Processing module, for determining that it is pre- that time difference of the current time with the storage time of first location information is less than After definite value, first location information is obtained, using as the requested current location information of the Location Request.
10. positioning device according to claim 9, which is characterized in that further include the first judgment module;
The processing module is additionally operable to call local positioning system according to the Location Request, to obtain the second location information;
First judgment module, for obtaining first location information in the processing module, to be asked as the positioning After seeking requested current location information, judge whether first location information and second location information are identical;
The processing module is additionally operable to, when first judgment module is judged as identical, first location information be continued to make For the current location information;When first judgment module is judged as differing, the current location information is updated to Second location information.
11. positioning device according to claim 10, which is characterized in that further include:
Memory module judges that the first location information and second location information differ for working as first judgment module, Second location information is stored with the first location information in more new historical location information, and the time of record storage.
12. positioning device according to claim 9, which is characterized in that the processing module is additionally operable to determining described work as After preceding time and the time difference of the storage time of first location information are greater than or equal to predetermined value, positioning thread is called, And the requested current location information of Location Request is obtained using scheduled local positioning system according to the positioning thread.
13. positioning device according to claim 12, which is characterized in that the processing module is additionally operable to:
Obtain the page identification information of the page;
The corresponding local positioning system of the page is determined according to the page identification information, is with determining scheduled be locally-located System.
14. positioning device according to claim 12, which is characterized in that further include the second judgment module;
Second judgment module, for described in using scheduled local positioning system fail acquisition according to the positioning thread After the requested current location information of Location Request, judge to obtain the Location Request institute using scheduled local positioning system Whether the number of the current location information of request is more than pre-determined number;
The processing module is additionally operable to when second judgment module is judged as YES, and is obtained from the history location information Three location informations, using as the requested current location information of the Location Request, wherein the third location information is described Obtained in history location information using the scheduled local positioning system and storage time is closest to the history of current time Location information;When second judgment module is judged as NO, returns and perform using described in the acquisition of scheduled local positioning system The step of Location Request requested current location information, until obtaining the requested current location information of Location Request.
15. a kind of computer storage media, which is characterized in that the computer storage media is used to store a plurality of computer journey Sequence, the computer program are loaded suitable for processor, are required in 1-8 any one of them localization methods with perform claim Step.
CN201710442085.2A 2017-06-13 2017-06-13 A kind of localization method, positioning device and computer storage media Active CN107295073B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710442085.2A CN107295073B (en) 2017-06-13 2017-06-13 A kind of localization method, positioning device and computer storage media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710442085.2A CN107295073B (en) 2017-06-13 2017-06-13 A kind of localization method, positioning device and computer storage media

Publications (2)

Publication Number Publication Date
CN107295073A CN107295073A (en) 2017-10-24
CN107295073B true CN107295073B (en) 2018-06-22

Family

ID=60097157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710442085.2A Active CN107295073B (en) 2017-06-13 2017-06-13 A kind of localization method, positioning device and computer storage media

Country Status (1)

Country Link
CN (1) CN107295073B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107862217B (en) * 2017-10-31 2021-09-07 努比亚技术有限公司 Position information acquisition method, mobile terminal and computer storage medium
CN110705637A (en) * 2019-09-29 2020-01-17 上海淇玥信息技术有限公司 User classification method and device based on application installation list information and electronic equipment
CN114258022B (en) * 2021-12-16 2023-05-12 深圳壹账通创配科技有限公司 User authentication method and device, mobile communication terminal and storage medium
CN114268662A (en) * 2021-12-21 2022-04-01 北京京东振世信息技术有限公司 Position information acquisition method, device, equipment and medium
CN115412633B (en) * 2022-08-22 2023-07-25 深圳市神州路路通网络科技有限公司 Position information acquisition method, device, terminal equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023315A (en) * 2014-06-20 2014-09-03 中科创达软件股份有限公司 Password input method and device based on geographical location information
CN106028444A (en) * 2016-07-01 2016-10-12 国家计算机网络与信息安全管理中心 Method and device for predicting location of mobile terminal
CN106469205A (en) * 2016-08-31 2017-03-01 百度在线网络技术(北京)有限公司 A kind of method and apparatus of the geographical location information determining user

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8660573B2 (en) * 2005-07-19 2014-02-25 Telecommunications Systems, Inc. Location service requests throttling
KR101405945B1 (en) * 2007-10-15 2014-06-12 엘지전자 주식회사 Communication and method of generating a moving history therein
CN102056252A (en) * 2009-11-06 2011-05-11 鸿富锦精密工业(深圳)有限公司 Mobile phone and method for updating location of mobile phone
CN102843766B (en) * 2011-06-21 2015-04-29 华为技术有限公司 Method and system for locating Home NodeB, method and system for updating location information
CN105653574A (en) * 2015-11-20 2016-06-08 乐视移动智能信息技术(北京)有限公司 Ordering method and system for browsing history records

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104023315A (en) * 2014-06-20 2014-09-03 中科创达软件股份有限公司 Password input method and device based on geographical location information
CN106028444A (en) * 2016-07-01 2016-10-12 国家计算机网络与信息安全管理中心 Method and device for predicting location of mobile terminal
CN106469205A (en) * 2016-08-31 2017-03-01 百度在线网络技术(北京)有限公司 A kind of method and apparatus of the geographical location information determining user

Also Published As

Publication number Publication date
CN107295073A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
CN107295073B (en) A kind of localization method, positioning device and computer storage media
AU2021200254B2 (en) Method for displaying current geographical location on emergency call screen and terminal
CN104035948B (en) Geographic position display packing and device
CN106657431B (en) A kind of method, server, terminal and the system of business platform address resolution
CN104112213B (en) The method and device of recommendation information
CN104615453B (en) A kind of map data processing method, apparatus and system
CN105740291B (en) Map interface display method and device
EP3506088A1 (en) Method and apparatus for associating notification messages, and mobile terminal
US20150002539A1 (en) Methods and apparatuses for displaying perspective street view map
CN106534940A (en) Method and device for displaying preview picture at live broadcasting entrance
CN106126207B (en) Desktop information display method and device and mobile terminal
CN104457767A (en) Position service realization method and apparatus thereof
CN111580815B (en) Page element editing method and related equipment
CN107436758A (en) The method for information display and mobile terminal of a kind of mobile terminal
CN107592615A (en) Localization method and device
US10298590B2 (en) Application-based service providing method, apparatus, and system
CN107465807A (en) A kind of short message display method and terminal
CN108804505A (en) Data processing method, terminal device and server
CN103488720A (en) Method, system and client for viewing data
CN109451295A (en) A kind of method and system obtaining virtual information
US20160330587A1 (en) Information obtaining method, server, terminal, and system
CN105741599B (en) The display methods and device of information of vehicles
WO2014206076A1 (en) Methods and apparatuses for displaying perspective street view map
CN107562783A (en) Information query method, terminal and server
CN104866492B (en) The management method and device of bookmark

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231227

Address after: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors

Patentee after: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

Patentee after: TENCENT CLOUD COMPUTING (BEIJING) Co.,Ltd.

Address before: 518000 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 Floors

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right