Positioning determination method and apparatus

By comparing current and historical location information in a coarse location scenario, and determining that the terminal location has not changed, the historical location is used, which solves the problem of power consumption and poor user experience caused by frequent location, and achieves more efficient power utilization and improved user experience.

CN116113035BActive Publication Date: 2026-03-31SHANGHAI BILIBILI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-11
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Existing technologies suffer from power consumption and poor user experience due to frequent location acquisition, especially in scenarios where only coarse location accuracy is required.

Method used

Upon receiving a location determination command, if the location type is determined to be coarse, the system obtains current and historical reference location information, compares the changes in the terminal's location, and if there is no change, uses the historical location information as the current location to reduce the number of location attempts.

Benefits of technology

It effectively reduces the number of location calls, improves the device's battery life, and provides a better user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116113035B_ABST
    Figure CN116113035B_ABST
Patent Text Reader

Abstract

The application provides a positioning determination method and device, wherein the positioning determination method comprises the following steps: receiving a positioning determination instruction, and determining a positioning type according to the positioning determination instruction; if the positioning type is coarse positioning, acquiring current reference positioning information and historical reference positioning information of the terminal; determining terminal position change information according to the current reference positioning information and the historical reference positioning information; and if the terminal position change information is not changed, determining that historical positioning information corresponding to the historical reference positioning information is current positioning information. Whether the terminal position is changed compared with the last positioning is determined by the environment around the terminal, if the terminal position is not changed, the positioning information of the last positioning is used, the consumption of positioning demand is reduced through logical optimization, the number of times of acquiring positioning is greatly reduced, the endurance of the terminal is effectively improved, and a better use experience is provided for users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technology, and in particular to a location determination method. This application also relates to a location determination device, a computing device, and a computer-readable storage medium. Background Technology

[0002] With the development of smart devices, more and more application scenarios require devices to obtain geographical location to improve user experience or avoid risks, such as map navigation, information push, and information push. However, obtaining location is often a power-consuming operation. In some scenarios, only a rough location is needed, that is, the accuracy of location within tens of meters is sufficient. If location is frequently obtained in these scenarios, it will lead to greater power consumption and a poor user experience. Summary of the Invention

[0003] In view of this, embodiments of this application provide a location determination method. This application also relates to a location determination device, a computing device, and a computer-readable storage medium, to solve the problems of power consumption and poor user experience caused by frequent location acquisition in the prior art.

[0004] According to a first aspect of the embodiments of this application, a positioning determination method is provided, applied to a terminal, comprising:

[0005] Receive a location determination instruction and determine the location type based on the location determination instruction;

[0006] If the positioning type is coarse positioning, then the current reference positioning information and historical reference positioning information of the terminal are obtained;

[0007] The terminal location change information is determined based on the current reference positioning information and the historical reference positioning information;

[0008] If the terminal location change information is unchanged, then the historical location information corresponding to the historical reference location information is determined to be the current location information.

[0009] According to a second aspect of the embodiments of this application, a positioning determination method is provided, applied to a server, comprising:

[0010] Receive a location determination instruction, wherein the location determination instruction carries the current reference location information of the target terminal;

[0011] Based on the current reference positioning information, a query is performed in the historical reference positioning information database to obtain the target's historical reference positioning information;

[0012] Determine the target's historical positioning information corresponding to the target's historical reference positioning information;

[0013] The target's historical location information is sent to the target terminal as the current location information.

[0014] According to a third aspect of the embodiments of this application, a positioning determination device is provided, applied to a terminal, comprising:

[0015] The receiving module is configured to receive a location determination instruction and determine the location type based on the location determination instruction;

[0016] The acquisition module is configured to acquire the current reference positioning information and historical reference positioning information of the terminal if the positioning type is coarse positioning;

[0017] The determination module is configured to determine terminal location change information based on the current reference positioning information and the historical reference positioning information;

[0018] The positioning determination module is configured to determine the historical positioning information corresponding to the historical reference positioning information as the current positioning information if the terminal location change information is unchanged.

[0019] According to a fourth aspect of the embodiments of this application, a positioning determination device is provided, applied to a server, comprising:

[0020] The receiving module is configured to receive a positioning determination instruction, wherein the positioning determination instruction carries the current reference positioning information of the target terminal;

[0021] The acquisition module is configured to query the historical reference positioning information database based on the current reference positioning information to obtain the target's historical reference positioning information;

[0022] The determination module is configured to determine the target historical positioning information corresponding to the target historical reference positioning information;

[0023] The sending module is configured to send the target's historical location information as the current location information to the target terminal.

[0024] According to a fifth aspect of the present application, a computing device is provided, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor executes the computer instructions to implement the steps of the positioning determination method.

[0025] According to a sixth aspect of the embodiments of this application, a computer-readable storage medium is provided that stores computer instructions, which, when executed by a processor, implement the steps of the positioning determination method.

[0026] The positioning determination method provided in this application is applied to a terminal, including receiving a positioning determination instruction and determining the positioning type according to the positioning determination instruction; when the positioning type is coarse positioning, obtaining the current reference positioning information and historical reference positioning information of the terminal; determining the terminal location change information according to the current reference positioning information and the historical reference positioning information; and when the terminal location change information is unchanged, determining the historical positioning information corresponding to the historical reference positioning information as the current positioning information. One embodiment of the positioning determination method provided in this application realizes that when the positioning type is coarse positioning, it determines whether the terminal location has changed based on the current reference positioning information and historical reference positioning information. If the terminal location has not changed, the positioning information corresponding to the historical reference positioning information can be used as the positioning information for the current positioning. The surrounding environment of the terminal is used to determine whether the terminal location has changed compared to the previous positioning. If no change has occurred, the positioning information from the previous positioning is used. Through logical optimization, the consumption of positioning requirements is reduced, which can greatly reduce the number of positioning acquisitions, effectively improve the terminal's battery life, and provide users with a better user experience. Attached Figure Description

[0027] Figure 1 This is a flowchart of a positioning determination method provided in an embodiment of this application;

[0028] Figure 2 This is a flowchart illustrating a location determination method for a news application scenario on a mobile phone, provided by an embodiment of this application.

[0029] Figure 3 This is a schematic diagram of the structure of a positioning and determining device provided in an embodiment of this application;

[0030] Figure 4 This is a structural block diagram of a computing device provided in one embodiment of this application;

[0031] Figure 5 This is a flowchart of another positioning determination method provided in an embodiment of this application;

[0032] Figure 6 This is a schematic diagram of another positioning and determining device provided in an embodiment of this application. Detailed Implementation

[0033] Many specific details are set forth in the following description to provide a full understanding of this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this application; therefore, this application is not limited to the specific embodiments disclosed below.

[0034] The terminology used in one or more embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the scope of one or more embodiments of this application. The singular forms “a,” “the,” and “the” used in one or more embodiments of this application and in the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” used in one or more embodiments of this application refers to and includes any or all possible combinations of one or more associated listed items.

[0035] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this application, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."

[0036] This application provides a positioning determination method, and also relates to a positioning determination device, a computing device, and a computer-readable storage medium, which will be described in detail in the following embodiments.

[0037] Figure 1 A flowchart of a positioning determination method according to an embodiment of this application is shown. The method is applied to a terminal and specifically includes the following steps:

[0038] Step 102: Receive the location determination instruction and determine the location type according to the location determination instruction.

[0039] The term "terminal" specifically refers to a device that needs to obtain location information, such as a mobile phone, tablet computer, or smart wearable device. This application does not limit the specific form of the terminal.

[0040] A location determination command specifically refers to a command received by a terminal to determine its location. Typically, location determination commands are issued by applications running on the terminal, such as map software on a mobile phone, which issues location determination commands when querying navigation routes; or news and information software on a mobile phone, which obtains the terminal's location when pushing news, and so on.

[0041] The location type specifically refers to the type of location obtained by the location determination command. It is usually divided into precise location or coarse location. For example, when using map software for navigation, accurate location needs to be obtained, and the location type in this case is precise location. When using news and information software, only a rough location is needed, such as a certain area, to push news and information about that area. The location type in this case is coarse location. The accuracy range of coarse location is within tens of meters.

[0042] In practical applications, the location type is determined by the location determination command, which is issued by the application in the terminal. The location determination command includes the target application type and / or the service type of the target application.

[0043] The location type is determined according to the location determination instruction, including:

[0044] The location type is determined based on the target application type and / or the service type of the target application.

[0045] The target application type specifically refers to the type of application, such as news, service, or video. The target application service type specifically refers to the type of service the application provides, such as shopping, video, or news services. In practical applications, a location type mapping table can be pre-configured to determine which application types and service types require coarse location and which require precise location.

[0046] Specifically, the location determination command includes at least one of the target application type and the service type of the target application. Based on the target application type and / or the service type of the target application, the location type corresponding to the location determination command can be queried in the location type mapping table to determine whether the location type is precise or coarse.

[0047] In one specific embodiment provided in this application, a video app on a tablet computer is used as an example for explanation. If the video app needs to obtain location information, it sends a location determination command to the tablet computer. The location determination command includes the target application type as "video playback". According to the location type mapping table, the location type corresponding to the application type is determined to be coarse location.

[0048] In another specific embodiment provided in this application, a map APP on a mobile phone is used as an example for explanation. The map APP sends a location determination command to the mobile phone. The location determination command includes the service type "navigation" provided by the application. According to the location type mapping table, the location type corresponding to the service type is determined to be precise location.

[0049] Step 104: If the positioning type is coarse positioning, then obtain the current reference positioning information and historical reference positioning information of the terminal.

[0050] Specifically, current reference positioning information refers to the reference information acquired by the terminal at the current moment to determine whether the terminal's location has changed. Historical reference positioning information refers to the reference information saved by the terminal during each positioning process; preferably, it refers to the reference information saved by the terminal during the last positioning. In practical applications, historical reference positioning information can be stored locally on the terminal or on a server. When historical reference positioning information is stored locally on the terminal, it is usually local positioning; when it is stored on a server, big data positioning can be achieved.

[0051] The positioning method provided in this application is applicable to situations where the positioning type is coarse. For applications such as map applications that require precise positioning, the method provided in this application will not be used. However, for coarse positioning applications such as video websites and news websites, the positioning method provided in this application can effectively reduce the number of positioning attempts, reduce terminal power consumption, and improve the user experience.

[0052] Specifically, obtaining the current reference positioning information and historical reference positioning information of the terminal includes:

[0053] Obtain at least one current sub-reference positioning information of the terminal and at least one historical sub-reference positioning information corresponding to the at least one current sub-reference positioning information.

[0054] In practical applications, the current reference positioning information includes at least one current sub-reference positioning information, and the historical reference positioning information includes at least one historical sub-reference positioning information. The attributes of the current sub-reference positioning information and the historical sub-reference positioning information correspond one-to-one.

[0055] The process of obtaining at least one current sub-reference positioning information and at least one historical sub-reference positioning information corresponding to the at least one current sub-reference positioning information of the terminal includes:

[0056] Obtain at least one of the following: the terminal's current network connection information, current wireless list information, and current Bluetooth list information;

[0057] Obtain at least one of the following: historical network connection information corresponding to the current connection information, historical wireless list information corresponding to the current wireless list information, and historical Bluetooth list information corresponding to the current Bluetooth list information.

[0058] The current network connection information specifically refers to the information about the terminal connecting to the wireless AP (Wireless Access Point), including the AP's MAC address, AP name, IP address assigned to the terminal by the wireless AP, connection duration between the terminal and the wireless AP, etc.

[0059] The current wireless list information specifically refers to the list of wireless signals that the terminal can search for via wireless search, and the current Bluetooth list information specifically refers to the list of Bluetooth signals that the terminal can search for via Bluetooth.

[0060] In practical applications, the current sub-reference positioning information includes at least one of the following: current network connection information, current wireless list information, and current Bluetooth list information.

[0061] The historical sub-reference location information corresponding to the current sub-reference location information specifically refers to at least one of the following: historical network connection information, historical Wi-Fi list information, and historical Bluetooth list information. Furthermore, when the current sub-reference location information is the current network connection information, the corresponding historical sub-reference location information is the historical network connection information; when the current sub-reference location information is the current Wi-Fi list information, the corresponding historical sub-reference location information is the historical Wi-Fi list information; and when the current sub-reference location information is the current Bluetooth list information, the corresponding historical sub-reference location information is the historical Bluetooth list information.

[0062] Specifically, historical network connection information, historical wireless list information, and historical Bluetooth list information refer to the wireless access points (APs) the terminal connected to, the list of wireless signals found, and the list of Bluetooth signals acquired during the last location acquisition. The methods for obtaining historical network connection information, historical wireless list information, and historical Bluetooth list information are the same as those for obtaining current network connection information, current wireless list information, and current Bluetooth list information, and will not be repeated here. In the method provided in this application, the terminal is further determined to be in a known geographical location based on the current reference location information and historical reference location information.

[0063] In one specific embodiment provided in this application, a video APP on a tablet computer is used as an example for explanation. The current wireless AP information, current wireless list information, and current Bluetooth list information of the tablet computer are obtained, as well as the historical wireless AP information, historical wireless list information, and historical Bluetooth list information saved during the last location.

[0064] In another specific embodiment provided in this application, obtaining the historical reference positioning information of the terminal includes:

[0065] Obtain historical reference positioning information stored in the terminal; or

[0066] Retrieve historical reference location information stored on the server.

[0067] Specifically, historical location information can be stored locally on the current device, and can be retrieved directly from the device when needed. Alternatively, historical location information can be stored on a server. In practice, when a user logs into the application and obtains historical location information, they can upload it to the server. When the user logs in with the same account on another device, the historical location information can be retrieved from the server, achieving big data cloud storage location services and improving the user experience.

[0068] Step 106: Determine the terminal location change information based on the current reference positioning information and the historical reference positioning information.

[0069] After obtaining the current reference location information and the historical reference location information, the two are compared to determine whether the terminal has changed its location. In other words, the comparison between the two determines whether the terminal is in a known geographical location.

[0070] Specifically, the terminal location change information is determined based on the current reference positioning information and the historical reference positioning information, including S1062-S1068:

[0071] S1062. Determine the network connection information result based on the current network connection information and the historical network connection information.

[0072] Specifically, the results of different types of information are compared between the current time and historical time. For network connection information, the current reference positioning information and historical reference positioning information are compared to determine the network connection information result. Determining the network connection information result based on the current network connection information and the historical network connection information includes:

[0073] Calculate the network connection matching degree between the current network connection information and the historical network connection information;

[0074] If the network connection matching degree is greater than or equal to the first threshold, the network connection information result is determined to be unchanged;

[0075] If the network connection matching degree is less than the first threshold, the network connection information result is determined to be changed.

[0076] Network connection information includes the MAC address of the wireless AP, the AP name, the IP address assigned to the terminal by the wireless AP, the connection duration of the terminal to the wireless AP, etc. Among the above information, the MAC address of the wireless AP is usually unique, so the confidence level of this information is high. The AP name can be changed at will, so the confidence level of this information is low. The IP address of the terminal may be the same for each connection or it can be set to a static IP, so the confidence level of the IP address is moderate. The connection duration can be used to determine whether the terminal has disconnected from the wireless AP since the last location.

[0077] By comparing the above information at the current moment with historical moments, the network connection matching degree can be calculated. The network connection matching degree specifically refers to the matching degree between the current network connection information and the historical network connection information. If the network connection matching degree is greater than or equal to the first threshold, it means that the terminal is always near the wireless AP, and the network connection information result is that the terminal location has not changed. Otherwise, it is determined that the network connection result is that the terminal location has changed.

[0078] S1064. Determine the wireless list information result based on the current wireless list information and the historical wireless list information.

[0079] With the development of technology, portable wireless access points (APs) have been widely used. For example, if a user carries a portable wireless AP from home to the office, the network connection information will not change. However, relying solely on network connection information for judgment can be inaccurate. Therefore, wireless list information searched by the terminal is also used as an auxiliary factor. Specifically, the wireless list information result is determined based on the current wireless list information and the historical wireless list information, including:

[0080] Count the number of wireless networks with the same wireless name in the current wireless list information and the historical wireless list information;

[0081] If the number of wireless devices is greater than or equal to the second threshold, the wireless list information result is determined to be unchanged;

[0082] If the number of wireless devices is less than the second threshold, the result of the wireless device list information is determined to be changed.

[0083] After obtaining the current and historical wireless list information, the number of wireless signals with the same wireless name in both lists is counted. If the number of wireless signals is greater than or equal to a second threshold, the overlap between the current and historical wireless list information is considered high. In this case, logical judgment can be used to determine that the terminal's location has not changed. Otherwise, the wireless list information indicates that the terminal's location has changed.

[0084] S1066. Determine the Bluetooth list information result based on the current Bluetooth list information and the historical Bluetooth list information.

[0085] In addition to obtaining wireless list information, Bluetooth list information can also be obtained. The Bluetooth list information contains a list of Bluetooth devices that can connect to the terminal. Specifically, the Bluetooth list information result is determined based on the current Bluetooth list information and the historical Bluetooth list information, including:

[0086] Calculate the Bluetooth list matching degree between the current Bluetooth list information and the historical Bluetooth list information;

[0087] If the Bluetooth list matching degree is greater than or equal to the third threshold, the Bluetooth list information result is determined to be unchanged;

[0088] If the Bluetooth list matching degree is less than the third threshold, the Bluetooth list information result is determined to be changed.

[0089] Bluetooth lists typically include two types of Bluetooth devices: those that are not easily moved, such as Bluetooth-controlled smart lights, smart speakers, and smart TVs, and those that are easily moved, such as Bluetooth headsets and portable Bluetooth speakers. Devices that are not easily moved have a higher weight, while those that are easily moved have a lower weight. The matching degree between the names of Bluetooth devices in the current Bluetooth list and historical Bluetooth list information is calculated. If the matching degree is greater than a third threshold, the current Bluetooth list information and historical Bluetooth list information are considered to have a high degree of overlap. In this case, a logical judgment can be made to determine that the terminal's location has not changed. Otherwise, the Bluetooth list information result indicates that the terminal's location has changed.

[0090] S1068. Determine the terminal location change information based on at least one of the network connection information result, the wireless list information result, and the Bluetooth list information result.

[0091] After obtaining network connection information, wireless list information, and Bluetooth list information, the system determines whether the terminal location has changed based on at least one of these three results. Specifically, determining the terminal location change information based on at least one of the network connection information, wireless list information, and Bluetooth list information results includes:

[0092] If network connection information is obtained, the terminal location change information is determined based on the network connection information.

[0093] In the absence of network connection information, the terminal location change information is determined based on the wireless list information and / or the Bluetooth list information.

[0094] If the network connection information result is obtained, the terminal location change information is determined first based on the network connection information result. If the network connection information result indicates that the terminal location has changed, the terminal location change information is determined to be changed; if the network connection information result indicates that the terminal location has not changed, the terminal location change information is determined to be unchanged.

[0095] If no network connection information is obtained, meaning the device was not connected to a wireless access point in the historical location data, the terminal's location change information is determined using the wireless list information and / or Bluetooth list information. If the wireless list information and Bluetooth list information conflict, the terminal's location information is reacquired.

[0096] To further improve the accuracy of positioning, cross-validation can be performed based on the network connection information, wireless list information, and Bluetooth list information to verify whether the terminal location has changed. Specifically, the method also includes:

[0097] The network connection information result is compared with the wireless list information result and / or the Bluetooth list information result. If the result is inconsistent, the location information of the terminal is reacquired.

[0098] If, during cross-validation, the network connection information results are found to be inconsistent with the wireless list information results and / or Bluetooth list information results, in order to ensure the accuracy of the positioning, the terminal's positioning information is re-acquired, and the current network connection information, current wireless list information, current Bluetooth list information, and current positioning information are saved. This information is stored locally or on a server for use in the next rough positioning, where the terminal is judged based on the above information to determine whether it is in a known geographical location.

[0099] Optionally, the method further includes:

[0100] Based on the reacquired location information of the terminal, confidence scores are calculated for the network connection information, wireless list information, and / or Bluetooth list information to obtain network connection confidence scores, wireless list confidence scores, and / or Bluetooth list confidence scores.

[0101] Specifically, by assigning confidence scores to the network connection information, wireless list information, and Bluetooth list information based on the new location information, we can determine which information is closer to the new location information. For example, in practical applications, if the network connection information shows the location as address A, while the wireless list information and Bluetooth list information show the location as address B, a conflict arises. Therefore, the current location information is re-acquired. After confirming the current location as address A, the conclusion of the network connection information is more accurate than that of the wireless list information and Bluetooth list information. Thus, the network connection information can be given a higher score. For example, with a score of 100, the network connection information would receive a confidence score of 90; the wireless list information would receive a confidence score of 50; and the Bluetooth list information would receive a confidence score of 50.

[0102] The above is an illustrative explanation of the confidence scoring for network connection information results, wireless list information results, and / or Bluetooth list information results. The specific confidence scoring rules can be set according to the actual situation, and are not limited in this application. The actual application shall prevail.

[0103] Furthermore, the method also includes:

[0104] The network connection information result is re-detected with the wireless list information result and / or Bluetooth list information result. If the detection results are inconsistent, the terminal location change information is determined based on the network connection confidence score, wireless list confidence score and / or Bluetooth list confidence score.

[0105] In practical applications, after scoring the confidence levels of network connection information, wireless list information, and Bluetooth list information based on the reacquired location information, if the network connection information results are inconsistent with the wireless list information results and / or Bluetooth list information results again, it is not necessary to acquire location information again. The location information can be determined based on the information with the highest confidence score among the network connection confidence score, wireless list confidence score, and Bluetooth list confidence score.

[0106] Step 108: If the terminal location change information is unchanged, then determine the historical location information corresponding to the historical reference location information as the current location information.

[0107] After the above logical judgment, if it is determined that the terminal location change information has not changed, the historical location information corresponding to the historical reference location information can be used as the current location information for the current location acquisition command. Specifically, the historical location information stored locally on the terminal or on the server is first retrieved, and this information is used as the current location information.

[0108] In practical applications, to ensure the accuracy of logical judgment positioning, the time of historical reference positioning information relative to the current time must also be considered. Specifically, the method further includes:

[0109] Obtain the storage time information of the historical reference positioning information;

[0110] The credibility weight of historical location information is determined based on the storage time information;

[0111] If the terminal location change information remains unchanged and the credibility weight is greater than a preset weight threshold, the historical location information corresponding to the historical reference location information is determined as the current location information.

[0112] Generally, the longer the data is stored, the lower the reliability of historical location information. In addition, a preset time period can be specified. If the time interval between the current location and the previous location does not exceed the preset time period, the previous location information can be used. If it exceeds the fixed preset time period, relocation is required. The specific settings can be set according to the actual business needs, such as setting the number of times the location can be obtained through logical judgment within the preset period, or setting the preset time period.

[0113] After obtaining the storage time of the historical reference positioning information, the credibility weight of the historical positioning information can be determined based on the storage time information and the preset time rules. If the terminal location change information is unchanged and the credibility weight is greater than the preset weight threshold, the historical positioning information corresponding to the historical reference positioning information is determined to be the current positioning information.

[0114] In one embodiment provided in this application, it is set that N locations can be obtained within 5 minutes. After the first location is obtained, the N-1 locations within 5 minutes can all be located using the above-mentioned logic, and the location information of the first location is used as the current location information. If more than 5 minutes have passed, or the number of location acquisitions exceeds N-1, relocation is required.

[0115] In another embodiment provided in this application, the preset time threshold is determined according to business needs. Then, the location information needs to be reacquired every minute. If the location is acquired within 1 minute, the historical location information corresponding to the historical reference location information can be used as the current location information.

[0116] The positioning determination method provided in this application is applied to a terminal, including receiving a positioning determination instruction and determining the positioning type according to the positioning determination instruction; when the positioning type is coarse positioning, obtaining the current reference positioning information and historical reference positioning information of the terminal; determining the terminal location change information according to the current reference positioning information and the historical reference positioning information; and when the terminal location change information is unchanged, determining the historical positioning information corresponding to the historical reference positioning information as the current positioning information. One embodiment of the positioning determination method provided in this application realizes that when the positioning type is coarse positioning, it determines whether the terminal location has changed based on the current reference positioning information and historical reference positioning information. If the terminal location has not changed, the positioning information corresponding to the historical reference positioning information can be used as the positioning information for the current positioning. The surrounding environment of the terminal is used to determine whether the terminal location has changed compared to the previous positioning. If no change has occurred, the positioning information from the previous positioning is used. Through logical optimization, the consumption of positioning requirements is reduced, which can greatly reduce the number of positioning acquisitions, effectively improve the terminal's battery life, and provide users with a better user experience.

[0117] The following is in conjunction with the appendix Figure 2 Taking the location determination method provided in this application in the context of a news application on a mobile phone as an example, the location determination method will be further explained. Figure 2 The diagram illustrates a processing flowchart of a location determination method for a mobile phone news application scenario, according to an embodiment of this application, which specifically includes the following steps:

[0118] Step 202: Open the news application APP-T.

[0119] In one specific embodiment provided in this application, a user opens a news application APP-T on their mobile phone to view news information, and APP-T provides the user with local news.

[0120] Step 204: APP-T issues a location determination command, and the location type is determined to be coarse location based on the application type of APP-T.

[0121] In one specific embodiment provided in this application, APP-T sends a location determination command to the mobile phone, and the mobile phone determines the location type corresponding to the command as coarse location based on the application type of APP-T.

[0122] Step 206: Obtain the phone's current network connection information, current wireless list information, and current Bluetooth list information, and at the same time obtain the historical network connection information, historical wireless list information, and historical Bluetooth list information stored locally on the phone.

[0123] In one specific embodiment provided in this application, after determining that the positioning type is coarse positioning, the current wireless AP information, current wireless list information, and current Bluetooth list information of the mobile phone are obtained; at the same time, the historical wireless AP information, historical wireless list information, and historical Bluetooth list information saved during the last positioning are obtained.

[0124] Step 208: Based on the current network connection information and historical network connection information, determine that the network connection information result is unchanged.

[0125] In one specific embodiment provided in this application, if the MAC address of the current wireless AP information, the IP address assigned to the mobile phone by the wireless AP are the same as those of the historical wireless AP information, and the duration of the mobile phone's connection to the AP is also the same as the storage time information of the historical network connection information, then it can be determined that the network connection information result indicates that the terminal location has not changed.

[0126] Step 210: Determine that the wireless list information result is unchanged based on the current wireless list information and the historical wireless list information.

[0127] In a specific embodiment provided in this application, in order to further verify, the current wireless list information scanned by the mobile phone is obtained. By comparing the historical wireless list information, if the five wireless names in the current wireless list are the same as the wireless names in the historical wireless list information, it is determined that the wireless list information result indicates that the terminal location has not changed.

[0128] Step 212: Determine that the Bluetooth list information result is unchanged based on the current Bluetooth list information and the historical Bluetooth list information.

[0129] In one specific embodiment provided in this application, the current Bluetooth list information scanned by the mobile phone is obtained simultaneously. By comparing the historical Bluetooth list information, if the names of the three Bluetooth devices in the current Bluetooth list information are the same as the names of the Bluetooth devices in the historical Bluetooth list information, it is determined that the Bluetooth list information result indicates that the terminal location has not changed.

[0130] Step 214: Based on the network connection information, wireless list information, and Bluetooth list information, determine that the phone's location change information has not changed.

[0131] In a specific embodiment provided in this application, based on this, after cross-validation of the network connection information result, the wireless list information result, and the Bluetooth list information result, it is determined that the mobile phone location change information is that the mobile phone location has not changed.

[0132] Step 216: Obtain the historical location information W corresponding to the historical reference location information, and then determine the current location information of the mobile phone as W.

[0133] In one specific embodiment provided in this application, historical location information W corresponding to historical reference location information is obtained, and W is used as the current location information for the current mobile phone location. Location is obtained through logical positioning, reducing the number of location attempts.

[0134] The location determination method for news applications on mobile phones provided in this application embodiment determines network connection information based on current and historical network connection information, wireless list information based on current and historical wireless list information, and Bluetooth list information based on current and historical Bluetooth list information. This determines the phone's location change information. Through optimized logical judgment, it determines that the phone has not left the location of the last location, and uses the location information from the last location as the location information for the current location. This reduces the number of location attempts, saves phone power, avoids battery consumption, and improves the user experience.

[0135] Corresponding to the above method embodiments, this application also provides embodiments of positioning and determining devices. Figure 3 A schematic diagram of a positioning device according to an embodiment of this application is shown. Figure 3 As shown, the device includes:

[0136] The receiving module 302 is configured to receive a location determination instruction and determine the location type based on the location determination instruction;

[0137] The acquisition module 304 is configured to acquire the current reference positioning information and historical reference positioning information of the terminal when the positioning type is coarse positioning;

[0138] The determining module 306 is configured to determine terminal location change information based on the current reference positioning information and the historical reference positioning information;

[0139] The positioning determination module 308 is configured to determine the historical positioning information corresponding to the historical reference positioning information as the current positioning information when the terminal position change information remains unchanged.

[0140] Optionally, the acquisition module 304 is further configured to:

[0141] Obtain at least one of the following: the terminal's current network connection information, current wireless list information, and current Bluetooth list information;

[0142] Obtain the historical network connection information, historical wireless list information, and historical Bluetooth list information saved by the terminal during its last location.

[0143] Optionally, the determining module 306 is further configured to:

[0144] The network connection information result is determined based on the current network connection information and the historical network connection information;

[0145] The wireless list information result is determined based on the current wireless list information and the historical wireless list information;

[0146] The Bluetooth list information result is determined based on the current Bluetooth list information and the historical Bluetooth list information;

[0147] The terminal location change information is determined based on at least one of the network connection information result, the wireless list information result, and the Bluetooth list information result.

[0148] Optionally, the determining module 306 is further configured to:

[0149] Calculate the network connection matching degree between the current network connection information and the historical network connection information;

[0150] If the network connection matching degree is greater than or equal to the first threshold, the network connection information result is determined to be unchanged;

[0151] If the network connection matching degree is less than the first threshold, the network connection information result is determined to be changed.

[0152] Optionally, the determining module 306 is further configured to:

[0153] Count the number of wireless networks with the same wireless name in the current wireless list information and the historical wireless list information;

[0154] If the number of wireless devices is greater than or equal to the second threshold, the wireless list information result is determined to be unchanged;

[0155] If the number of wireless devices is less than the second threshold, the result of the wireless device list information is determined to be changed.

[0156] Optionally, the determining module 306 is further configured to:

[0157] Calculate the Bluetooth list matching degree between the current Bluetooth list information and the historical Bluetooth list information;

[0158] If the Bluetooth list matching degree is greater than or equal to the third threshold, the Bluetooth list information result is determined to be unchanged;

[0159] If the Bluetooth list matching degree is less than the third threshold, the Bluetooth list information result is determined to be changed.

[0160] Optionally, the determining module 306 is further configured to:

[0161] If network connection information is obtained, the terminal location change information is determined based on the network connection information.

[0162] In the absence of network connection information, the terminal location change information is determined based on the wireless list information and / or the Bluetooth list information.

[0163] Optionally, the device further includes a positioning module configured to reacquire the positioning information of the terminal if the network connection information result is inconsistent with the wireless list information result and / or the Bluetooth list information result.

[0164] Optionally, the location determination instruction includes the target application type and / or the service type of the target application;

[0165] The receiving module 302 is further configured to:

[0166] The location type is determined based on the target application type and / or the service type of the target application.

[0167] Optionally, the device further includes:

[0168] The time acquisition module is configured as follows:

[0169] Obtain the storage time information of the historical reference positioning information;

[0170] The credibility weight of historical location information is determined based on the storage time information.

[0171] Accordingly, the positioning determination module 308 is further configured as follows:

[0172] If the terminal location change information remains unchanged and the credibility weight is greater than a preset weight threshold, the historical location information corresponding to the historical reference location information is determined as the current location information.

[0173] The positioning determination method provided in this application is applied to a terminal, including receiving a positioning determination instruction and determining the positioning type according to the positioning determination instruction; when the positioning type is coarse positioning, obtaining the current reference positioning information and historical reference positioning information of the terminal; determining the terminal location change information according to the current reference positioning information and the historical reference positioning information; and when the terminal location change information is unchanged, determining the historical positioning information corresponding to the historical reference positioning information as the current positioning information. One embodiment of the positioning determination method provided in this application realizes that when the positioning type is coarse positioning, it determines whether the terminal location has changed based on the current reference positioning information and historical reference positioning information. If the terminal location has not changed, the positioning information corresponding to the historical reference positioning information can be used as the positioning information for the current positioning. The surrounding environment of the terminal is used to determine whether the terminal location has changed compared to the previous positioning. If no change has occurred, the positioning information from the previous positioning is used. Through logical optimization, the consumption of positioning requirements is reduced, which can greatly reduce the number of positioning acquisitions, effectively improve the terminal's battery life, and provide users with a better user experience.

[0174] The above is a schematic scheme of a positioning determination device according to this embodiment. It should be noted that the technical solution of this positioning determination device and the technical solution of the positioning determination method described above belong to the same concept. For details not described in detail in the technical solution of the positioning determination device, please refer to the description of the technical solution of the positioning determination method described above.

[0175] Figure 4 A structural block diagram of a computing device 400 according to an embodiment of this application is shown. The components of the computing device 400 include, but are not limited to, a memory 410 and a processor 420. The processor 420 is connected to the memory 410 via a bus 430, and a database 450 is used to store data.

[0176] The computing device 400 also includes an access device 440, which enables the computing device 400 to communicate via one or more networks 460. Examples of these networks include a Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the Internet. The access device 440 may include one or more of any type of wired or wireless network interface (e.g., a Network Interface Card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) interface, a Wi-MAX interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.

[0177] In one embodiment of this application, the aforementioned components of the computing device 400 and Figure 4 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 4 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this application. Those skilled in the art can add or replace other components as needed.

[0178] The computing device 400 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 400 can also be a mobile or stationary server.

[0179] When the processor 420 executes the computer instructions, it implements the steps of the positioning determination method applied to the terminal and the positioning determination method applied to the server described below.

[0180] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device belongs to the same concept as the positioning determination method applied to the terminal described above and the positioning determination method applied to the server described below. For details not described in detail in the technical solution of the computing device, please refer to the descriptions of the positioning determination method applied to the terminal described above and the positioning determination method applied to the server described below.

[0181] See Figure 5 , Figure 5 A flowchart of a positioning determination method provided in an embodiment of this application is shown. The method is applied to a server and includes steps 502 to 508.

[0182] Step 502: Receive a location determination instruction, wherein the location determination instruction carries the current reference location information of the target terminal.

[0183] Step 504: Query the historical reference positioning information database based on the current reference positioning information to obtain the target's historical reference positioning information.

[0184] Step 506: Determine the target historical positioning information corresponding to the target historical reference positioning information.

[0185] Step 508: Send the target's historical location information as the current location information to the target terminal.

[0186] The location determination method provided in this embodiment is applied to a server. The server receives a location determination command uploaded by a terminal and queries a historical reference location information database based on the current reference location information carried in the command to obtain the target historical reference location information. In this embodiment, the historical reference location information database stores historical reference location information uploaded by other terminals. For example, user A previously located at location 1 and uploaded the reference location information and location information for location 1 to the server, which stores them in the historical reference location information database. User B also previously located at location 1 and uploaded the reference location information and location information for location 1 to the server. When user C locates at location 1, it sends its current reference location information to the server. The server receives the current reference location information and compares it with the historical reference location information already stored in the database to obtain the target historical reference location information. The server then sends the target historical reference location information as the current location information to the target terminal. By referencing the historical reference location information of other users, this method can achieve big data-driven location services.

[0187] Corresponding to the above method embodiments, this application also provides embodiments of positioning and determining devices. Figure 6 A schematic diagram of a positioning device according to an embodiment of this application is shown. Figure 6 As shown, the device includes:

[0188] The receiving module 602 is configured to receive a positioning determination instruction, wherein the positioning determination instruction carries the current reference positioning information of the target terminal;

[0189] The acquisition module 604 is configured to query the historical reference positioning information database based on the current reference positioning information to obtain the target historical reference positioning information;

[0190] The determining module 606 is configured to determine the target historical positioning information corresponding to the target historical reference positioning information;

[0191] The sending module 608 is configured to send the target's historical location information as the current location information to the target terminal.

[0192] An embodiment of this application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the steps of the positioning determination method described above.

[0193] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the above-described positioning determination method belong to the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the above-described positioning determination method.

[0194] The foregoing has described specific embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0195] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium may be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media may not include electrical carrier signals and telecommunication signals.

[0196] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0197] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0198] The preferred embodiments disclosed above are merely illustrative of this application. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this application. These embodiments are selected and specifically described in this application to better explain the principles and practical applications of this application, thereby enabling those skilled in the art to better understand and utilize this application. This application is limited only by the claims and their full scope and equivalents.

Claims

1. A method of position determination, characterized by, Applied to a terminal, comprising: receiving a positioning determination instruction, and determining a positioning type according to the positioning determination instruction; if the positioning type is coarse positioning, obtaining current reference positioning information and historical reference positioning information of the terminal; wherein the current reference positioning information comprises at least one current sub-reference positioning information, the current sub-reference positioning information comprises at least one of current network connection information, current wireless list information, current Bluetooth list information, the historical reference positioning information comprises at least one historical sub-reference positioning information, and the attributes of the current sub-reference positioning information and the historical sub-reference positioning information correspond one by one; determining terminal position change information according to the current reference positioning information and the historical reference positioning information; if the terminal position change information is not changed, determining that the historical positioning information corresponding to the historical reference positioning information is current positioning information.

2. The position determination method of claim 1, wherein, determining terminal position change information according to the current reference positioning information and the historical reference positioning information, comprising: determining network connection information result according to current network connection information and historical network connection information; determining wireless list information result according to the current wireless list information and the historical wireless list information; or, determining Bluetooth list information result according to the current Bluetooth list information and the historical Bluetooth list information; determining terminal position change information according to at least one of the network connection information result, the wireless list information result and the Bluetooth list information result.

3. The position determination method of claim 2, wherein, determining network connection information result according to the current network connection information and the historical network connection information, comprising: calculating network connection matching degree of the current network connection information and the historical network connection information; if the network connection matching degree is greater than or equal to a first threshold value, determining that the network connection information result is not changed; if the network connection matching degree is less than the first threshold value, determining that the network connection information result is changed.

4. The position determination method of claim 2, wherein, determining wireless list information result according to the current wireless list information and the historical wireless list information, comprising: counting the number of wireless with the same wireless name in the current wireless list information and the historical wireless list information; if the number of wireless is greater than or equal to a second threshold value, determining that the wireless list information result is not changed; if the number of wireless is less than the second threshold value, determining that the wireless list information result is changed.

5. The position determination method of claim 2, wherein, determining Bluetooth list information result according to the current Bluetooth list information and the historical Bluetooth list information, comprising: calculating Bluetooth list matching degree of the current Bluetooth list information and the historical Bluetooth list information; if the Bluetooth list matching degree is greater than or equal to a third threshold value, determining that the Bluetooth list information result is not changed; if the Bluetooth list matching degree is less than the third threshold value, determining that the Bluetooth list information result is changed.

6. The position determination method of claim 2, wherein, determining terminal position change information according to at least one of the network connection information result, the wireless list information result and the Bluetooth list information result, comprising: if the network connection information result is obtained, determining terminal position change information according to the network connection information result; If the network connection information result is not acquired, terminal position change information is determined according to the wireless list information result and / or the Bluetooth list information result.

7. The position determination method of claim 2, wherein, The method further comprises: If the network connection information result is acquired and the wireless list information result and / or the Bluetooth list information result is acquired, the network connection information result, the wireless list information result and / or the Bluetooth list information result are detected, and if the detection result is inconsistent, the positioning information of the terminal is re-acquired.

8. The position determination method of claim 7, wherein, The method further comprises: The positioning information of the terminal re-acquired is subjected to confidence score according to the network connection information result, the wireless list information result and / or the Bluetooth list information result, to obtain network connection confidence score, wireless list confidence score and / or Bluetooth list confidence score.

9. The position determination method of claim 8, wherein, The method further comprises: The network connection information result, the wireless list information result and / or the Bluetooth list information result are detected again, and if the detection result is inconsistent, terminal position change information is determined according to the network connection confidence score, the wireless list confidence score and / or the Bluetooth list confidence score.

10. The position determination method of any one of claims 1-9, wherein, The positioning determination instruction comprises a target application program type and / or a service type of a target application program; The positioning type is determined according to the positioning determination instruction, comprising: The positioning type is determined according to the target application program type and / or the service type of the target application program.

11. The position determination method of any one of claims 1-9, wherein, The method further comprises: The storage time information of the historical reference positioning information is acquired; The credibility weight of the historical positioning information is determined according to the storage time information; If the terminal position change information is not changed and the credibility weight is greater than a preset weight threshold, the historical positioning information corresponding to the historical reference positioning information is determined as the current positioning information.

12. The position determination method of any one of claims 1-9, wherein, The historical reference positioning information of the terminal is acquired, comprising: The historical reference positioning information stored in the terminal is acquired; or The historical reference positioning information stored in a server is acquired.

13. A method of position determination, characterized by Applied to a server, comprising: A positioning determination instruction is received, wherein the positioning determination instruction carries current reference positioning information of a target terminal; wherein the current reference positioning information comprises at least one current sub-reference positioning information, and the current sub-reference positioning information comprises at least one of current network connection information, current wireless list information and current Bluetooth list information; the positioning type corresponding to the positioning determination instruction is a coarse positioning determined by a target terminal according to an application program type; The current reference positioning information is queried in a historical reference positioning information library to obtain target historical reference positioning information, and the historical reference positioning information library stores reference positioning information and positioning information of other terminals in historical positioning; Target historical positioning information corresponding to the target historical reference positioning information is determined; The target historical positioning information is sent to the target terminal as current positioning information.

14. A position determining apparatus characterized by comprising: Applied to a terminal, comprising: A receiving module is configured to receive a positioning determination instruction and determine a positioning type according to the positioning determination instruction; The acquisition module is configured to acquire current reference positioning information and historical reference positioning information of the terminal if the positioning type is coarse positioning; wherein the current reference positioning information comprises at least one current sub-reference positioning information, the current sub-reference positioning information comprises at least one of current network connection information, current wireless list information and current Bluetooth list information, and the historical reference positioning information comprises at least one historical sub-reference positioning information, the current sub-reference positioning information and the historical sub-reference positioning information correspond to each other in attribute; The determination module is configured to determine terminal position change information according to the current reference positioning information and the historical reference positioning information; The positioning determination module is configured to determine that historical positioning information corresponding to the historical reference positioning information is current positioning information if the terminal position change information is unchanged.

15. A position determination device, characterized by The application is applied to a server, comprising: The receiving module is configured to receive a positioning determination instruction, wherein the positioning determination instruction carries current reference positioning information of a target terminal; wherein the current reference positioning information comprises at least one current sub-reference positioning information, the current sub-reference positioning information comprises at least one of current network connection information, current wireless list information and current Bluetooth list information; and the positioning type corresponding to the positioning determination instruction is coarse positioning determined by the target terminal according to an application program type; The acquisition module is configured to query a historical reference positioning information database according to the current reference positioning information to obtain target historical reference positioning information, and the historical reference positioning information database stores reference positioning information and positioning information of other terminals in historical positioning; The determination module is configured to determine target historical positioning information corresponding to the target historical reference positioning information; The sending module is configured to send the target historical positioning information as current positioning information to the target terminal.

16. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein, The processor executes the computer instructions to realize the steps of the method in any one of claims 1-13.

17. A computer-readable storage medium storing computer instructions, wherein, The computer instructions are executed by the processor to realize the steps of the method in any one of claims 1-13.

18. A computer program product storing computer instructions, characterized in that, The computer instructions are executed by the processor to realize the steps of the method in any one of claims 1-13.

Citation Information

Patent Citations

  • Positioning method, positioning device and positioning terminal

    CN106304325A

  • Location information processing method and server

    CN107809444A

  • Intelligent positioning method and device, server and computer readable storage medium

    CN108064019A