Positioning method, device, electronic device and computer storage medium
By comparing the WiFi signal of the user terminal with the signals in the history record, and directly using the local historical positioning results for positioning, the problem of slow positioning speed in traditional technology is solved, and the positioning speed and user experience are improved.
Patent Information
- Application Number
- CN202411027451.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2044-07-30
AI Technical Summary
The positioning speed of traditional LBS-like apps is slow, resulting in a longer loading time for service data and reducing user experience.
By determining whether the WiFi signal currently connected to the user terminal is consistent with the WiFi signal in the history record, we can directly obtain historical positioning results from the locally stored history record, avoid satellite positioning and network positioning, improve positioning speed, and use the service based on historical positioning results. Get service information to update the user interface.
It significantly improves positioning speed, reduces location-based service information loading time, improves user experience, and ensures positioning accuracy and real-time.
Smart Images

Figure CN118555652B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of positioning technology, and in particular to a positioning method, device, electronic equipment and computer storage medium. Background Art
[0002] LBS (Location Based Services) apps (Applications) refer to applications whose core functions rely on the user's geographic location information. These applications provide users with location-related services by integrating maps, positioning technologies, and other location-aware functions. A food delivery app is a typical LBS app. When a user uses a food delivery app to order food, the food delivery app uses various types of positioning technologies to obtain their location, and based on their location, loads service data such as shops and delivery addresses around the user, thereby providing food delivery services to the user.
[0003] At present, LBS apps usually use traditional positioning technologies such as satellite positioning and network positioning to locate the mobile devices used by users to obtain the user's geographic location. The positioning speed is limited by factors such as information scanning speed, network transmission and server processing speed, satellite search and data calculation speed, resulting in a slow positioning speed, which in turn delays the service data loading time and reduces the user experience. Summary of the invention
[0004] The embodiments of the present application provide a positioning method, device, electronic device and computer storage medium, which solve the problem of slow positioning speed in traditional technologies and effectively improve the positioning speed. The above technical solutions are as follows:
[0005] In a first aspect, an embodiment of the present application provides a positioning method, including:
[0006] Determine whether a WiFi signal currently connected to the user terminal is consistent with any WiFi signal of a historical connection in multiple historical records of the user terminal;
[0007] When the currently connected WiFi signal is consistent with any WiFi signal that was historically connected, obtain the historical positioning result stored in association with any WiFi signal that was historically connected;
[0008] Sending a first data loading request carrying the historical positioning result to the server, so that the server obtains first service information based on the historical positioning result based on the first data loading request;
[0009] Receiving first service information sent by the server;
[0010] A presentation interface of the user terminal is displayed based on the first service information.
[0011] In a possible implementation, after obtaining the historical positioning result stored in association with any WiFi signal of the historical connection, the method further includes:
[0012] Obtaining device positioning results of the user terminal;
[0013] When the error value between the device positioning result and the historical positioning result is greater than the preset error value, sending a second data loading request carrying the device positioning result to the server, so that the server obtains second service information based on the device positioning result based on the second data loading request;
[0014] Receiving second service information sent by the server;
[0015] After displaying the display interface of the user terminal based on the first service information, the method further includes:
[0016] The display interface of the user terminal is updated based on the second service information.
[0017] In a possible implementation, each of the multiple historical records is used to represent the association between the WiFi signal of the historical connection of the user terminal and the historical positioning result of the user terminal;
[0018] The method also includes:
[0019] When the error value between the device positioning result and the historical positioning result is greater than the preset error value, the historical positioning result corresponding to any historically connected WiFi signal is updated as the device positioning result.
[0020] In a possible implementation, after determining whether a WiFi signal currently connected to the user terminal is consistent with any WiFi signal of a historical connection in a plurality of historical records of the user terminal, the method further includes:
[0021] When the currently connected WiFi signal is inconsistent with any of the historically connected WiFi signals, obtain the device positioning result of the user terminal;
[0022] Generate a history record for representing the correlation between the currently connected WiFi signal and the device positioning result.
[0023] In a possible implementation, when the currently connected WiFi signal is inconsistent with any of the historically connected WiFi signals, after obtaining the device positioning result of the user terminal, the method further includes:
[0024] Sending a second data loading request carrying the device positioning result to the server, so that the server obtains second service information based on the device positioning result based on the second data loading request;
[0025] Receiving second service information sent by the server;
[0026] A presentation interface of the user terminal is displayed based on the second service information.
[0027] In a possible implementation, each of the multiple historical records includes a basic service set identifier of a WiFi signal to which the user terminal was historically connected;
[0028] Determining whether a WiFi signal currently connected to the user terminal is consistent with any WiFi signal of a historical connection in multiple historical records of the user terminal includes:
[0029] It is determined whether the basic service set identifier of the currently connected WiFi signal is consistent with the basic service set identifier of the WiFi signal historically connected by the user terminal in each historical record.
[0030] In a possible implementation, the first service information or the second service information includes one or more of current location information, surrounding store information, and delivery range information.
[0031] In a second aspect, an embodiment of the present application provides a positioning device, including:
[0032] A determination module, used to determine whether a WiFi signal currently connected by the user terminal is consistent with any WiFi signal of a historical connection in a plurality of historical records of the user terminal;
[0033] An acquisition module, used for acquiring a historical positioning result stored in association with any historically connected WiFi signal when the currently connected WiFi signal is consistent with any historically connected WiFi signal;
[0034] A sending module, used for sending a first data loading request carrying the historical positioning result to the server, so that the server obtains first service information based on the historical positioning result based on the first data loading request;
[0035] A receiving module, used for receiving first service information sent by the server;
[0036] The display module is used to display a display interface of the user terminal based on the first service information.
[0037] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps provided in the first aspect of the embodiment of the present application.
[0038] In a fourth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps provided in the first aspect of the embodiment of the present application.
[0039] The above positioning method, device, electronic device and computer storage medium determine whether the WiFi signal currently connected to the user terminal is consistent with any one of the WiFi signals historically connected in the multiple historical records of the user terminal; when the WiFi signal currently connected is consistent with any one of the WiFi signals historically connected, obtain the historical positioning result associated with any one of the WiFi signals historically connected; send a first data loading request carrying the historical positioning result to the server, so that the server obtains the first service information based on the historical positioning result based on the first data loading request; receive the first service information sent by the server; and display the display interface of the user terminal based on the first service information. The entire positioning process, by comparing the WiFi signal currently connected to the user terminal with the WiFi signals in the multiple historical records, when the WiFi signal currently connected is consistent with any one of the WiFi signals historically connected in the multiple historical records, directly obtain the historical positioning result associated with the WiFi signal historically connected from the historical records stored locally in the user terminal, without obtaining the positioning result through time-consuming methods such as satellite positioning and network positioning, thereby avoiding complex positioning processing procedures and improving positioning speed. Furthermore, the first service information is obtained from the server according to the historical positioning result, and the first service information is displayed on the display interface of the user terminal, thereby reducing the loading time of the location-based service information and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 A schematic diagram of an application scenario of a positioning method provided by an exemplary embodiment of the present application;
[0042] Figure 2 A schematic diagram of an application environment of a positioning method provided by an exemplary embodiment of the present application;
[0043] Figure 3 A flowchart of a positioning method provided by an exemplary embodiment of the present application;
[0044] Figure 4A flowchart of another positioning method provided by an exemplary embodiment of the present application;
[0045] Figure 5 A schematic structural diagram of a positioning device provided by an exemplary embodiment of the present application;
[0046] Figure 6 A schematic structural diagram of an electronic device provided as an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0048] In the description of the present application, it should be understood that the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0049] First, an application scenario applicable to the embodiment of the present application is introduced: Assuming that a user has authorized a food delivery app to obtain his / her geographic location information, when the user opens the food delivery app on his / her mobile phone, the food delivery app obtains the user's current geographic location information through the system positioning service built into the mobile phone operating system (such as Android or iOS) or the third-party positioning service integrated in the food delivery app, and based on the obtained geographic location information, sends a data loading request to the server to obtain service information related to the geographic location information, thereby refreshing the app data according to the obtained service information. Please refer to Figure 1 After receiving the service information sent by the server, the food delivery APP updates the display content in the recommendation page 10 based on the service information. For example, the user's current geographical location 11 is displayed in the upper right corner of the recommendation page 10 so that the user can choose a suitable delivery address; at the same time, multiple store recommendation cards 12 are loaded based on the user's location to display the name, rating, delivery distance, delivery time, discount and other information of the recommended store to the user.
[0050] The positioning method provided in the embodiment of the present application can be applied to Figure 2In the application environment shown. Among them, the client 20 communicates with the server 21 through the network. The data storage system can store data that the service client 21 needs to process, such as POI (Point of Interest) data, user's historical delivery address data, store data, etc. The data storage system can be integrated on the server 21, or it can be placed on the cloud or other network servers. The client 20 first determines whether the WiFi signal currently connected to the user terminal is consistent with any of the WiFi signals historically connected in the multiple historical records of the user terminal. When the WiFi signal currently connected is consistent with any of the WiFi signals historically connected, the client 20 obtains the historical positioning result associated with any of the WiFi signals historically connected, and then sends a first data loading request carrying the historical positioning result to the server 21, so that the server 21 obtains the first service information based on the historical positioning result based on the first data loading request, and finally receives the first service information sent by the server, and displays the display interface of the user terminal based on the first service information. Among them, the client 20 can be, but is not limited to, various LBS APPs, such as shopping APPs such as takeaway APPs, social APPs such as chat APPs, travel APPs such as navigation APPs, weather forecast APPs, etc. The user terminal may be, but is not limited to, a mobile phone, a tablet computer, a personal computer, a laptop computer, an IoT device, and a portable wearable device. The IoT device may be a smart speaker, a smart TV, a smart air conditioner, a smart car device, etc., and the portable wearable device may be a smart watch, a smart bracelet, a head-mounted device, etc. The server 21 may be implemented by an independent server or a server cluster consisting of multiple servers.
[0051] In one embodiment, Figure 3 As shown, a positioning method is provided, which is applied to Figure 2 The client 20 in the example is used as an example to illustrate, including the following steps:
[0052] S301: Determine whether a WiFi signal currently connected to the user terminal is consistent with any WiFi signal historically connected in multiple historical records of the user terminal.
[0053] Understandably, WiFi signal propagation is often affected by factors such as transmission power, receiver sensitivity, obstacles (such as walls, furniture), and electromagnetic interference. Therefore, WiFi signals tend to attenuate within a certain distance range, and their effective distance is relatively short (usually between tens to hundreds of meters). In addition, since the location of most WiFi access points (such as home routers, wireless hotspots in commercial places, etc.) is usually not frequently changed once installed, the location of the WiFi signal source is relatively fixed.
[0054] Optionally, based on the characteristics of the short range of WiFi signal and the relatively fixed location of WiFi signal source, when the user terminal accesses a WiFi signal that has been connected to in the past, it is considered that the current location of the user terminal is consistent with the location when the WiFi was accessed in the past. Therefore, when the user opens the client 20 (such as a food delivery APP) on the user terminal (such as a mobile phone), the client 20 first calls the system's WiFi management API (Application Programming Interface) or a third-party network analysis tool to obtain the identification information of the WiFi signal currently connected to the user terminal. Then, the identification information of the WiFi signal currently connected to the user terminal is compared with the identification information of the WiFi signal historically connected in multiple historical records of the user terminal to determine whether the WiFi signal currently connected to the user terminal is any of its historically connected WiFi signals.
[0055] It is worth noting that multiple historical records of the user terminal are locally stored in the offline database or cache file of the user terminal, and the client 20 does not need to obtain them from the server through the communication network, thereby speeding up the data access speed during the signal comparison and judgment process.
[0056] S302: When the currently connected WiFi signal is consistent with any one of the historically connected WiFi signals, obtain a historical positioning result stored in association with any one of the historically connected WiFi signals.
[0057] The historical positioning results may include, but are not limited to, historical positioning longitude and latitude, historical positioning address (such as historical positioning area, historical positioning floor, etc.), historical altitude, etc.
[0058] Optionally, each historical record of the user terminal includes a historically connected WiFi signal and a historical positioning longitude and latitude stored in association with the historically connected WiFi signal, and each historical record is used to characterize the historical geographical location of the user terminal when it accesses a historically connected WiFi signal. If the identification information of the WiFi signal currently connected to the user terminal is the same as the identification information of any one of the multiple historical records of the user terminal, the WiFi signal currently connected to the user terminal is considered to be consistent with any one of the historically connected WiFi signals. At this time, the client 20 directly obtains the historical positioning longitude and latitude stored in association with any one of the above historically connected WiFi signals from the historical records stored locally on the user terminal to achieve the purpose of rapid positioning.
[0059] S303: Send a first data loading request carrying the historical positioning result to the server, so that the server obtains first service information based on the historical positioning result based on the first data loading request.
[0060] Exemplarily, if the currently connected WiFi signal is consistent with any of the historically connected WiFi signals, the client 20 sends a first data loading request carrying the historical positioning result to the server in the form of a data packet. It is worth noting that the first data loading request is not limited to carrying the historical positioning result, but may also carry user identification information, current moment identification information, etc. Among them, the historical positioning result may be, but not limited to, the historical positioning latitude and longitude, etc., the user identification information may be, but not limited to, the user ID, etc., and the current moment identification information may be, but not limited to, the current timestamp, etc.
[0061] Optionally, after receiving the first data loading request sent by the client 20, the server responds to the first data loading request sent by the client 20, parses the content in the data packet, and obtains the historical positioning longitude and latitude, user ID, and current timestamp carried in the first data loading request. Then, the server performs association analysis, queries the database, calls the map API, and other processing based on the historical positioning results to provide location-based services to the user. Finally, the server packages the first service information into a data packet in JSON format or other data formats, and sends it to the client 20 through the network interface.
[0062] S304: Receive first service information sent by the server.
[0063] Optionally, the client 20 receives a data packet sent by the server and parses it.
[0064] S305: Displaying a presentation interface of the user terminal based on the first service information.
[0065] Optionally, after receiving the first service information sent by the server, the client 20 renders the display interface of the user terminal, and displays the first service information obtained based on the historical positioning result on the display interface of the user terminal according to a predetermined style and layout. For example, the user's current geographical location, multiple store recommendation cards, etc. are displayed in the display interface. Figure 1 shown.
[0066] The above positioning method compares the WiFi signal currently connected to the user terminal with the WiFi signals in its multiple historical records. When the WiFi signal currently connected is consistent with any WiFi signal of the historical connection in the multiple historical records, the historical positioning result associated with the WiFi signal of the historical connection is directly obtained from the historical records stored locally in the user terminal, without the need to obtain the positioning result through time-consuming methods such as satellite positioning and network positioning, thereby avoiding complex positioning processing procedures and improving positioning speed. Furthermore, the first service information is obtained from the server according to the historical positioning result, and the first service information is displayed on the display interface of the user terminal, thereby reducing the loading time of location-based service information and improving the user experience.
[0067] In one embodiment, Figure 4 As shown, another positioning method is provided. This embodiment applies this method to Figure 2 The client 20 in the example is used as an example. The method comprises the following steps:
[0068] S401: Determine whether the WiFi signal currently connected to the user terminal is consistent with any WiFi signal historically connected in multiple historical records of the user terminal. If so, execute S402; if not, execute S411.
[0069] Optionally, based on the characteristics of the short range of WiFi signals and the relatively fixed location of WiFi signal sources, when a user terminal accesses a WiFi signal that has been connected to in the past, it is considered that the current location of the user terminal is consistent with the location when the WiFi was accessed in the past. Therefore, when the client 20 starts positioning, the client 20 first calls the system's WiFi management API or a third-party network analysis tool to obtain the identification information of the WiFi signal that the user terminal is currently connected to, and compares the identification information of the WiFi signal that the user terminal is currently connected to with the identification information of the WiFi signals that have been historically connected in multiple historical records stored locally by the user terminal, so as to determine whether the WiFi signal that the user terminal is currently connected to is consistent with any of the WiFi signals that have been historically connected in the multiple historical records of the user terminal.
[0070] Further, if the WiFi signal currently connected to the user terminal is consistent with any one of the WiFi signals historically connected in the multiple historical records of the user terminal, it is considered that the current location of the user terminal is consistent with the location when the WiFi was historically accessed, and S402 is executed at this time to preliminarily determine the current location of the user terminal directly based on the historical positioning results stored in association with the historically connected WiFi signal. If the WiFi signal currently connected to the user terminal is inconsistent with any one of the WiFi signals historically connected in the multiple historical records of the user terminal, S411 needs to be executed to determine the current location of the user terminal based on the current device positioning longitude and latitude of the user terminal.
[0071] In one embodiment, each of the multiple historical records includes a basic service set identifier of a WiFi signal historically connected to the user terminal; determining whether a WiFi signal currently connected to the user terminal is consistent with any one of the multiple historical records of the user terminal includes: determining whether a basic service set identifier of the currently connected WiFi signal is consistent with a basic service set identifier of a WiFi signal historically connected to the user terminal in each historical record.
[0072] Among them, the Basic Service Set Identifier (BSSID) of the WiFi signal is a 48-bit binary number, which is used to uniquely identify a wireless access point (Access Point, AP).
[0073] Understandably, in order to provide a seamless roaming experience, in some large enterprises or public places, multiple APs are deployed to share the same Service Set Identifier (SSID). Therefore, the SSID alone cannot uniquely determine which AP the WiFi signal accessed by the user terminal belongs to. Only by comparing the BSSIDs of the two WiFi signals can we determine whether the two WiFi signals are the same WiFi signal under the same AP.
[0074] In this embodiment, by comparing the BSSID of the WiFi signal, it is determined whether the WiFi signal currently connected to the user terminal is consistent with the WiFi signals historically connected in multiple historical records stored locally by the user terminal, ensuring that the WiFi signal currently connected to the user terminal will not be misjudged or missed as the WiFi signal historically connected to the user terminal, while improving the positioning speed and effectively ensuring the accuracy of positioning.
[0075] S402: Obtain a historical positioning result stored in association with any historically connected WiFi signal.
[0076] Optionally, when the WiFi signal currently connected to the user terminal is consistent with any WiFi signal historically connected to the user terminal, the client 20 directly obtains the historical positioning result stored in association with the WiFi signal historically connected from the historical records stored locally in the user terminal.
[0077] For details, please refer to S302, which will not be described in detail here.
[0078] S403: Send a first data loading request carrying the historical positioning result to the server, so that the server obtains first service information based on the historical positioning result based on the first data loading request.
[0079] Optionally, the first data loading request may carry, but is not limited to, historical positioning results, user identification information, current moment identification information, etc. The historical positioning results may be, but are not limited to, historical positioning longitude and latitude, historical positioning area code, historical positioning floor identification, historical positioning altitude, etc., the user identification information may be, but is not limited to, user ID, etc., and the current moment identification information may be, but is not limited to, current timestamp, etc.
[0080] For details, please refer to S303, which will not be described in detail here.
[0081] S404: Receive first service information sent by the server, and display a presentation interface of the user terminal based on the first service information.
[0082] Optionally, the client 20 receives the data packet sent by the server, parses it, and renders the display interface of the user terminal, and displays the first service information obtained based on the historical positioning result on the display interface of the user terminal in a predetermined style and layout.
[0083] In one embodiment, the first service information includes one or more of current location information, surrounding store information, and delivery range information. Updating the display interface of the user terminal based on the first service information includes: updating the display interface of the user terminal based on the current location information and / or surrounding store information and / or delivery range information.
[0084] Optionally, the current location information includes, but is not limited to, the reference point of the current location of the user terminal on the map, and the POI name (such as office building name, community name), POI coordinates (such as longitude and latitude coordinates) corresponding to the current location of the user terminal. The surrounding store information may be, but is not limited to, the name, evaluation, business hours, etc. of the service points such as stores and restaurants around the user terminal. The delivery range information includes, but is not limited to, the distance from the current location of the user terminal to the surrounding stores, the time from the current location to the surrounding stores, whether the current location meets the delivery conditions of the surrounding stores, etc.
[0085] For example, see Figure 1 After receiving the first service information sent by the server, the food delivery APP updates the user's current geographical location 11 displayed in the upper right corner of the recommendation page 10 based on the first service information, so that the user can confirm and select a suitable delivery address based on the current location information (such as the name of the office building). At the same time, the food delivery APP also loads multiple store recommendation cards 12 in the recommendation page 10 to show the user the names, reviews, distances from the current location to the surrounding stores, and the time from the current location to the surrounding stores.
[0086] In this embodiment, the display interface of the user terminal is updated based on the service information such as the current location information and / or the surrounding store information and / or the delivery range information, so that the map, navigation and other functions in the display interface are more accurate, the recommended stores are more precise and reasonable, and the delivery data is more accurate and effective, thereby improving the user experience.
[0087] S405: Obtain the device positioning result of the user terminal.
[0088] The device positioning result includes but is not limited to the device positioning longitude and latitude, the device positioning address (such as the device positioning area, the device positioning floor, etc.), the device altitude, etc. The above-mentioned device positioning longitude and latitude can be obtained by, but is not limited to, the system positioning service (such as satellite positioning, network positioning, etc.) built into the user terminal and / or the third-party positioning service integrated on the client 20.
[0089] Optionally, the client 20 obtains the device positioning longitude and latitude of the user terminal through the system positioning service built into the user terminal. Specifically, in outdoor scenarios, satellite positioning is performed by receiving GPS satellite signals or Beidou satellite signals to obtain the device positioning longitude and latitude; in indoor scenarios, wireless network signals (such as WiFi signals, base station signals, Bluetooth signals, etc.) are scanned, and the scanning results are uploaded to the server for network positioning to obtain the device positioning longitude and latitude.
[0090] It is worth noting that this embodiment only describes a preferred implementation of the present application. The method by which the client 20 obtains the device positioning longitude and latitude through the system positioning service built into the user terminal is not limited to selecting satellite positioning or network positioning according to different scenarios. The positioning results obtained by satellite positioning and the positioning results obtained by network positioning can also be combined through a fusion algorithm to obtain the device positioning longitude and latitude of the user terminal. The specific method by which the client 20 obtains the device positioning longitude and latitude through the system positioning service built into the user terminal is not limited in the present embodiment.
[0091] S406: Determine whether the error value between the device positioning result and the historical positioning result is greater than a preset error value. If yes, execute S407; if no, end.
[0092] The error value may be, but is not limited to, a latitude and longitude error value (ie, longitude and latitude distance), a location error value (such as a floor error value, etc.), an altitude error value, etc.
[0093] Optionally, since the WiFi signal source may move in rare cases, or in extreme cases, the user terminal may be connected to another WiFi signal source with the same BSSID, in order to ensure the reliability of the positioning result, the client 20 will further perform an error check on the historical positioning result based on the device positioning result. If the error is within an acceptable range (less than or equal to a preset error value), the historical positioning result is considered valid; otherwise, it is necessary to re-acquire the service information based on the real-time acquired device positioning result to update the display interface of the user terminal.
[0094] Exemplarily, when the device positioning result is the device positioning longitude and latitude, and the historical positioning result is the historical positioning longitude and latitude, the client 20 calculates the longitude and latitude distance based on the device positioning longitude and latitude and the historical positioning longitude and latitude, and determines whether the error value between the device positioning result and the historical positioning result is greater than the preset error value by comparing the calculated longitude and latitude distance with the preset longitude and latitude distance. It is worth noting that the above-mentioned longitude and latitude distance can be the actual longitude and latitude distance, which takes into account the curvature of the earth and provides a more accurate distance calculation result. The above-mentioned preset longitude and latitude distance is a pre-set distance threshold, for example, it can be set to 250 meters, and it can also be adjusted according to actual needs, for example, it can be adjusted to 100 meters, 200 meters, 300 meters, etc. The smaller the preset longitude and latitude distance is set, the higher the positioning accuracy requirement of the client 20.
[0095] Specifically, if the longitude and latitude distance is greater than the preset longitude and latitude distance, it is determined that the error value between the device positioning result and the historical positioning result is greater than the preset error value. At this time, the location of the WiFi signal source may have changed. Therefore, the client 20 uses the currently acquired device positioning longitude and latitude as the basis in this case and executes S407 to re-acquire service information. If the longitude and latitude distance is less than or equal to the preset longitude and latitude distance, it is determined that the error value between the device positioning result and the historical positioning result is less than or equal to the preset error value. At this time, the client 20 uses the historical positioning result obtained from the historical records stored locally on the user terminal as the basis, and there is no need to re-acquire service information based on the device positioning result.
[0096] S407: Send a second data loading request carrying the device positioning result to the server, so that the server obtains second service information based on the device positioning result based on the second data loading request.
[0097] Optionally, when the error value between the device positioning result and the historical positioning result is greater than a preset error value, the client 20 sends a second data loading request carrying the device positioning result to the server, so that the server obtains second service information based on the device positioning result based on the second data loading request. The second data loading request is not limited to carrying the device positioning result, but may also carry user identification information, current time identification information, etc. Among them, the device positioning result may be, but not limited to, the device positioning latitude and longitude, etc., the user identification information may be, but not limited to, the user ID, etc., and the current time identification information may be, but not limited to, the current timestamp, etc.
[0098] Exemplarily, the client 20 constructs a data packet according to the device positioning result, user ID and current timestamp, and sends a data loading request to the server by sending the constructed data packet to the designated API interface of the server. After receiving the first data loading request sent by the client 20, the server responds to the first data loading request sent by the client 20, parses the content in the data packet, and obtains the device positioning longitude and latitude, user ID and current timestamp carried by the second data loading request. Then, the device positioning longitude and latitude, user ID and current timestamp are combined to perform association analysis, query the database, call the map API and other processing, so as to obtain the second service information based on the device positioning result, so as to provide location-based services to the user. Finally, the server packages the second service information into a data packet in JSON format or other data format, and sends it to the client 20 through the network interface.
[0099] S408: Receive second service information sent by the server, and update the display interface of the user terminal based on the second service information.
[0100] Optionally, the client 20 receives the data packet sent by the server, parses it, and renders the display interface of the user terminal, and displays the second service information obtained based on the device positioning result on the display interface of the user terminal in a predetermined style and layout.
[0101] In one embodiment, the second service information includes one or more of current location information, surrounding store information, and delivery range information. Updating the display interface of the user terminal based on the second service information includes: updating the display interface of the user terminal based on the current location information and / or surrounding store information and / or delivery range information.
[0102] Optionally, when the error value between the device positioning result and the historical positioning result is greater than a preset error value, second service information is obtained from the server according to the device positioning result, and then the display interface of the user terminal is updated based on the second service information, that is, the first service information based on the historical positioning result in the above S403 is no longer displayed on the display interface of the user terminal.
[0103] In this embodiment, when the error value between the device positioning result and the historical positioning result is large, the second service information based on the device positioning result updates the display interface of the user terminal, effectively ensuring the accuracy of the location-based service information presented to the user.
[0104] S409: Update the historical positioning result corresponding to any historically connected WiFi signal as the device positioning result.
[0105] Optionally, when the error value between the device positioning result and the historical positioning result is greater than a preset error value, the client 20 updates the historical positioning result corresponding to any one of the historically connected WiFi signals in the above S401 to the device positioning result. Specifically, the historical positioning result corresponding to the historically connected WiFi signal in the historical record may be directly replaced with the device positioning result; or the historical record used to characterize the association relationship between any one of the historically connected WiFi signals and the historical positioning result may be deleted, and a historical record used to characterize the association relationship between the currently connected WiFi signal and the device positioning result may be generated. The specific manner in which the client 20 updates the historical positioning result corresponding to any one of the historically connected WiFi signals to the device positioning result is not limited in the embodiments of the present application.
[0106] S410: Obtain device positioning results of the user terminal.
[0107] The device positioning results include, but are not limited to, the device positioning longitude and latitude, the device positioning address (such as the device positioning area, the device positioning floor, etc.), the device altitude, etc.
[0108] Optionally, when the currently connected WiFi signal is inconsistent with any of the historically connected WiFi signals, the client 20 obtains the device positioning longitude and latitude of the user terminal according to the system positioning service (such as satellite positioning, network positioning, etc.) built into the user terminal and / or the third-party positioning service integrated on the client 20, thereby re-determining the current position of the user terminal according to the device positioning longitude and latitude. Specifically, different positioning methods can be selected according to different scenarios. For example, in outdoor scenarios, the device positioning longitude and latitude are obtained by satellite positioning, and in indoor scenarios, the device positioning longitude and latitude are obtained by network positioning and / or third-party positioning services. The client 20 can also combine the positioning results corresponding to different positioning methods through a fusion algorithm, for example, by combining the positioning results corresponding to satellite positioning and the positioning results corresponding to network positioning through a Kalman filtering algorithm to obtain the device positioning longitude and latitude. The specific manner in which the client 20 obtains the device positioning longitude and latitude through the system positioning service and / or third-party positioning service built into the user terminal is not limited in the embodiments of the present application.
[0109] S411: Generate a historical record for representing the association relationship between the currently connected WiFi signal and the device positioning result.
[0110] Optionally, when the currently connected WiFi signal is inconsistent with any historically connected WiFi signal, after obtaining the device positioning result of the user terminal, the client 20 will also associate the signal identifier of the WiFi signal currently connected to the user terminal with the device positioning result and store it in an offline database or cache file of the user terminal, thereby generating a historical record for characterizing the association between the currently connected WiFi signal and the device positioning result, so that the client 20 can quickly obtain the positioning result from the historical record based on the WiFi signal connected to the user terminal when the positioning service is turned on for the user terminal next time.
[0111] For example, the client 20 can associate the SSID and BSSID of the currently connected WiFi signal with the device positioning latitude and longitude and the device positioning address (such as the device positioning area, the device positioning floor, etc.) to form a historical record. This newly generated historical record and other historical records can be stored in the offline database of the user terminal to ensure that even in the absence of a network connection, the client 20 can quickly access this historical record to assist in positioning without having to obtain it from the server, thereby speeding up data access, reducing the load and response time of the server, and effectively improving the efficiency and stability of positioning.
[0112] S412: Send a second data loading request carrying the device positioning result to the server, so that the server obtains second service information based on the device positioning result based on the second data loading request.
[0113] Optionally, when the currently connected WiFi signal is inconsistent with any of the historically connected WiFi signals, the client 20 obtains the device positioning result of the user terminal, and constructs a data packet according to the device positioning result, user identification information, current time identification information, etc., and sends a data loading request to the server by sending the constructed data packet to the designated API interface of the server. Specifically, the identification information of the device positioning result may be, but is not limited to, the device positioning latitude and longitude, etc., the user identification information may be, but is not limited to, the user ID, etc., and the current time identification information may be, but is not limited to, the current timestamp, etc.
[0114] After receiving the data packet sent by the client 20, the server responds to the data loading request sent by the client 20, parses the content in the data packet, and obtains the device location longitude and latitude, user ID and current timestamp carried in the data loading request. Then, based on the identification information such as the device location longitude and latitude, user ID and current timestamp, the server performs association analysis, queries the database, calls the map API, etc., so as to obtain the second service information associated with it, so as to provide location-based services to the user. The second service information includes one or more of the current location information, surrounding store information, and delivery range information. Finally, the server packages the second service information into a data packet in JSON format or other data format, and sends it to the client 20 through the network interface.
[0115] S413: Receive second service information sent by the server, and update the display interface of the user terminal based on the second service information.
[0116] Optionally, the client 20 receives the data packet sent by the server, parses it, and renders the display interface of the user terminal, and displays the current location information and / or surrounding store information and / or delivery range information obtained based on the device positioning result on the display interface of the user terminal according to a predetermined style and layout. Specifically, the current location information includes but is not limited to the reference point of the current location of the user terminal on the map, and the POI name (such as office building name, community name), POI coordinates (such as longitude and latitude coordinates) corresponding to the current location of the user terminal. The surrounding store information can be but is not limited to the name, evaluation, business hours, etc. of the service points such as stores and restaurants around the user terminal. The delivery range information includes but is not limited to the distance from the current location of the user terminal to the surrounding stores, the time from the current location to the surrounding stores, whether the current location meets the delivery conditions of the surrounding stores, etc.
[0117] In this embodiment, on the one hand, by comparing the currently connected WiFi signal with the WiFi signal in the historical record, when the currently connected WiFi signal matches the WiFi signal in the historical record, the historical positioning result associated with any historically connected WiFi signal is directly obtained from the historical record stored locally in the user terminal, and the first service information is obtained from the server based on the historical positioning result to update the display interface of the user terminal. The entire positioning process does not need to obtain the positioning result through time-consuming methods such as satellite positioning and network positioning, which not only avoids the complex positioning processing flow, but also reduces the loading time of location-based service information, improves the positioning speed and improves the user experience. On the second hand, by comparing the device positioning result with the historical positioning result for error checking, when the error between the device positioning result and the historical positioning result is large, the current position of the user terminal is determined according to the device positioning result, and the display interface of the user terminal is updated based on the device positioning result, ensuring the real-time and accuracy of the positioning, and effectively preventing the positioning deviation caused by environmental changes (such as changes in the location of the WiFi signal source). On the third hand, during the positioning process, the historical record is also corrected and updated based on the device positioning result, so that the historical record stored locally in the user terminal becomes closer to the real environment and user needs over time, and the efficiency and accuracy of subsequent positioning are improved.
[0118] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0119] Based on the inventive concept of the above positioning method, Figure 5 As shown, the embodiment of the present application further provides a positioning device 500 for implementing the positioning method involved above. The positioning device 500 includes:
[0120] A determination module 501 is used to determine whether a WiFi signal currently connected by the user terminal is consistent with any WiFi signal of a historical connection in a plurality of historical records of the user terminal;
[0121] An acquisition module 502 is used to acquire a historical positioning result stored in association with any historically connected WiFi signal when the currently connected WiFi signal is consistent with any historically connected WiFi signal;
[0122] A sending module 503 is used to send a first data loading request carrying a historical positioning result to a server, so that the server obtains first service information based on the historical positioning result based on the first data loading request;
[0123] The receiving module 504 is used to receive the first service information sent by the server;
[0124] The display module 505 is used to display a display interface of the user terminal based on the first service information.
[0125] In one embodiment, the acquisition module 502 is also used to obtain the device positioning result of the user terminal; the sending module 503 is also used to send a first data loading request carrying the historical positioning result to the server, so that the server obtains the first service information based on the historical positioning result based on the first data loading request; the receiving module 504 is also used to receive the second service information sent by the server; the display module 505 is also used to update the display interface of the user terminal based on the second service information.
[0126] In one embodiment, the positioning device 500 also includes a storage module for storing multiple historical records, wherein each of the multiple historical records is used to characterize the association between the WiFi signal of the user terminal's historical connection and the user terminal's historical positioning result; the above-mentioned storage module is also used to update the historical positioning result corresponding to any historically connected WiFi signal to the device positioning result when the error value between the device positioning result and the historical positioning result is greater than a preset error value.
[0127] In one embodiment, the acquisition module 502 is also used to obtain the device positioning result of the user terminal when the currently connected WiFi signal is inconsistent with any historically connected WiFi signal; the above-mentioned storage module is also used to generate a historical record for characterizing the association relationship between the currently connected WiFi signal and the device positioning result.
[0128] In one embodiment, the sending module 503 is also used to send a second data loading request carrying the device positioning result to the server, so that the server obtains second service information based on the device positioning result based on the second data loading request; the receiving module 504 is also used to receive the second service information sent by the server; the display module 505 is also used to display the display interface of the user terminal based on the second service information.
[0129] In one embodiment, each of the multiple historical records includes a basic service set identifier of a WiFi signal to which the user terminal was historically connected; the judgment module 501 is further used to determine whether the basic service set identifier of the currently connected WiFi signal is consistent with the basic service set identifier of the WiFi signal to which the user terminal was historically connected in each historical record.
[0130] In one embodiment, the first service information or the second service information includes one or more of current location information, surrounding store information, and delivery range information.
[0131] Each module in the positioning device 500 can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0132] The embodiment of the present application also provides an electronic device, which may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a positioning method is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.
[0133] Those skilled in the art will understand that Figure 6The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0134] In one embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0135] Determine whether a WiFi signal currently connected to the user terminal is consistent with any WiFi signal of a historical connection in multiple historical records of the user terminal;
[0136] When the currently connected WiFi signal is consistent with any WiFi signal that was historically connected, obtain the historical positioning result stored in association with any WiFi signal that was historically connected;
[0137] Sending a first data loading request carrying the historical positioning result to the server, so that the server obtains first service information based on the historical positioning result based on the first data loading request;
[0138] Receiving first service information sent by the server;
[0139] A presentation interface of the user terminal is displayed based on the first service information.
[0140] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining the device positioning result of the user terminal; when the error value between the device positioning result and the historical positioning result is greater than a preset error value, sending a second data loading request carrying the device positioning result to the server, so that the server obtains second service information based on the device positioning result based on the second data loading request; receiving the second service information sent by the server; and updating the display interface of the user terminal based on the second service information.
[0141] In one embodiment, when the processor executes the computer program, the following steps are also implemented: when the error value between the device positioning result and the historical positioning result is greater than a preset error value, the historical positioning result corresponding to any historically connected WiFi signal is updated to the device positioning result.
[0142] In one embodiment, when the processor executes the computer program, the following steps are also implemented: when the currently connected WiFi signal is inconsistent with any historically connected WiFi signal, the device positioning result of the user terminal is obtained; and a historical record is generated for characterizing the association relationship between the currently connected WiFi signal and the device positioning result.
[0143] In one embodiment, when the processor executes the computer program, it also implements the following steps: sending a second data loading request carrying the device positioning result to the server, so that the server obtains second service information based on the device positioning result based on the second data loading request; receiving the second service information sent by the server; and displaying the display interface of the user terminal based on the second service information.
[0144] In one embodiment, when the processor executes the computer program, the following steps are further implemented: determining whether the basic service set identifier of the currently connected WiFi signal is consistent with the basic service set identifier of the WiFi signal historically connected by the user terminal in each historical record.
[0145] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the above-mentioned first service information or the above-mentioned second service information includes one or more of current location information, surrounding store information, and delivery range information.
[0146] The present application also provides a computer storage medium, which stores instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes one or more steps in the above embodiment. If the components of the above electronic device are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer readable storage medium.
[0147] In one embodiment, a computer storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0148] Determine whether a WiFi signal currently connected to the user terminal is consistent with any WiFi signal of a historical connection in multiple historical records of the user terminal;
[0149] When the currently connected WiFi signal is consistent with any WiFi signal that was historically connected, obtain the historical positioning result stored in association with any WiFi signal that was historically connected;
[0150] Sending a first data loading request carrying the historical positioning result to the server, so that the server obtains first service information based on the historical positioning result based on the first data loading request;
[0151] Receiving first service information sent by the server;
[0152] A presentation interface of the user terminal is displayed based on the first service information.
[0153] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining the device positioning result of the user terminal; when the error value between the device positioning result and the historical positioning result is greater than a preset error value, sending a second data loading request carrying the device positioning result to the server, so that the server obtains second service information based on the device positioning result based on the second data loading request; receiving the second service information sent by the server; after displaying the display interface of the user terminal based on the first service information, the method also includes: updating the display interface of the user terminal based on the second service information.
[0154] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the error value between the device positioning result and the historical positioning result is greater than a preset error value, the historical positioning result corresponding to any historically connected WiFi signal is updated to the device positioning result.
[0155] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the currently connected WiFi signal is inconsistent with any historically connected WiFi signal, obtaining the device positioning result of the user terminal; and generating a historical record for characterizing the association relationship between the currently connected WiFi signal and the device positioning result.
[0156] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: sending a second data loading request carrying the device positioning result to the server, so that the server obtains second service information based on the device positioning result based on the second data loading request; receiving the second service information sent by the server; and displaying a display interface of the user terminal based on the second service information.
[0157] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining whether a WiFi signal currently connected to the user terminal is consistent with any one of the WiFi signals historically connected in multiple historical records of the user terminal, including: determining whether a basic service set identifier of the currently connected WiFi signal is consistent with a basic service set identifier of the WiFi signal historically connected to the user terminal in each historical record.
[0158] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the above-mentioned first service information or the above-mentioned second service information includes one or more of current location information, surrounding store information, and delivery range information.
[0159] It should be noted that the user information (including but not limited to user account information, user identity information, etc.) and personal data (including but not limited to personal mailbox data, personal folder data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0160] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer storage medium or transmitted through the computer storage medium. The computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)).
[0161] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.
[0162] The embodiments described above are merely preferred embodiments of the present application and are not intended to limit the scope of the present application. Without departing from the design spirit of the present application, various modifications and improvements made to the technical solutions of the present application by ordinary technicians in this field should fall within the protection scope determined by the claims.
[0163] The above describes a specific embodiment of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Claims
1. A positioning method, characterized in that: The method comprises: Determine whether a WiFi signal currently connected by the user terminal is consistent with any one of the WiFi signals historically connected in multiple historical records of the user terminal; each of the multiple historical records is used to represent a historical geographical location when the user terminal accesses the WiFi signal historically connected; When the currently connected WiFi signal is consistent with any one of the historically connected WiFi signals, obtaining a historical positioning result stored in association with any one of the historically connected WiFi signals; the historical positioning result includes the historical positioning latitude and longitude; Sending a first data loading request carrying the historical positioning result to the server, so that the server obtains first service information based on the historical positioning result based on the first data loading request; Receiving the first service information sent by the server; A presentation interface of the user terminal is displayed based on the first service information.
2. The method according to claim 1, characterized in that After acquiring the historical positioning result stored in association with the WiFi signal of any one of the historical connections, the method further includes: Obtaining a device positioning result of the user terminal; When the error value between the device positioning result and the historical positioning result is greater than a preset error value, sending a second data loading request carrying the device positioning result to the server, so that the server obtains second service information based on the device positioning result based on the second data loading request; receiving the second service information sent by the server; After displaying the display interface of the user terminal based on the first service information, the method further includes: The display interface of the user terminal is updated based on the second service information.
3. The method according to claim 2, characterized in that Each of the multiple historical records is used to represent the association relationship between the WiFi signal of the historical connection of the user terminal and the historical positioning result of the user terminal; The method further comprises: When the error value between the device positioning result and the historical positioning result is greater than the preset error value, the historical positioning result corresponding to any one of the historically connected WiFi signals is updated as the device positioning result.
4. The method according to claim 1, characterized in that After determining whether the WiFi signal currently connected to the user terminal is consistent with any WiFi signal of a historical connection in a plurality of historical records of the user terminal, the method further includes: When the currently connected WiFi signal is inconsistent with any of the historically connected WiFi signals, obtaining a device positioning result of the user terminal; Generate a historical record for characterizing the association relationship between the currently connected WiFi signal and the device positioning result.
5. The method according to claim 4, characterized in that In the case where the currently connected WiFi signal is inconsistent with any one of the historically connected WiFi signals, after obtaining the device positioning result of the user terminal, the method further includes: Sending a second data loading request carrying the device positioning result to the server, so that the server obtains second service information based on the device positioning result based on the second data loading request; receiving the second service information sent by the server; A presentation interface of the user terminal is displayed based on the second service information.
6. The method according to claim 1, characterized in that Each of the plurality of historical records includes a basic service set identifier of a WiFi signal to which the user terminal was historically connected; The determining whether the WiFi signal currently connected by the user terminal is consistent with any WiFi signal of a historical connection in a plurality of historical records of the user terminal comprises: It is determined whether the basic service set identifier of the currently connected WiFi signal is consistent with the basic service set identifier of the WiFi signal to which the user terminal was historically connected in each historical record.
7. The method according to any one of claims 2 to 3 and 5, characterized in that: The first service information or the second service information includes one or more of current location information, surrounding store information, and delivery range information.
8. A positioning device, characterized in that: The device comprises: A determination module, used to determine whether a WiFi signal currently connected by a user terminal is consistent with any one of the WiFi signals historically connected in a plurality of historical records of the user terminal; each of the plurality of historical records is used to represent a historical geographical location when the user terminal accesses the WiFi signal historically connected; an acquisition module, configured to acquire, when the currently connected WiFi signal is consistent with any one of the historically connected WiFi signals, a historical positioning result stored in association with the any one of the historically connected WiFi signals; the historical positioning result includes a historical positioning latitude and longitude; A sending module, configured to send a first data loading request carrying the historical positioning result to a server, so that the server obtains first service information based on the historical positioning result based on the first data loading request; A receiving module, used for receiving the first service information sent by the server; A display module is used to display a display interface of the user terminal based on the first service information.
9. An electronic device, characterized in that: include: A processor and a memory; the memory stores a computer program, and the processor implements the method steps of any one of claims 1 to 7 when executing the computer program.
10. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, which are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 7.
