Method, device, equipment and medium for reducing LBS positioning track point drift
By building a calculation and verification mechanism, collecting device-side location data and performing weighted average verification, the drift problem of LBS positioning in complex environments is solved, and positioning accuracy and user experience are improved.
Patent Information
- Application Number
- CN202311191644.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-14
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2043-09-14
AI Technical Summary
LBS positioning is easily blocked and interfered with in high-rise buildings or dense urban environments, resulting in positioning deviation and error, affecting positioning accuracy and user experience.
By building a calculation and verification mechanism, the device-side location data is collected to form a verification library, the longitude and latitude information is obtained for calculation and verification, and the signal strength is weighted averaged to form a verification value. The data is then compared with the LBS database query data, and data with differences exceeding the threshold is cleared. The database is updated using third-party map data.
The accuracy of LBS positioning is improved, the error of positioning results and the user complaint rate are reduced, and the reliability of positioning results is improved.
Smart Images

Figure CN117235057B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of LBS positioning trajectory point drift, in particular to a method, device and equipment for reducing LBS positioning trajectory point drift and a medium. BACKGROUND
[0002] LBS (Location Based Service, based on location-based services) positioning refers to a service based on location information, which matches the location information of a user's device with geographic data through the use of a global positioning system or other positioning technology, thereby providing relevant location services. LBS positioning can be used for various applications, such as navigation, mapping, location sharing, surrounding search, location recommendation, etc. The principle of LBS positioning is to receive the location signal of a device and match and process it with map data to determine the accurate location of the device. This can be achieved through different positioning technologies such as GPS satellites, base station signals, Wi-Fi hotspots, etc. Once the location of the device is determined, the LBS platform can provide corresponding services and functions, such as displaying maps, navigating routes, searching for nearby stores or services, etc.
[0003] The accuracy of LBS positioning depends on the positioning technology used and environmental conditions. In open and spacious areas, using GPS positioning can usually provide high accuracy. However, in environments such as high-rise buildings or dense cities, signals can be blocked and interfered with, resulting in deviation or inaccuracy in positioning. In order to improve the accuracy of positioning, LBS platforms usually use positioning correction algorithms and technologies such as map matching to correct and correct positioning data. However, due to unreliable factors such as moving base stations, moving MACs, and false MACs in real-world environments, the LBS database constructed may contain some errors, outdated data, etc., resulting in a certain error in the positioning result, which makes the complaint rate high. SUMMARY
[0004] The purpose of the present application is to overcome the shortcomings of the prior art and provide a method, device, equipment and medium for reducing LBS positioning trajectory point drift.
[0005] In order to solve the above technical problems, the present application adopts the following technical solutions:
[0006] In a first aspect, the present embodiment provides a method for reducing LBS positioning trajectory point drift, comprising the following steps:
[0007] Collecting the location data of the device end, i.e. the first location data, and uploading the first location data to the server to form a verification library;
[0008] Obtaining the latitude and longitude information corresponding to the first location data returned by the verification library;
[0009] The longitude and latitude information is calculated and checked to obtain a check value;
[0010] The first position data is uploaded to an LBS database of the server;
[0011] The longitude and latitude information corresponding to the first position data is obtained, i.e., query data;
[0012] The query data is calculated to obtain a result value;
[0013] The result value is compared with the check value; if the difference between the two values is within a set threshold, the result value is displayed on an interface.
[0014] Further, the position data of the device, i.e., second position data, is obtained from a third party, and the longitude and latitude information in the second position data is extracted and stored by the server to form an LBS database.
[0015] Further, the longitude and latitude information is grouped according to similarity, a group with the most data is extracted from the multiple groups, and weighted average operation is performed on the data in the group combined with signal strength to obtain the check value.
[0016] Further, the step of comparing the result value with the check value further includes: if the difference between the two values is outside the set threshold, the longitude and latitude information corresponding to the first position data returned by the server is deleted, the check value corresponding to the longitude and latitude information in the LBS database is cleared, and then the longitude and latitude data of the device is obtained through the LBS manufacturer of the third party, and the longitude and latitude data is refreshed and stored in the LBS database.
[0017] In a second aspect, the embodiment provides a device for reducing drift of LBS positioning track points, which comprises a collection and uploading unit, a first acquisition unit, a first calculation unit, an uploading unit, a second acquisition unit, a second calculation unit, and a comparison unit.
[0018] The collection and uploading unit is configured to collect position data of a device, i.e., first position data, and upload the first position data to a server to form a test library.
[0019] The first acquisition unit is configured to acquire longitude and latitude information corresponding to the first position data returned by the test library.
[0020] The first computing unit is configured to perform a calculation verification on the longitude and latitude information to obtain a verification value.
[0021] The uploading unit is configured to upload the first position data into an LBS database of a server.
[0022] The second obtaining unit is configured to obtain longitude and latitude information corresponding to the first position data in the LBS database, i.e., query data.
[0023] The second computing unit is configured to perform a result calculation on the query data to obtain a result value.
[0024] The comparison unit is configured to compare the result value with the verification value, and if a difference between the result value and the verification value is within a set threshold, the result value is displayed on an interface.
[0025] In a further technical solution, in the collection and uploading unit, the server extracts base stations and longitude and latitude information in the first position data to store a test library, and obtains position data of a device end, i.e., second position data, from a third party, and extracts longitude and latitude information in the second position data to store an LBS database.
[0026] In a further technical solution, in the first computing unit, the longitude and latitude information is grouped according to similarity as a dimension, a group with the most data in the multiple groups is extracted, and weighted average operation is performed on data in the group combined with signal strength to obtain the verification value.
[0027] In a further technical solution, in the comparison unit, if the difference between the result value and the verification value is outside the set threshold, the longitude and latitude information corresponding to the first position data returned by the server is deleted, the verification value corresponding to the longitude and latitude information in the LBS database is cleared, longitude and latitude data of the device end is obtained through an LBS manufacturer of the third party, and the longitude and latitude data is stored to the LBS database.
[0028] In a third aspect, the embodiment provides a computer device, which includes a memory and a processor, the memory stores a computer program, and the processor implements the method for reducing LBS positioning track point drift when executing the computer program.
[0029] In a fourth aspect, the embodiment provides a storage medium, which stores a computer program, the computer program includes program instructions, and the program instructions can implement the method for reducing LBS positioning track point drift when executed by a processor.
[0030] Compared with the prior art, the present application has the beneficial effects that: the position data, i.e. the first position data, of the collection device is acquired and uploaded to the server to form a test library; the longitude and latitude information corresponding to the first position data returned by the test library is acquired; the longitude and latitude information is calculated and verified to obtain a verification value; the first position data is uploaded to the LBS database of the server; the longitude and latitude information corresponding to the first position data, i.e. the query data, is acquired by querying the LBS database; the query data is calculated to obtain a result value; the result value is compared with the verification value; if the difference between the two values is within a set threshold, the result value is displayed on the interface; that is, by constructing a calculation and verification mechanism, the data quality of the LBS database is improved, some incorrect and expired data can be effectively removed, the accuracy of the positioning result is improved, and the complaint rate is reduced.
[0031] The present application will be further described below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0033] Figure 1 A flowchart of the method for reducing LBS positioning trajectory point drift provided by the embodiments of the present application;
[0034] Figure 2 A schematic block diagram of the device for reducing LBS positioning trajectory point drift provided by the embodiments of the present application;
[0035] Figure 3 A schematic block diagram of the computer device provided by the embodiments of the present application. DETAILED DESCRIPTION
[0036] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings of the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0037] It should be understood that, when used in the present specification and the appended claims, the terms "comprise" and "include" indicate the presence of the described features, integers, steps, operations, elements, and / or components, but do not exclude one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0038] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the present invention. As used in the specification and appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0039] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0040] See also Figure 1 In the specific embodiment shown, the present invention discloses a method for reducing LBS positioning trajectory point drift, comprising the following steps:
[0041] S1, collecting location data of the device end, i.e., first location data, and uploading the first location data to the server to form a verification library;
[0042] Specifically, the device side refers to tracker-type devices, which obtain location data by collecting information from base stations or WIFI.
[0043] In one embodiment, in the step of collecting device-side location data, i.e., first location data, and uploading the first location data to a server to form a verification database, the server extracts the base station and latitude and longitude information from the first location data and stores it to form the verification database. Furthermore, the server obtains device-side location data, i.e., second location data, from a third party, and extracts the latitude and longitude information from the second location data and stores it to form an LBS database. The third party is software such as AutoNavi Maps or Baidu Maps, and the device-side location data is obtained from a port opened by the software.
[0044] Specifically, the LBS database is constructed using GPS data reported by tracker devices. This data is streamed to the server via a gateway. This data is continuously collected, and information such as base stations, longitude, and latitude is extracted and stored. GPS data includes longitude and latitude, as well as information about nearby base stations. By continuously collecting this data, the LBS database can be continuously trained and improved.
[0045] S2, obtaining the latitude and longitude information corresponding to the first location data returned by the inspection library;
[0046] Specifically, the verification library in the server parses the first location data to obtain corresponding longitude and latitude information, and then returns the longitude and latitude information to the device end.
[0047] S3, performing a calculation verification on the longitude and latitude information to obtain a verification value;
[0048] In an embodiment, in the step of performing a calculation verification on the longitude and latitude information to obtain a verification value, the longitude and latitude information is grouped by similarity, a group with the most data in the multiple groups is extracted, and a weighted average operation is performed on the data in the group combined with signal strength to obtain the verification value.
[0049] Specifically, the device generally reports two parts of information when performing LBS positioning, one is base station information and the other is WIFI information. By extracting the reported base station information, the corresponding data is obtained in the LBS database, including multiple data, and the content of the data is the longitude and latitude of the base station. A verification value is calculated by a clustering algorithm, that is, the multiple data are grouped, for example, two data with a longitude and latitude difference of 0.0057 are grouped into one group, and 0.00057 is a threshold value debugged in actual production. After grouping, the group with the most data is taken, and a weighted average operation is performed on the data in the group combined with signal strength to obtain the verification value. Through the above calculation, individual drift points can be successfully filtered out.
[0050] Specifically, the weighted average algorithm is as follows:
[0051]
[0052] Wherein, x is the signal strength, that is, the weight; f is the longitude and latitude; n is the number.
[0053] Specifically, the clustering algorithm is an unsupervised learning algorithm, which is used to divide the objects in the data set into different groups, so that the similarity of the objects in the same group is high, and the similarity of the objects between different groups is low. Here, the DBSCAN algorithm is used, and the basic idea and advantages of the algorithm are as follows:
[0054] DBSCAN (Density-Based Spatial Clustering of Applications with Noise) is a commonly used density clustering algorithm, which is used to divide data points into different clusters and can handle noise and clusters of arbitrary shape. DBSCAN is based on the density and reachability of data points for clustering, without pre-specifying the number of clusters.
[0055] The basic idea of the DBSCAN algorithm is to divide data points with sufficiently high density into a cluster and expand the size of the cluster by connecting density-reachable data points. Specifically, the algorithm starts from an unvisited data point, finds the density-reachable points in its neighborhood, and adds them to the same cluster. Then, for each newly added point, it continues to find the density-reachable points in its neighborhood and recursively expands the size of the cluster. If the neighborhood of a data point is not dense enough to meet the clustering condition, it is marked as a noise point or a boundary point. Among them, Epsilon (ε): the maximum radius of the community. If the distance between data points is less than or equal to the specified Epsilon, they will be in the same class; in other words, it is the distance used by DBSCAN to determine whether two points are similar and belong to the same class. A larger Epsilon will result in larger clusters, i.e. containing more data points, and a smaller Epsilon will build smaller clusters. In general, a smaller value is because only a small part of the data points are within a distance of each other; however, if it is too small, it will divide the cluster into smaller and smaller clusters. MinPts: A neighborhood with minPts number of points within a radius is considered a cluster, where the initial point is included in minPts. A lower minPts helps the algorithm to build more clusters with more noise or outliers. A higher minPts will ensure more robust clusters, but if the clusters are too large, smaller clusters will be merged into larger clusters. For example: if "minPts" = 4, any 4 or more points within a distance of each other are considered a cluster. The workflow is: select a random point with at least minPts within its radius, then evaluate each point in the core point's neighborhood to determine whether it has minPts (including the point itself) within the Epsilon distance. If the point meets the minPts standard, it will become another core point and the cluster will expand; if a point does not meet the minPts standard, it becomes a boundary point. As the process continues, the algorithm begins to develop into a "a" that is a neighbor of "b", and "b" is a neighbor of "c", and so on. When the cluster is surrounded by boundary points, this clustering cluster has been completely searched, because there are no more points within the distance. Select a new random point and repeat the process to identify the next cluster.
[0056] The main advantage of the DBSCAN algorithm is that it can discover clusters of arbitrary shape and is robust to noise and outliers. It does not need to specify the number of clusters in advance and can automatically identify the appropriate number of clusters. However, the performance of the DBSCAN algorithm is affected by the unevenness of data density and the selection of appropriate parameter values, and appropriate parameter values mainly include Epsilon and minPts, which need to be adjusted according to specific business scenarios.
[0057] S4, uploading the first position data into an LBS database of a server;
[0058] S5, obtaining longitude and latitude information corresponding to the first position data, i.e., query data, from the LBS database;
[0059] Specifically, the longitude and latitude information corresponding to the base station and WIFI information uploaded by the third party, i.e., the query data, is found from the LBS database according to the first position data.
[0060] S6, performing result calculation on the query data to obtain a result value;
[0061] Specifically, although the operation and processing of the S3 step reduces the interference of individual drift points on the positioning accuracy, it is still not enough, and the largest group of data in the clustered groups may also be a group of incorrect combinations, so a reliable verification mechanism is urgently needed to determine the returned result. That is, the same calculation as the S3 step is performed on the query data to obtain a result value.
[0062] S7, comparing the result value with a verification value; if the difference between the two values is within a set threshold, the result value is displayed on an interface.
[0063] Specifically, the result value is compared with the verification value, mainly the distance between the longitude and latitude of the result value and the longitude and latitude of the verification value, and a dynamically adjustable threshold (10000 meters is defined in the current production environment) is set. If the distance between the two values is within 10000 meters, the result value is displayed on an interface, and the result value can also be returned to the server, which is generally used for trajectory display.
[0064] In an embodiment, if the distance between the two values is outside 10000 meters, the longitude and latitude information corresponding to the first position data returned by the server is deleted, and the verification value corresponding to the longitude and latitude information in the LBS database is cleared. Then, the longitude and latitude data of the device end is obtained through the LBS manufacturer of the third party, and the longitude and latitude data is refreshed and stored in the LBS database.
[0065] Specifically, a complete set of data verification mechanism is constructed by using the high-precision positioning data provided by the tracker-type device to improve the quality and accuracy of the returned data.
[0066] In order to facilitate the understanding of the technology of the present application, the following application scenarios are provided: a use scenario of an electronic student card;
[0067] When the students purchase and wear the electronic student cards, the parents and teachers can see the real-time positions of the students on the server; in a dangerous scene, the students trigger an SOS alarm, the alarm carries the current position information of the students and is transmitted to the teachers or parents, and the teachers and parents can timely rush to the positions of the students to assist; by adding the LBS capability in the electronic student card, the parents and teachers can observe the current positions of the students, so that the students are more easily managed, and the safety of the students is also ensured.
[0068] The application improves the data quality of the LBS database by constructing a calculation verification mechanism, effectively removes some errors and expired data, improves the accuracy of the positioning result, and reduces the complaint rate.
[0069] Please refer to Figure 2 The application further discloses a device for reducing the drift of LBS positioning track points, which comprises a collection and uploading unit 10, a first acquisition unit 20, a first calculation unit 30, an uploading unit 40, a second acquisition unit 50, a second calculation unit 60 and a comparison unit 70.
[0070] The collection and uploading unit 10 is used for collecting the position data of the equipment end, i.e. the first position data, and uploading the first position data to the server to form a test library.
[0071] The first acquisition unit 20 is used for acquiring the longitude and latitude information corresponding to the first position data returned by the test library.
[0072] The first calculation unit 30 is used for performing calculation verification on the longitude and latitude information to obtain a verification value.
[0073] The uploading unit 40 is used for uploading the first position data to the LBS database of the server.
[0074] The second acquisition unit 50 is used for acquiring the longitude and latitude information corresponding to the first position data, i.e. the query data.
[0075] The second calculation unit 60 is used for performing result calculation on the query data to obtain a result value.
[0076] The comparison unit 70 is used for comparing the result value with the verification value; if the difference between the two values is within a set threshold, the result value is displayed on an interface.
[0077] In an embodiment, in the collection and uploading unit 10, the server extracts the base station and longitude and latitude information in the first position data for storage to form a test library, and obtains the position data of the equipment end from a third party, i.e. second position data, and extracts the longitude and latitude information in the second position data for storage to form an LBS database.
[0078] In an embodiment, in the first calculating unit 30, the latitude and longitude information is grouped in the dimension of similarity, one group with the most data is extracted from the multiple groups, and a weighted average operation is performed on the data in the group combined with the signal strength to obtain the check value.
[0079] In an embodiment, in the comparison unit 70, if the difference is outside the set threshold, the latitude and longitude information corresponding to the first position data returned by the server is deleted, the check value corresponding to the latitude and longitude information in the LBS database is cleared, the latitude and longitude data of the device end is obtained through the third-party LBS manufacturer, and the latitude and longitude data is refreshed and stored to the LBS database.
[0080] It should be noted that the specific implementation process of the above-mentioned device for reducing LBS positioning track point drift and each unit can be clearly understood by those skilled in the art, which can be referred to the corresponding description in the foregoing method embodiments. For the convenience and brevity of description, it will not be repeated here.
[0081] The above-mentioned device for reducing LBS positioning track point drift can be realized in the form of a computer program, which can run on a computer device as shown in Figure 3 .
[0082] Please refer to Figure 3 , Figure 3 is a schematic block diagram of a computer device provided by an embodiment of the present application; the computer device 500 can be a terminal or a server, wherein the terminal can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, a wearable device, and an electronic device with a communication function. The server can be a stand-alone server or a server cluster composed of multiple servers.
[0083] Please refer to Figure 3 , the computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501, wherein the memory can include a non-volatile storage medium 503 and an internal memory 504.
[0084] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, which when executed, can cause the processor 502 to perform a method for reducing LBS positioning track point drift.
[0085] The processor 502 is configured to provide computing and control capabilities to support the operation of the entire computer device 500.
[0086] The memory 504 provides an environment for running the computer program 5032 in the nonvolatile storage medium 503, which, when executed by the processor 502, enables the processor 502 to perform a method for reducing drift of LBS positioning track points.
[0087] The network interface 505 is configured to perform network communication with other devices. Figure 3 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device 500 to which the scheme of the present application is applied. The specific computer device 500 can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0088] The processor 502 is configured to run the computer program 5032 stored in the memory to perform the following steps:
[0089] Collecting position data, i.e. first position data, at the acquisition device end and uploading the first position data to a server to form a test library; obtaining longitude and latitude information corresponding to the first position data returned by the test library; performing calculation and verification on the longitude and latitude information to obtain a verification value; uploading the first position data to an LBS database of the server; obtaining longitude and latitude information corresponding to the first position data, i.e. query data, by querying the LBS database; performing result calculation on the query data to obtain a result value; comparing the result value with the verification value; and if the difference between the two values is within a set threshold, displaying the result value on an interface.
[0090] It should be understood that, in the embodiments of the present application, the processor 502 can be a central processing unit (CPU), and the processor 502 can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.
[0091] Those skilled in the art can understand that all or part of the processes in the method of the above-mentioned embodiments can be completed by instructing the relevant hardware by a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer readable storage medium. The program instructions are executed by at least one processor in the computer system to realize the process steps of the above-mentioned embodiments of the method.
[0092] Therefore, the present application also provides a storage medium. The storage medium can be a computer readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions, and the program instructions can realize the above-mentioned method for reducing the drift of LBS positioning track points when executed by a processor. The storage medium stores a computer program, and the computer program includes program instructions, and the program instructions can realize the above-mentioned method when executed by a processor. The program instructions include the following steps:
[0093] The position data of the acquisition device end, i.e. the first position data, is uploaded to the server to form a test library; the longitude and latitude information corresponding to the first position data returned by the test library is obtained; the longitude and latitude information is calculated and verified to obtain a verification value; the first position data is uploaded to the LBS database of the server; the longitude and latitude information corresponding to the first position data is obtained, i.e. the query data; the result value is obtained by calculating the result of the query data; the result value is compared with the verification value; if the difference between the two is within a set threshold, the result value is displayed on the interface.
[0094] The storage medium can be a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, and various computer readable storage media that can store program codes.
[0095] Those skilled in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized by electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been described in general terms in the above description. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0096] In several embodiments provided by the present application, it should be understood that the disclosed apparatus and method can be implemented in other manners. For example, the embodiments of the apparatus described above are merely schematic. For example, the division of the units is merely a logical function division. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In this way, the inventive idea of the present application can be implemented.
[0097] The steps in the method embodiments of the present application can be executed in sequence, combined, or deleted according to actual needs. The units in the apparatus embodiments of the present application can be combined, divided, or deleted according to actual needs. In addition, each functional unit in each embodiment of the present application can be integrated in a processing unit, or each unit can exist alone physically, or two or more units can be integrated in one unit.
[0098] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on such an understanding, the technical solutions of the present application essentially, or the part that contributes to the prior art, or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which can be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
[0099] The above embodiments are preferred implementation solutions of the present application. In addition to the above, the present application can also be implemented in other manners, and any obvious replacements without departing from the technical solution concept of the present application are within the protection scope of the present application.
Claims
1. A method for reducing LBS positioning track point drift, characterized in that: The following steps are involved: S1, collecting location data of the device end, i.e., first location data, and uploading the first location data to the server. The server extracts the base station and latitude and longitude information from the first location data and stores them to form a verification library; S2, obtaining the latitude and longitude information corresponding to the first location data returned by the inspection library; S3, calculating and verifying the latitude and longitude information to obtain a verification value; The step of calculating and verifying the longitude and latitude information to obtain a verification value includes: grouping the longitude and latitude information based on similarity, extracting a group with the most data from multiple groups, and performing a weighted average operation on the data in the group in combination with signal strength to obtain a verification value; Specifically, when performing LBS positioning, the device reports two pieces of information: base station information and Wi-Fi information. By extracting the reported base station information, the corresponding data is obtained from the verification library, including multiple data items. The data content is the base station and its latitude and longitude. A verification value is calculated using a clustering algorithm. That is, the multiple data items are grouped, and the group with the most data items is taken. The data in this group is then weighted averaged in combination with the signal strength to obtain the verification value. S4, uploading the first location data to the LBS database of the server; S5, obtaining the longitude and latitude information corresponding to the first location data from the LBS database, i.e., query data; S6, performing result calculation on the query data, i.e., performing the same calculation as step S3 on the query data to obtain the result value; S7, compare the result value with the check value; if the difference between the two is within the set threshold, the result value is displayed on the interface; if the difference between the two is outside the set threshold, the longitude and latitude information corresponding to the first location data returned by the server is deleted, and the check value corresponding to the longitude and latitude information in the LBS database is cleared, and then the longitude and latitude data of the device end is obtained through a third-party LBS manufacturer, and the longitude and latitude data is refreshed and stored in the LBS database.
2. A device for reducing LBS positioning track point drift, characterized in that: include: Collection and uploading unit, first acquisition unit, first calculation unit, upload unit, second acquisition unit, second calculation unit and comparison unit; The collection and uploading unit is used to collect the location data of the device end, that is, the first location data, and upload the first location data to the server. The server extracts the base station and longitude and latitude information in the first location data and stores them to form a verification library; The first acquiring unit is configured to acquire the longitude and latitude information corresponding to the first location data returned by the inspection library; The first calculation unit is used to calculate and verify the latitude and longitude information to obtain a verification value; In the first calculation unit, the longitude and latitude information is grouped based on similarity, a group with the most data is extracted from the multiple groups, and a weighted average operation is performed on the data in the group in combination with the signal strength to obtain a check value; Specifically, when performing LBS positioning, the device reports two pieces of information: base station information and Wi-Fi information. By extracting the reported base station information, the corresponding data is obtained from the verification library, including multiple data items. The data content is the base station and its latitude and longitude. A verification value is calculated using a clustering algorithm. That is, the multiple data items are grouped, and the group with the most data items is taken. The data in this group is then weighted averaged in combination with the signal strength to obtain the verification value. The uploading unit is configured to upload the first location data to an LBS database of the server; The second acquisition unit is used to obtain the longitude and latitude information corresponding to the first location data queried from the LBS database, that is, the query data; The second calculation unit is used to perform result calculation on the query data, that is, to apply the same calculation as in the first calculation unit to the query data to obtain a result value; The comparison unit is used to compare the result value with the check value; If the difference between the two is within the set threshold, the result value will be displayed on the interface; if the difference between the two is outside the set threshold, the latitude and longitude information corresponding to the first location data returned by the server will be deleted, and the verification value corresponding to the latitude and longitude information in the LBS database will be cleared. Then, the latitude and longitude data on the device side will be obtained through a third-party LBS manufacturer, and the latitude and longitude data will be refreshed and stored in the LBS database.
3. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method for reducing LBS positioning trajectory point drift as claimed in claim 1 when executing the computer program.
4. A storage medium, characterized in that The storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, the method for reducing LBS positioning trajectory point drift as claimed in claim 1 is implemented.
Citation Information
Patent Citations
LBS locating deviation-rectifying filtering technology
CN102761959A