CN112464112A - Positioning method, positioning device and storage medium - Google Patents

Positioning method, positioning device and storage medium Download PDF

Info

Publication number
CN112464112A
CN112464112A CN202011323417.3A CN202011323417A CN112464112A CN 112464112 A CN112464112 A CN 112464112A CN 202011323417 A CN202011323417 A CN 202011323417A CN 112464112 A CN112464112 A CN 112464112A
Authority
CN
China
Prior art keywords
area
identifier
terminal device
preset
base station
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011323417.3A
Other languages
Chinese (zh)
Inventor
黄良懿
冯伟
曹笑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Taihengnuo Technology Co ltd
Original Assignee
Shenzhen Taihengnuo Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Taihengnuo Technology Co ltd filed Critical Shenzhen Taihengnuo Technology Co ltd
Priority to CN202011323417.3A priority Critical patent/CN112464112A/en
Publication of CN112464112A publication Critical patent/CN112464112A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Abstract

The embodiment of the application provides a positioning method, a positioning device and a storage medium, wherein the method comprises the following steps: and determining the identifier of the first area where the terminal equipment is currently located. And determining the current position of the terminal equipment according to the identifier of the first area and a preset corresponding relation, wherein the preset corresponding relation comprises at least one area identifier and the position corresponding to each area identifier. The preset corresponding relation used for indicating the position corresponding to the area identifier and the area identifier is stored in the terminal equipment in advance, so that the position where the terminal equipment is located at present can be quickly and effectively determined according to the identifier of the first area where the terminal equipment is located at present and the preset corresponding relation in the state of no network or weak network, the positioning of the terminal equipment in the state of no network or weak network is effectively realized, and the limitation of the positioning of the terminal equipment is avoided.

Description

Positioning method, positioning device and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a positioning method, a positioning apparatus, and a storage medium.
Background
In the process of executing relevant service processing, the terminal device generally needs to locate itself, that is, determine the location information of the terminal device.
In the related art, when Positioning the terminal device, for example, the Positioning may be implemented based on a Global Positioning System (GPS), or the position of the terminal device may also be determined by using a base station, or the Positioning of the terminal device may also be implemented based on Wireless Fidelity (WI-FI), however, in any implementation manner, accurate Positioning may be implemented only depending on a network.
Therefore, when the terminal device has no network or the network signal is poor, the terminal device cannot be effectively positioned.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
In view of the above technical problems, the present application provides a positioning method, a positioning apparatus, and a storage medium, so that when a terminal device has no network or network signals are poor, the terminal device can be effectively positioned.
In order to solve the above technical problem, the present application provides a positioning method, applied to a terminal device, including:
determining the identifier of a first area where the terminal equipment is located currently;
and determining the current position of the terminal device according to the identifier of the first area and a preset corresponding relationship, wherein optionally, the preset corresponding relationship comprises at least one area identifier and a position corresponding to each area identifier.
Optionally, determining the current location of the terminal device according to the identifier of the first area and a preset corresponding relationship includes:
acquiring the preset corresponding relation, wherein optionally, the preset corresponding relation is pre-stored in a storage space by the terminal device;
inquiring the position corresponding to the identifier of the first area in the preset corresponding relation;
and determining the position corresponding to the identifier of the first area as the current position of the terminal equipment.
Optionally, the network signal strength of the terminal device is less than or equal to a first threshold.
Optionally, the method further comprises:
obtaining a position of a base station corresponding to at least one second area, wherein optionally, the at least one second area is an area accessed by the terminal device within a preset time period;
and determining the preset corresponding relation according to the identifier of the at least one second area and the position of the base station corresponding to the at least one second area, and optionally, storing the preset corresponding relation in a storage space.
Optionally, the obtaining the position of the base station corresponding to the at least one second area includes:
obtaining an identifier of the at least one second area, optionally, obtaining the identifier of the at least one second area in a storage space;
and acquiring the position of the base station corresponding to the at least one second area according to the identifier of the at least one second area.
Optionally, acquiring the position of the base station corresponding to the at least one second area according to the identifier of the at least one second area includes:
sending an identification of the at least one second area to a server;
and receiving the position of the base station corresponding to the at least one second area sent by the server.
Optionally, the method further comprises:
in the preset time period, after the terminal equipment accesses a second area, the terminal equipment acquires the identifier of the second area;
and the terminal equipment stores the identifier of the second area to a storage space.
Optionally, the method further comprises:
after the terminal device accesses a third area, if the terminal device judges that the preset corresponding relation does not include the identifier of the third area, the terminal device acquires the position of a base station corresponding to the third area;
and adding the identifier of the third area and the base station position corresponding to the third area to the preset corresponding relation.
Optionally, the method further comprises:
executing a preset service according to the current position of the terminal device, wherein optionally, the preset service includes at least one of the following: information push, schedule reminding, weather service, travel duration estimation service and dynamic sharing service.
The application also provides a positioning device, which is applied to a terminal device and comprises:
the determining module is used for determining the identifier of a first area where the terminal equipment is located currently;
the determining module is further configured to determine a current location of the terminal device according to the identifier of the first area and a preset corresponding relationship, and optionally, the preset corresponding relationship includes at least one area identifier and a location corresponding to each area identifier.
Optionally, the determining module is specifically configured to:
acquiring the preset corresponding relation, wherein optionally, the preset corresponding relation is pre-stored in a storage space by the terminal device;
inquiring the position corresponding to the identifier of the first area in the preset corresponding relation;
and determining the position corresponding to the identifier of the first area as the current position of the terminal equipment.
Optionally, the network signal strength of the terminal device is less than or equal to a first threshold.
Optionally, the apparatus further comprises: an acquisition module;
the obtaining module is configured to obtain a position of a base station corresponding to at least one second area, and optionally, the at least one second area is an area to which the terminal device has access within a preset time period;
the determining module is specifically configured to:
and determining the preset corresponding relation according to the identifier of the at least one second area and the position of the base station corresponding to the at least one second area, and optionally, storing the preset corresponding relation in a storage space.
Optionally, the obtaining module is specifically configured to:
obtaining an identifier of the at least one second area, optionally, obtaining the identifier of the at least one second area in a storage space;
and acquiring the position of the base station corresponding to the at least one second area according to the identifier of the at least one second area.
Optionally, the obtaining module is specifically configured to:
sending an identification of the at least one second area to a server;
and receiving the position of the base station corresponding to the at least one second area sent by the server.
Optionally, the obtaining module is further configured to:
in the preset time period, after the terminal equipment accesses a second area, the terminal equipment acquires the identifier of the second area;
and the terminal equipment stores the identifier of the second area to a storage space.
Optionally, the obtaining module is further configured to:
after the terminal device accesses a third area, if the terminal device judges that the preset corresponding relation does not include the identifier of the third area, the terminal device acquires the position of a base station corresponding to the third area;
and adding the identifier of the third area and the base station position corresponding to the third area to the preset corresponding relation.
Optionally, the apparatus further comprises: a processing module;
the processing module is configured to execute a preset service according to the current location of the terminal device, where optionally, the preset service includes at least one of the following: information push, schedule reminding, weather service, travel duration estimation service and dynamic sharing service.
The present application further provides a terminal device, including: the positioning system comprises a memory and a processor, wherein the memory stores a positioning program, and the positioning program realizes the steps of the method when being executed by the processor.
The present application also provides a computer storage medium having a computer program stored thereon, which, when being executed by a processor, carries out the steps of the method as described above.
As described above, the positioning method of the present application is applied to a terminal device, and determines an identifier of a first area where the terminal device is currently located. And determining the current position of the terminal equipment according to the identifier of the first area and a preset corresponding relation, wherein the preset corresponding relation comprises a plurality of area identifiers and the position corresponding to each area identifier. The preset corresponding relation used for indicating the position corresponding to the area identifier and the area identifier is stored in the terminal equipment in advance, so that the position where the terminal equipment is located at present can be quickly and effectively determined according to the identifier of the first area where the terminal equipment is located at present and the preset corresponding relation in the state of no network or weak network, the positioning of the terminal equipment in the state of no network or weak network is effectively realized, and the limitation of the positioning of the terminal equipment is avoided.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a communication network system architecture diagram according to an embodiment of the present application;
fig. 2 is a flowchart of a positioning method according to an embodiment of the present application;
fig. 3 is another flowchart of a positioning method according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating implementation of a preset correspondence relationship provided in an embodiment of the present application;
fig. 5 is a flowchart of a positioning method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a positioning method according to an embodiment of the present application;
fig. 7 is a schematic diagram illustrating an implementation of a region identifier statistical table according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a positioning device according to an embodiment of the present application;
fig. 9 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In order to better understand the technical solution of the present application, the following further detailed description is made on the background art related to the present application:
currently, when a terminal device performs positioning, for example, positioning may be performed based on GPS, or positioning may also be performed based on a base station, or positioning may also be performed based on Wi-Fi, and these implementations and their existing drawbacks are respectively described below.
In the implementation mode of positioning based on the GPS, the terminal device may send its own position signal to the positioning background based on a GPS positioning module on the terminal device, thereby implementing positioning of the terminal device.
However, in the implementation of positioning based on GPS, the GPS positioning module may search for satellite signals for a long time in a state where the terminal device has no network, and may download ephemeris of a current satellite in a state where the terminal device has a network, thereby consuming a large amount of traffic. Optionally, when the terminal device performs positioning based on the GPS, the positioning accuracy needs to be adjusted continuously because satellite signals need to be searched continuously, so that the GPS positioning module of the terminal device consumes more power.
In an implementation of positioning based on a base station, that is, Global System for Mobile Communications (GPS) cellular base station positioning, optionally, under a Mobile communication network, the base station may be utilized to measure a distance of a terminal device, so as to determine a location of the terminal device based on the distance.
However, in the implementation manner of positioning based on the base station, there is a network access requirement for the terminal device, and the positioning of the terminal device can be implemented only when the terminal device opens the mobile communication network or WiFi, so that the positioning scenario of the terminal device is limited. Moreover, the positioning accuracy in this implementation may be affected by the environment and the number of base stations around the terminal device, which may result in low accuracy of positioning of the terminal device.
In the implementation mode of positioning based on WiFi, AP signals around the terminal device may be scanned and collected under the condition that the terminal device turns on WiFi, an MAC address broadcasted by the AP is obtained, then the terminal device sends data capable of indicating the AP to the location server, and the location server retrieves the geographical location of each AP, and calculates the geographical location of the device and returns the geographical location to the user device in combination with the strength of each signal.
However, in an implementation manner of positioning based on WiFi, for example, WiFi of a terminal device is turned on, and there is a requirement for network access of the terminal device, and the positioning of the terminal device may be implemented only when the terminal device turns on a mobile communication network or WiFi, so that a positioning scenario of the terminal device is limited.
In summary, in various possible implementation manners for implementing the positioning of the terminal device, the prior art has certain requirements on the terminal device network, so that in a state where the terminal device is not networked or is weakly networked, the prior art cannot effectively implement the positioning of the terminal device, and thus the positioning scene of the terminal device is limited.
Aiming at the problems in the prior art, the application provides the following technical conception: the area identification of the base station through which the terminal equipment passes and the position information corresponding to each area identification can be stored locally, so that the terminal equipment can obtain the position information corresponding to the area identification from the local according to the area identification of the current area in the state that the terminal equipment is in a non-network or weak-network state, and the terminal equipment can be accurately and effectively positioned in the non-network or weak-network state.
Optionally, the no-network state refers to that the terminal device is not connected to the network, and the weak-network state refers to that the terminal device has network connection but the network is poor.
Based on the technical concept introduced above, the following describes a positioning method provided by the present application, and in order to facilitate understanding of the embodiments of the present application, a communication network system on which the terminal device of the present application is based is described below.
Referring to fig. 1, fig. 1 is a communication network architecture diagram according to an embodiment of the present application,
as shown in fig. 1, the communication system includes a base station and a terminal device. The communication System may be a Global System for Mobile communications (GSM) System, a Code Division Multiple Access (CDMA) System, a Wideband Code Division Multiple Access (WCDMA) System, a Long Term Evolution (LTE) System, or a 5th-Generation (5G) System. Correspondingly, the Base Station may be a Base Transceiver Station (BTS) in a GSM system or a CDMA system, a Base Station (NodeB, NB) in a WCDMA system, an evolved NodeB (eNB) in an LTE system, an Access Point (AP), or a relay Station, or a Base Station in a 5G system, which is not limited herein.
The terminal device may be a wireless terminal, which may be a device that provides voice and/or data connectivity to a user, a handheld device having wireless connection capability, or other processing device connected to a wireless modem. A wireless terminal may communicate with at least one core Network via a Radio Access Network (RAN). The wireless terminals may be mobile terminals such as mobile telephones (or "cellular" telephones) and computers with mobile terminals, such as portable, pocket, hand-held, computer-included, or vehicle-mounted mobile devices, that exchange voice and/or data with a radio access network. A wireless Terminal may also be referred to as a Subscriber Unit (Subscriber Unit), a Subscriber Station (Subscriber Station), a Mobile Station (Mobile Station), a Remote Station (Remote Station), an Access Point (Access Point), a Remote Terminal (Remote Terminal), an Access Terminal (Access Terminal), a User Terminal (User Terminal), a User Equipment (User Equipment, UE for short), or a User Agent (User Agent), which is not limited herein.
It is to be understood that the terminal device in the present application may also be a mobile terminal, and alternatively, the mobile terminal may be implemented in various forms. For example, the mobile terminal described in the present application may include mobile terminals such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and fixed terminals such as a Digital TV, a desktop computer, and the like.
It will be understood by those skilled in the art that the configuration according to the embodiments of the present application can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Various embodiments of the present application are presented in the context of the above-described communication network system, and it should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
First, a positioning method provided by the present application is introduced with reference to fig. 2, and fig. 2 is a flowchart of the positioning method provided by the embodiment of the present application.
As shown in fig. 2, the method includes:
s201, determining the identification of the first area where the terminal equipment is located currently.
Alternatively, an area, also called a cellular area, refers to an area covered by one or a part (sector antenna) of a base station in a cellular mobile communication system, in which area a terminal device can reliably communicate with the base station through a radio channel.
Each area corresponds to a respective identifier, and because the area is a coverage area of a base station, each base station also corresponds to an area identifier, optionally, the area identifier may be, for example, an area identifier cell _ id, and optionally, the cell _ id identifies which area in the network transmits the user call, and translates the information into latitude and longitude to determine the location of the terminal device.
In this embodiment, assuming that the terminal device is currently located in the first area, for example, the terminal device currently establishes a connection with a base station in the first area, the terminal device may determine an identifier of the first area where the terminal device is currently located.
In a possible implementation manner, the network signal strength of the terminal device in this embodiment may be smaller than the first threshold, which indicates that the terminal device is in a wireless or weak network state, and optionally, the specific setting of the first threshold may be selected according to an actual requirement, which is not particularly limited in this embodiment.
It should be noted that, as long as the terminal device has a signal, the terminal device may determine the identifier of the current area, that is, when the terminal device obtains the identifier of the current area, the terminal device does not need to rely on a network, and therefore in this embodiment, even if the terminal device is in a wireless or weak network state, the terminal device may still determine the identifier of the current first area.
S202, determining the current position of the terminal device according to the identifier of the first area and a preset corresponding relation, wherein the preset corresponding relation comprises at least one area identifier and the position corresponding to each area identifier.
In this embodiment, a preset corresponding relationship may be stored in the terminal device in advance, where the preset corresponding relationship includes a plurality of area identifiers and location information corresponding to each area identifier, and after the terminal device determines an identifier of a first area where the terminal device is currently located, the terminal device may search, from the local preset corresponding relationship, a location corresponding to the identifier of the first area, so as to determine the current location of the terminal device.
In a possible implementation manner, the preset corresponding relationship may be pre-stored in the terminal device when the terminal device has a network, so that the terminal device does not need to use the network when determining the current position of the terminal device according to the preset corresponding relationship, thereby effectively positioning the terminal device in a no-network or weak-network state.
Optionally, the area identifier in the preset correspondence may be, for example, an area identifier that the terminal device has reached, that is, the area identifier that the terminal device has reached and a position corresponding to the area identifier are stored in the terminal device.
Or, the area identifier in the preset correspondence may also be a plurality of preset area identifiers, which may include area identifiers that the terminal device has not reached, for example, an identifier of a partial area that is closer to an area that the terminal device frequently reaches, and the like.
The location corresponding to each area identifier may include, for example, latitude and longitude, or may further include information of a city, a village, and the like, and the specific implementation manner of the location is not particularly limited in this embodiment, and any location that is used to indicate geographic location information may be used as the location in this embodiment.
In an actual implementation process, the area identifiers included in the preset corresponding relationship and the specific implementation manner of the positions corresponding to the area identifiers may be selected according to actual requirements, which is not particularly limited in this embodiment.
The positioning method provided by the embodiment of the application comprises the following steps: and determining the identifier of the first area where the terminal equipment is currently located. And determining the current position of the terminal equipment according to the identifier of the first area and a preset corresponding relation, wherein the preset corresponding relation comprises a plurality of area identifiers and the position corresponding to each area identifier. The preset corresponding relation used for indicating the position corresponding to the area identifier and the area identifier is stored in the terminal equipment in advance, so that the position where the terminal equipment is located at present can be quickly and effectively determined according to the identifier of the first area where the terminal equipment is located at present and the preset corresponding relation in the state of no network or weak network, the positioning of the terminal equipment in the state of no network or weak network is effectively realized, and the limitation of the positioning of the terminal equipment is avoided.
Based on the above embodiments, the following describes the positioning method provided by the present application in further detail with reference to fig. 3 and fig. 4, fig. 3 is another flowchart of the positioning method provided by the present application, and fig. 4 is a schematic diagram of implementation of the preset corresponding relationship provided by the present application.
As shown in fig. 3, the method includes:
s301, determining the identifier of the first area where the terminal device is located currently.
Optionally, the implementation manner of S301 is similar to that of S201, and is not described here again.
S302, obtaining a preset corresponding relation in a storage space of the terminal device, wherein the preset corresponding relation is stored in the storage space in advance by the terminal device.
In this embodiment, a section of storage space may be preset in the terminal device, and the preset corresponding relationship is stored in the storage space, so that when the terminal device needs to be located, the preset corresponding relationship may be obtained in the storage space of the terminal device.
S303, inquiring the position corresponding to the identifier of the first area in the preset corresponding relation.
Optionally, the preset correspondence includes a plurality of area identifiers and a position corresponding to each area identifier, and in a possible implementation manner, the data in the position may include at least one of the following: longitude, latitude, country, city, township, and street, in the actual implementation process, the specific implementation manner of the location information may be selected according to the actual requirement, which is not particularly limited in this embodiment.
One possible implementation of the preset correspondence is described below with reference to figure 4,
referring to fig. 4, it is assumed that 6 area identifiers, 123, 34, 5678, 796, and 3425, are stored in the current preset corresponding relationship, and the implementation manner of the corresponding positions of the area identifiers is also shown in fig. 4.
After determining the identifier of the first area where the terminal device is currently located, the terminal device may query in a preset corresponding relationship, for example, if the identifier of the currently determined first area is 796, it may be determined from the preset corresponding relationship that the longitude corresponding to the identifier of the area is 93, the latitude is 26, and location information of a country, a city, a county, a town, a street, and the like may also be queried from the preset corresponding relationship.
Optionally, the preset corresponding relationship shown in fig. 4 is only an exemplary illustration, and in an actual implementation process, the area identifiers included in the preset corresponding relationship, the positions corresponding to the area identifiers, and the like may be determined according to actual requirements, which is not particularly limited in this embodiment.
S304, determining the position corresponding to the identifier of the first area as the current position of the terminal equipment.
After the position corresponding to the identifier of the first area is determined according to the preset corresponding relation, because the current terminal device is located in the range of the first area, the position corresponding to the identifier of the first area is the current position of the terminal device, and therefore the terminal device can be simply and effectively positioned.
S305, executing a preset service according to the current position of the terminal equipment, wherein the preset service comprises at least one of the following services: information push, schedule reminding, weather service, travel duration estimation service and dynamic sharing service.
In this embodiment, after the current location of the terminal device is determined, the preset service may be executed according to the current location of the terminal device.
Optionally, the preset service may include, for example, information push, such as: when a user is in a high-speed rail, a train, an automobile and other transportation means, the signal of the terminal equipment is weak, the current geographical position of the terminal equipment can be obtained by locally inquiring the area identifier of the base station where the user is located, the change of the area identifier where the terminal equipment is located and the return time, the travel track of the user can be judged, and the pushing of related contents such as culture, history, tourism and the like can be carried out without the need of a networking state or the need of ensuring that the mobile phone signal is strong.
Optionally, the preset service may further include a schedule reminder, for example: the data of the area identification of the active base station where the user arrives can be counted by the background, the resident position and the corresponding residence time of the user can be obtained through evaluation, and relevant schedule reminding services such as work, body building and the like are provided for the user.
Optionally, the preset service may also include, for example, a weather service, such as: the weather module in the mobile phone system can call the area identification of the current area under the network-free state, and the geographical position information of the current terminal equipment is obtained through inquiry, so that real-time on-site weather service is provided.
Optionally, the preset service may also include, for example, a travel time length estimation service, such as: the time difference of reaching different base stations is calculated by counting the time of the user passing through the area identifications of different base stations, and the required time length of the target base station to be approached can be estimated when the user is in the area identification of a certain base station.
Optionally, the preset service may further include a dynamic sharing service, for example: when the terminal equipment is in a network-free state and shares the friend circle dynamically, the display requirement of additional geographic positions can be met, and the position information is determined through the area identification data of the base station where the current terminal equipment is located, so that dynamic sharing is performed.
In this embodiment, specific services executed after determining the current location of the terminal device are not particularly limited, and may be selected according to actual requirements, and as long as the specific services are location information services that are applicable to the terminal device, the specific services may be all used as preset services in this embodiment.
The positioning method provided by the embodiment of the application comprises the following steps: and determining the identifier of the first area where the terminal equipment is currently located. And acquiring a preset corresponding relation in a storage space of the terminal equipment, wherein the preset corresponding relation is stored in the storage space in advance by the terminal equipment. And inquiring the position corresponding to the identifier of the first area in the preset corresponding relation. And determining the position corresponding to the identifier of the first area as the current position of the terminal equipment. Executing preset services according to the current position of the terminal equipment, wherein the preset services comprise at least one of the following services: information push, schedule reminding, weather service, travel duration estimation service and dynamic sharing service. The preset corresponding relation is prestored in the storage space of the terminal equipment, so that the position corresponding to the area identifier in the preset corresponding relation can be inquired, the current position of the terminal equipment can be quickly and effectively determined, in the process, the network does not need to be relied on, and the GPS module of the terminal equipment does not need to be called, so that the terminal equipment can be quickly and effectively positioned in a state without a network or a weak network, in the process, the position service can be provided without the network, the flow consumption can be effectively reduced, the position can be determined only by local inquiry of the terminal equipment, the background operation is simple, the power consumption can be effectively reduced, the positioning can be more quickly and accurately realized, and the positioning efficiency and accuracy can be effectively improved.
On the basis of the foregoing embodiments, a possible implementation manner of determining the preset corresponding relationship in the present application is described below with reference to specific embodiments, and fig. 5 is another flowchart of the positioning method provided in the embodiments of the present application.
As shown in fig. 5, the method includes:
s501, in a preset time period, after the terminal device accesses a second area, the terminal device obtains the identifier of the second area.
In this embodiment, the second area is an area to which the terminal device has access, and specifically, in a preset time period, the terminal device may obtain an identifier of an area corresponding to a base station every time the terminal device passes through the base station, so as to obtain at least one identifier of the second area.
S502, the terminal device stores the identifier of the second area in a storage space.
After acquiring the identifiers of the plurality of second areas, the terminal device may store the identifier of at least one second area in the storage space.
S503, acquiring the identification of the at least one second area in the storage space.
S504, the identification of the at least one second area is sent to the server.
After the terminal device completes the statistics of the identifiers of the accessed regions in the preset time period, the identifier of at least one second region may be stored in the storage space, and optionally, the at least one second region is the region accessed by the terminal device in the preset time period.
Then, the terminal device may send an identifier of at least one second area to the server, so that the server parses the identifier of each second area, thereby obtaining a location of the base station corresponding to each identifier of each second area, where optionally, the location may include, for example, the above-described location: longitude, latitude, country, city, town, street, etc.
And S505, receiving the position of the base station corresponding to the at least one second area sent by the server.
After the server obtains the locations of the base stations corresponding to the second areas through analysis, the server may send the obtained locations to the terminal device, and then the terminal device may receive the location of the base station corresponding to at least one second area sent by the server.
S506, determining a preset corresponding relation according to the identifier of the at least one second area and the position of the base station corresponding to the at least one second area, and storing the preset corresponding relation into a storage space.
It can be understood that, in the storage space of the terminal device, the identifier of each second area is stored, and the position of the base station corresponding to at least one second area sent by the server is currently received, a preset corresponding relationship may be determined according to the identifier of each second area and the position of the base station corresponding to the identifier of each second area, and then the preset corresponding relationship is stored in a covering manner in the storage space which originally has only the identifier of the second area, so as to implement the pre-storage of the preset corresponding relationship.
It can be understood that the determination of the identifier of the second area by the terminal device, the transmission of the identifier of the second area to the server, and the reception of the base station location corresponding to the second area transmitted by the server can be performed when the terminal device is in the networking state, so that the accuracy and the validity of the determined preset corresponding relationship can be ensured.
The positioning method provided by the embodiment of the application comprises the following steps: in a preset time period, after the terminal device accesses a second area, the terminal device obtains the identifier of the second area. And the terminal equipment stores the identifier of the second area in the storage space. An identification of the at least one second area is retrieved in the storage space. An identification of the at least one second area is sent to the server. And receiving the position of the base station corresponding to the at least one second area sent by the server. And determining a preset corresponding relation according to the identifier of the at least one second area and the position of the base station corresponding to the at least one second area, and storing the preset corresponding relation into a storage space. When the terminal equipment is in a networking state, the identification of the second area accessed by the terminal equipment is obtained in a preset time period, and the identification of each second area is sent to the server, so that the server can determine the position of the base station corresponding to the identification of each second area according to the identification of each second area, and then the terminal equipment receives the position sent by the server, so that the identification of each second area and the corresponding position can be obtained, and the determination of the preset corresponding relation is effectively realized.
On the basis of the above, in a possible implementation manner, after the preset corresponding relationship is determined and stored in the storage space, the preset corresponding relationship may also be updated, and an implementation manner of updating the preset relationship is described below:
after the terminal equipment is accessed to the third area, if the terminal equipment judges that the preset corresponding relation does not include the identifier of the third area, the terminal equipment acquires the position of a base station corresponding to the third area;
and adding the identifier of the third area and the position of the base station corresponding to the third area to a preset corresponding relation.
Optionally, the third area is an area to which the terminal device accesses after the preset corresponding relationship is determined, and after the terminal device accesses the third area, the terminal device may determine that the current preset corresponding relationship does not include the identifier of the third area, for example, and then the terminal device may add the identifier of the third area and the position of the base station corresponding to the third area to the preset corresponding relationship, so as to update the preset corresponding relationship.
Similarly, the terminal device can obtain the identifier of the third area, and after the terminal device is networked, the identifier of the third area is sent to the server, the server analyzes according to the identifier of the third area, the position of the base station corresponding to the third area can be obtained, the server sends the position of the base station corresponding to the third area to the terminal device, then the terminal device can add the identifier of the third area and the position of the base station corresponding to the third area into the preset corresponding relationship, thereby updating the preset corresponding relationship can be effectively realized, and the effectiveness of positioning of the terminal device can be effectively guaranteed to be realized according to the preset corresponding relationship.
Based on the foregoing embodiment, a system is introduced to the positioning method provided by the present application with reference to a specific example and fig. 6 and 7, where fig. 6 is a schematic flow diagram of the positioning method provided by the embodiment of the present application, and fig. 7 is a schematic implementation diagram of the area identifier statistical table provided by the embodiment of the present application.
As shown in fig. 6:
assuming that a storage space is preset in the terminal device, when the terminal device is in a networking state, the area identifier corresponding to the base station can be recorded and stored locally every time the terminal device passes through one base station, and after a period of time, a statistical table of the area identifiers of the base stations which have arrived recently by the terminal device is stored at the terminal device.
In this embodiment, it is assumed that the trigger condition is set to be a time period, where the time period may be, for example, one week or one month, and in the time period, the area identifier of the base station through which the terminal device passes is counted, and when the time period arrives, it may be determined that the acquisition of the area identifier is completed.
After that, when the terminal device is networked, the local area identifier statistical table may be uploaded to the server, for example, referring to fig. 7, assuming that the statistical table including 6 area identifiers is currently obtained, the terminal device may send the statistical table to the server.
After receiving the information, the server analyzes the longitude, latitude, country, city, county, town, street and other geographic position information of the base station corresponding to each area identifier according to each area identifier and the base station library, and fills the information column corresponding to each area identifier in a row, and finally obtains a one-to-one correspondence table containing the area identifiers, the longitude, the latitude, the country, the city, the county, the town and the street.
As shown in fig. 7, after completing the analysis of the base station positions corresponding to all the area identifiers, the server may send back the position of the base station corresponding to each area identifier to the terminal device, and in a possible implementation manner, the terminal device may determine a preset corresponding relationship according to the area identifiers and the positions of the base stations corresponding to each area identifier, and store the preset corresponding relationship in a covering manner to a memory space where only the area identifier of the base station is originally recorded.
After the preset corresponding relation is stored in the storage space of the terminal device, even if the terminal device is in a no-network or weak-network state, the preset corresponding relation locally stored in the terminal device can be compared as long as the terminal device inquires the area identifier of the base station where the current terminal device is located, so that the accurate geographic position of the terminal device can be quickly and effectively obtained.
Optionally, if the terminal device passes through a new base station, the area identifier of the new base station at this time is still recorded, in a possible implementation manner, a new storage space may be set for storing information of the newly added area identifier, then, as long as the terminal device is in a networking state, the newly added area identifier may be uploaded to the server for analysis, after the server completes analysis, the position of the base station corresponding to the area identifier is returned to the terminal device, and the terminal device may add the position corresponding to the newly added area identifier to the preset corresponding relationship, thereby implementing timely and accurate updating of the local preset corresponding relationship of the iterative terminal device.
In summary, according to the positioning method provided by the embodiment of the application, when the terminal device requests the location service, networking is not required, a module such as a GPS is not required, and because the preset corresponding relationship is stored locally, the real-time geographic location of the terminal device can be quickly obtained through local query, so that positioning when the terminal device is in a no-network or weak-network state is effectively realized, and limitation of positioning of the terminal device is avoided.
Fig. 8 is a schematic structural diagram of a positioning device according to an embodiment of the present application. As shown in fig. 8, the apparatus 80 includes: a determination module 801, an acquisition module 802, and a processing module 803.
A determining module 801, configured to determine an identifier of a first area where a terminal device is currently located;
the determining module 801 is further configured to determine a current location of the terminal device according to the identifier of the first area and a preset corresponding relationship, where the preset corresponding relationship includes a plurality of area identifiers and a location corresponding to each area identifier.
Optionally, the determining module 801 is specifically configured to:
acquiring the preset corresponding relation in a storage space of the terminal equipment, wherein the preset corresponding relation is stored in the storage space in advance by the terminal equipment;
inquiring the position corresponding to the identifier of the first area in the preset corresponding relation;
and determining the position corresponding to the identifier of the first area as the current position of the terminal equipment.
Optionally, the network signal strength of the terminal device is less than or equal to a first threshold.
Optionally, the apparatus further comprises: an acquisition module 802;
the obtaining module 802 is configured to obtain a position of a base station corresponding to at least one second area, where the at least one second area is an area to which the terminal device has access within a preset time period;
the determining module 801 is specifically configured to:
and determining the preset corresponding relation according to the identifier of the at least one second area and the position of the base station corresponding to the at least one second area, and storing the preset corresponding relation into the storage space.
Optionally, the obtaining module 802 is specifically configured to:
obtaining an identification of the at least one second region in the storage space;
and acquiring the position of the base station corresponding to the at least one second area according to the identifier of the at least one second area.
Optionally, the obtaining module 802 is specifically configured to:
sending an identification of the at least one second area to a server;
and receiving the position of the base station corresponding to the at least one second area sent by the server.
Optionally, the obtaining module 802 is further configured to:
in the preset time period, after the terminal equipment accesses a second area, the terminal equipment acquires the identifier of the second area;
and the terminal equipment stores the identifier of the second area to the storage space.
Optionally, the obtaining module 802 is further configured to:
after the terminal device accesses a third area, if the terminal device judges that the preset corresponding relation does not include the identifier of the third area, the terminal device acquires the position of a base station corresponding to the third area;
and adding the identifier of the third area and the base station position corresponding to the third area to the preset corresponding relation.
Optionally, the apparatus further comprises: a processing module 803;
the processing module 803 is configured to execute a preset service according to the current location of the terminal device, where the preset service includes at least one of the following: information push, schedule reminding, weather service, travel duration estimation service and dynamic sharing service.
The apparatus provided in this embodiment may be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 9 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present application, and as shown in fig. 9, the present application further provides a terminal device 90, where the terminal device 90 includes a memory 901 and a processor 902, the memory stores a positioning program, and the positioning program, when executed by the processor, implements the steps of the positioning method in any of the embodiments.
Alternatively, the memory 902 may be separate or integrated with the processor 901.
When the memory 902 is separately provided, the terminal device further comprises a bus 903 for connecting said memory 902 and the processor 901.
The present application further provides a computer storage medium, in which a positioning program is stored, and the positioning program, when executed by a processor, implements the steps of the positioning method in any of the above embodiments.
In the embodiments of the terminal device and the computer storage medium provided in the present application, all technical features of the embodiments of the positioning method are included, and the expanding and explaining contents of the specification are basically the same as those of the embodiments of the method, and are not described herein again.
Embodiments of the present application also provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the method in the above various possible embodiments.
Embodiments of the present application further provide a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the method in the above various possible embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and further, where similarly-named elements, features, or elements in different embodiments of the disclosure may have the same meaning, or may have different meanings, that particular meaning should be determined by their interpretation in the embodiment or further by context with the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. The terms "or," "and/or," "including at least one of the following," and the like, as used herein, are to be construed as inclusive or mean any one or any combination. For example, "includes at least one of: A. b, C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C ", again for example," A, B or C "or" A, B and/or C "means" any of the following: a; b; c; a and B; a and C; b and C; a and B and C'. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or at least partially with respect to other steps or sub-steps of other steps.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that step numbers such as S201 and S202 are used herein for the purpose of more clearly and briefly describing the corresponding contents, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S202 first and then S201 in the specific implementation, but these should be within the scope of the present application.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A method of positioning, comprising:
determining the identifier of a first area where the terminal equipment is located currently;
and determining the current position of the terminal equipment according to the identifier of the first area and a preset corresponding relation, wherein the preset corresponding relation comprises at least one area identifier and the position corresponding to each area identifier.
2. The method of claim 1, wherein determining the current location of the terminal device according to the identifier of the first area and a preset corresponding relationship comprises:
acquiring the preset corresponding relation;
inquiring the position corresponding to the identifier of the first area in the preset corresponding relation;
and determining the position corresponding to the identifier of the first area as the current position of the terminal equipment.
3. The method of claim 1 or 2, wherein the network signal strength of the terminal device is less than or equal to a first threshold.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
acquiring the position of a base station corresponding to at least one second area, wherein the at least one second area is an area accessed by the terminal equipment within a preset time period;
and determining the preset corresponding relation according to the identifier of the at least one second area and the position of the base station corresponding to the at least one second area.
5. The method of claim 4, wherein obtaining the position of the base station corresponding to the at least one second area comprises:
acquiring an identifier of the at least one second area;
acquiring the position of a base station corresponding to the at least one second area according to the identifier of the at least one second area; acquiring the position of the base station corresponding to the at least one second area according to the identifier of the at least one second area, including:
sending an identification of the at least one second area to a server;
and receiving the position of the base station corresponding to the at least one second area sent by the server.
6. The method of claim 5, further comprising:
in the preset time period, after the terminal equipment accesses a second area, the terminal equipment acquires the identifier of the second area;
and the terminal equipment stores the identifier of the second area to a storage space.
7. The method according to claim 4 or 5, characterized in that the method further comprises:
after the terminal device accesses a third area, if the terminal device judges that the preset corresponding relation does not include the identifier of the third area, the terminal device acquires the position of a base station corresponding to the third area;
and adding the identifier of the third area and the base station position corresponding to the third area to the preset corresponding relation.
8. The method according to claim 1 or 2, characterized in that the method further comprises:
and executing preset service according to the current position of the terminal equipment.
9. A terminal device, characterized in that the terminal device comprises: memory, a processor, wherein the memory has stored thereon a positioning program which, when executed by the processor, implements the steps of the positioning method according to any one of claims 1 to 8.
10. A storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the positioning method according to any one of claims 1 to 8.
CN202011323417.3A 2020-11-23 2020-11-23 Positioning method, positioning device and storage medium Pending CN112464112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011323417.3A CN112464112A (en) 2020-11-23 2020-11-23 Positioning method, positioning device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011323417.3A CN112464112A (en) 2020-11-23 2020-11-23 Positioning method, positioning device and storage medium

Publications (1)

Publication Number Publication Date
CN112464112A true CN112464112A (en) 2021-03-09

Family

ID=74798539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011323417.3A Pending CN112464112A (en) 2020-11-23 2020-11-23 Positioning method, positioning device and storage medium

Country Status (1)

Country Link
CN (1) CN112464112A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114845248A (en) * 2022-03-17 2022-08-02 中国联合网络通信集团有限公司 User position acquisition method, front-end processor, equipment and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114845248A (en) * 2022-03-17 2022-08-02 中国联合网络通信集团有限公司 User position acquisition method, front-end processor, equipment and system

Similar Documents

Publication Publication Date Title
US9408176B2 (en) Location and state information providing/inquiring system using WLAN/WPAN communication, log information providing/inquiring system and method, service server and customer terminal, location and state providing/inquiring method
US8912954B2 (en) Method and system for a full GNSS capable multi-standard single chip
US8081107B2 (en) Method and system for a location-based broker service (LBS) client broker
US20190302220A1 (en) Method and apparatus for v2x assisted positioning determination using positioning reference signal signals
US20080227463A1 (en) Determining location information
CN102967869B (en) Method and device for determining position of mobile equipment
WO2020164549A1 (en) Method for determining tracking area, terminal apparatus, and core network apparatus
US20150050947A1 (en) Supporting location based operations
CN203615939U (en) Indoor map navigation system for smart phone
KR101246589B1 (en) Method And Apparatus Providing Customized Moving Path
CN102379115A (en) Method and apparatus for determining location information
US9020522B2 (en) Method and system for optimizing uploading of location data for location based services
US20100259444A1 (en) Method and system for dynamic wireless node capture for a lbs server, client, and reference database
US20100039323A1 (en) Method and system for global position reference map (gprm) for agps
CN102520428A (en) Method for realizing region warning at global position system (GPSOne) terminal and system thereof
KR20120005642A (en) Method and apparatus for providing position information by using error range
US9014727B2 (en) Method and system for updating obsolete records for reference positions in a reference position database
US8805401B2 (en) Method and system for intelligent switch between client based location and server based location for hybrid location client devices
CN112464112A (en) Positioning method, positioning device and storage medium
US20090005062A1 (en) Method and apparatus for selecting a real time location service provider
US8229461B1 (en) System and method for operating a location server
CN100512514C (en) Positioning method applied in multi carrier frequency system
US8280355B1 (en) Method and system to determine the velocity of a mobile communication device
US20210084577A1 (en) Communications devices, infrastructure equipment, location servers and methods
CN109429301B (en) Service search method, corresponding device and storage medium

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