A processing method for improving positioning stability and accuracy based on three positioning engines
Through the collaborative positioning of the three positioning engines, the optimal positioning result is selected based on the positioning method, accuracy and time priority, which solves the problems of Android phone positioning engine in model fragmentation, API bugs and untimely data updates, and achieves a higher positioning accuracy and stability.
Patent Information
- Application Number
- CN202411021178.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-29
AI Technical Summary
The problems of existing Android phone positioning engines include model fragmentation, background API bugs, untimely positioning data updates, and insufficient coverage, resulting in poor positioning accuracy and stability, especially large deviations in positioning coordinates across provinces and cities.
Using the three positioning engine collaborative positioning method, coordinate points are obtained through the three positioning engines of AutoNavi, Baidu, and Tencent, the distance and error range are calculated, and the optimal positioning result is selected based on the positioning method, accuracy and time priority, and the positioning result is selected based on the movement speed and Trust the judgment of coordinate points and select the final positioning coordinate points to improve positioning accuracy and stability.
It significantly reduces the positioning failure rate and error rate, improves the accuracy and stability of positioning, enhances the accuracy of cross-province and cross-city positioning, and reduces positioning defect problems.
Smart Images

Figure CN118574074B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of positioning technology, and particularly relates to a processing method for improving positioning stability and accuracy based on three positioning engines. Background Art
[0002] The main domestic positioning service providers are: AutoNavi, Baidu, and Tencent. Each service provider has its own positioning data. The data collection and cleaning algorithms are different and there are certain differences. At the same time, the coverage rate of each service provider's positioning data in China cannot reach 100%, and there will always be some blind spots. At present, the positioning capability of Android phones is generally provided by a single positioning engine (one of AutoNavi, Baidu, or Tencent). The positioning capability of the positioning engine mainly relies on the mobile device's WIFI, base station, GPS, and the positioning data (coordinate information and address information) of the positioning service provider's own background. However, there are currently the following shortcomings: (1) Due to the serious fragmentation of Android phone models, the positioning engine SDK may not work properly on some models; (2) Due to bugs in the positioning service provider's background positioning API service, normal positioning cannot be performed; (3) Due to the positioning service provider's untimely update of positioning data, incorrect coordinate information is obtained, such as place name changes, WIFI transfer, etc.; (4) The positioning data is incomplete, resulting in missing positioning information; (5) Positioning coordinates often cross provinces and cities, with large deviations. Summary of the Invention
[0003] The present invention provides a processing method for improving positioning stability and accuracy based on three positioning engines, wherein the method comprises the following steps:
[0004] (1) Start the three positioning engines and calculate the distances between the Amap coordinate point, the Baidu coordinate point, and the Tencent coordinate point;
[0005] (2) Extract the two coordinate points with the shortest coordinate distance, compare them according to the positioning method, positioning accuracy and / or positioning time priority, and extract the final coordinate point;
[0006] (3) Determine the final coordinate point and push it to the user if it meets the preset conditions;
[0007] (4) If the final coordinate point is within the set range, the final coordinate point will be stored as the trusted coordinate.
[0008] Furthermore, the method further comprises:
[0009] (5) When two positioning coordinate points are generated by Amap, Baidu and Tencent, the moving speed of the two coordinate points and the time difference between the positioning of the trust coordinate point are calculated;
[0010] (6) Determine the moving speed of the two coordinate points respectively;
[0011] (7) Compare the weights of the two coordinate points, compare them according to the positioning method, positioning accuracy and / or positioning time priority, and determine the final coordinate point to be used.
[0012] Furthermore, the step (1) includes turning on positioning, starting the three positioning engines, and calculating the distances between the positioning coordinate points of the AutoNavi positioning engine, the positioning coordinate points of the Baidu positioning engine, and the positioning coordinate points of the Tencent positioning engine, wherein the error ranges between the positioning coordinate points of the AutoNavi positioning engine and the positioning coordinate points of the Baidu positioning engine, the positioning coordinate points of the Baidu positioning engine and the positioning coordinate points of the Tencent positioning engine, and the positioning coordinate points of the AutoNavi positioning engine and the positioning coordinate points of the Tencent positioning engine are set to be 1500 meters.
[0013] Furthermore, the step (2) includes:
[0014] (2-1) Extract the two coordinate points with the shortest coordinate distance among the three coordinate points and exclude the farthest coordinate point;
[0015] (2-2) Comparing the positioning methods, positioning accuracy and / or positioning time priority of the two extracted coordinate points;
[0016] (2-3) Extract the positioning results with high accuracy and close time as the final coordinate points.
[0017] Furthermore, the step (3) includes forming a triangle with the three coordinate points of the positioning coordinate point of the AutoNavi positioning engine, the positioning coordinate point of the Baidu positioning engine and the positioning coordinate point of the Tencent positioning engine. When the side length distance between the positioning coordinate point of the AutoNavi positioning engine and the positioning coordinate point of the Baidu positioning engine is greater than the error range, the side length distance between the positioning coordinate point of the Baidu positioning engine and the positioning coordinate point of the Tencent positioning engine is greater than the error range, or the side length distance between the positioning coordinate point of the AutoNavi positioning engine and the positioning coordinate point of the Tencent positioning engine is greater than the error range, if one of the conditions is met, the coordinate point finally adopted is directly provided to the user as the final data.
[0018] Furthermore, the step (3) further includes forming a triangle with the positioning coordinate points of the AutoNavi positioning engine, the positioning coordinate points of the Baidu positioning engine, and the positioning coordinate points of the Tencent positioning engine. When the side length distance between the positioning coordinate points of the AutoNavi positioning engine and the positioning coordinate points of the Baidu positioning engine is less than or equal to the error range, the side length distance between the positioning coordinate points of the Baidu positioning engine and the positioning coordinate points of the Tencent positioning engine is less than or equal to the error range, or the side length distance between the positioning coordinate points of the AutoNavi positioning engine and the positioning coordinate points of the Tencent positioning engine is less than or equal to the error range, then the three positioning data are all within the set range, the coordinate points finally adopted are stored as trusted coordinates, and the weight of the positioning engine that generates the positioning result is increased by 1.
[0019] Furthermore, the step (6) includes judging the movement rates of the two coordinate points obtained by calculation respectively, excluding the coordinate points with abnormal movement rates, and using the remaining coordinate points as the final adopted coordinate points.
[0020] Furthermore, the step (7) includes comparing the weights of the two coordinate points when the moving rates of the two coordinate points are both within a preset range, comparing the results of the two coordinate points according to the positioning method, positioning accuracy and / or positioning time priority, and outputting the coordinate point finally adopted as the final result.
[0021] Beneficial effects:
[0022] In order to greatly reduce the positioning failure rate and positioning errors, the present invention adopts a solution of collaborative positioning of multiple positioning engines. When applying positioning, three positioning engines (AutoNavi positioning engine, Baidu positioning engine and Tencent positioning engine) are simultaneously opened, positioning coordinate points are obtained from each positioning engine, and the distance between the coordinate points returned by each positioning engine is calculated. Based on the preset error range, positioning accuracy, positioning time and positioning method, the optimal positioning result is selected through calculation, which greatly reduces the defects that may occur during positioning.
[0023] It should be understood that the above general description and the following detailed description are only exemplary and illustrative and do not limit the scope of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 The present invention is a flowchart of a processing method for improving positioning stability and accuracy based on three positioning engines.
[0025] It should be understood that the drawings are not necessarily drawn to scale, presenting a somewhat simplified representation of various features illustrative of the basic principles of the present disclosure. The specific design features of the present invention as disclosed herein, including, for example, specific dimensions, orientations, positions, and shapes will be determined in part by the particular intended application and use environment. DETAILED DESCRIPTION
[0026] Reference will now be made in detail to various embodiments of the present invention, examples of which are illustrated in the accompanying drawings and described below. Although the present invention will be described in conjunction with exemplary embodiments of the present invention, it should be understood that this description is not intended to limit the present invention to those exemplary embodiments. On the other hand, the present invention is intended to cover not only the exemplary embodiments of the present invention, but also various alternatives, modifications, equivalents and other embodiments, which may be included within the spirit and scope of the present invention as defined by the appended claims.
[0027] Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. The specific structures and functions described in the exemplary embodiments of the present invention are for illustrative purposes only. The embodiments according to the concepts of the present invention may be implemented in various forms, and it should be understood that they should not be interpreted as being limited to the exemplary embodiments described in the exemplary embodiments, but include all modifications, equivalents or alternatives included in the spirit and scope of the present invention.
[0028] Throughout the specification, the technical terms used herein are for the purpose of describing various exemplary embodiments only and are not intended to be limiting. It will be further understood that the terms "comprises," "comprising," "having," etc., when used in exemplary embodiments, specifically refer to the presence of the stated parts, steps, operations, or elements, but do not preclude the presence or addition of one or more other parts, steps, operations, or elements.
[0029] In order to greatly reduce the positioning failure rate and positioning errors, the present invention selects a solution of collaborative positioning of multiple positioning engines; when applying positioning, three positioning engines (AutoNavi Positioning, Baidu Positioning, and Tencent Positioning) are simultaneously turned on, and the optimal positioning result is obtained through a specific algorithm, which greatly reduces the defects that may occur during positioning.
[0030] like Figure 1 As shown, the present invention provides a processing method for improving positioning stability and accuracy based on three positioning engines. The three positioning engines are AutoNavi positioning engine, Baidu positioning engine and Tencent positioning engine. When positioning is enabled using the present invention, each positioning engine will return a coordinate point, and the positioning coordinate point is obtained from each positioning engine, wherein,
[0031] G = positioning coordinate point of AutoNavi positioning engine;
[0032] B = Baidu positioning engine's positioning coordinate point;
[0033] T = the positioning coordinate point of Tencent positioning engine;
[0034] Result = the final coordinate point (any one of G, B, T);
[0035] GB = the positioning coordinates of the AutoNavi positioning engine and the Baidu positioning engine (unit: meters);
[0036] BT = the positioning coordinates of the Baidu positioning engine and the Tencent positioning engine (unit: meters);
[0037] GT = the positioning coordinates of the AutoNavi positioning engine and the Tencent positioning engine (unit: meters);
[0038] A (Accuracy) = Positioning accuracy within a reasonable range of 1500 meters. Since the positioning engine coordinates include accuracy (GPS accuracy is 10-50 meters, Wi-Fi accuracy is 10-100 meters, and base station accuracy is 500-1500 meters), the maximum value is taken.
[0039] LoctionTime=Location time. The coordinate data of G, B, and T all contain the location time of the positioning result.
[0040] LoctionAccuracy = Positioning accuracy. The coordinate data of G, B, and T all contain the positioning accuracy of the positioning results, in meters.
[0041] LoctionMode=Location mode: GPS, WIFI, Base Station (priority: GPS>WIFI>Base Station)
[0042] W (weight) = the weight of the positioning engine used (weight + 1 when G, B, and T all have values and GB<=A, BT<=A, and GT<=A are used for positioning);
[0043] R = Trusted coordinates (when G, B, T all have values, and GB <= A, BT <= A, GT <= A, the output positioning result Result will be stored as a trusted reference object coordinate);
[0044] GR, BR, TR = the distances between Amap, Baidu, Tencent and the trust coordinates, respectively.
[0045] The method of the present invention comprises:
[0046] (1) Start the three positioning engines and calculate the distances between the Amap coordinate point, the Baidu coordinate point, and the Tencent coordinate point;
[0047] Enable positioning and start the three positioning engines. When all three positioning engines successfully locate the location, calculate the distances between the positioning coordinate points of the AutoNavi positioning engine (G), the Baidu positioning engine (B), and the Tencent positioning engine (T). Assume that the error range (A) between the positioning coordinate points of the AutoNavi positioning engine and the Baidu positioning engine (GB), the positioning coordinate points of the Baidu positioning engine and the Tencent positioning engine (BT), and the positioning coordinate points of the AutoNavi positioning engine and the Tencent positioning engine (GT) are 1500 meters.
[0048] (2) Extract the two positioning coordinate points with the shortest coordinate distance, compare them according to the positioning method, positioning accuracy and / or positioning time priority, and extract the final coordinate point;
[0049] The positioning coordinate points of the AutoNavi positioning engine (G), Baidu positioning engine (B), and Tencent positioning engine (T) form a triangle. The values of the positioning coordinate points of the AutoNavi positioning engine and Baidu positioning engine (GB), Baidu positioning engine and Tencent positioning engine (BT), and AutoNavi positioning engine and Tencent positioning engine (GT) are compared using the Min(GB, BT, GT) method to obtain the minimum value. The two positioning coordinate points with the shortest coordinate distance are extracted, and the farthest positioning coordinate point is excluded. The remaining two positioning coordinate points are then compared based on the priority order of Location Mode > Location Accuracy > Location Time. The positioning result with the higher accuracy and the closer time is selected as the final coordinate point (Result).
[0050] (3) Determine the final coordinate point and push it to the user if it meets the preset conditions;
[0051] The positioning coordinate points of the AutoNavi positioning engine, the Baidu positioning engine, and the Tencent positioning engine form a triangle. If one of the following conditions is met: the side length distance between the AutoNavi positioning engine's and the Baidu positioning engine's is greater than the error range (GB>A), the side length distance between the Baidu positioning engine's and the Tencent positioning engine's is greater than the error range (BT>A), or the side length distance between the AutoNavi positioning engine's and the Tencent positioning engine's is greater than the error range (GT>A), the final coordinate point (Result) is directly provided to the user as the final data.
[0052] (4) If the final coordinate point is within the set range, the final coordinate point will be stored as the trusted coordinate;
[0053] The positioning coordinate points of the AutoNavi positioning engine, the Baidu positioning engine and the Tencent positioning engine form a triangle. When the side length distance between the AutoNavi positioning engine and the Baidu positioning engine is less than or equal to the error range (GB≤A), the side length distance between the Baidu positioning engine and the Tencent positioning engine is less than or equal to the error range (BT≤A), or the side length distance between the AutoNavi positioning engine and the Tencent positioning engine is less than or equal to the error range (GT≤A), it means that the three positioning data are all within the set range. At this time, the final positioning coordinate point (Result) outputted in step (2) is retained as the trust coordinate (R), and the weight W of the positioning engine that generates the positioning result is increased by 1 (for example: W G ), due to mobile phone compatibility issues, some positioning engines may not be fully adapted to certain Android models, resulting in poor positioning accuracy. The weight strategy is used to select the positioning engine that best suits the mobile phone, thereby improving positioning quality.
[0054] (5) When two positioning points are generated by Amap, Baidu and Tencent, the moving speed of the two positioning points and the time difference between the positioning of the trust point are calculated;
[0055] When only two of the three positioning engines are successful, and only G, B (or B, T or G, T) coordinates have values, the trusted coordinate (R) is used as the reference coordinate point to form three positioning coordinate points for triangulation comparison; the moving speed V of the two positioning coordinate points is calculated. G =GR / T,V B =BR / T, T is the time difference between the positioning of (G, B) and R coordinate points;
[0056] Among them, the trust coordinate (R) is only used as a comparison object, GR, BR, TR = the distance between Amap, Baidu, Tencent and the trust coordinate respectively.
[0057] (6) Determine the moving speed of the positioning coordinate points respectively;
[0058] The moving speeds of the two calculated positioning coordinate points are judged respectively, and the positioning coordinate points with abnormal moving speeds are excluded, and the remaining positioning coordinate points are used as the final coordinate points;
[0059] The two positioning coordinate points (V G , V B )'s moving speed is judged respectively, and V G , V BIs it within the preset range, for example: reasonable rate: V 步= The maximum walking speed is 6 km / h, V 电 = The maximum speed of an electric bicycle is 50 km / h, V 车 =The maximum driving speed is 120 km / h.
[0060] If the moving speed of a certain positioning coordinate point is abnormal, the positioning coordinate point corresponding to the abnormal moving speed is excluded, and the remaining positioning coordinate points are used as the final result, and the final coordinate point (Result) is output.
[0061] (7) Compare the weights of the two positioning coordinate points, compare them according to the positioning method, positioning accuracy and / or positioning time priority, and determine the final coordinate point to be adopted;
[0062] The moving speeds of the two positioning coordinate points are both within the preset range. Compare the weights W of the two positioning coordinate points. G and W B , by Max(W G, W B ) obtains the positioning result with the highest weight, if W G= W B When the positioning accuracy is 0, the results of the two are compared according to the priority of Loction Mode > Loction Accuracy > Loction Time, and the final coordinate point is output as the final result.
[0063] The above-mentioned embodiments of the present application can be implemented in various hardware, software coding, or a combination of the two. For example, the embodiments of the present application can also represent program code for executing the above-mentioned method in a digital signal processor. The present application can also relate to various functions performed by a computer processor, a digital signal processor, a microprocessor, or a field programmable gate array. The above-mentioned processor can be configured according to the present application to perform specific tasks, which are completed by executing machine-readable software code or firmware code that defines the specific methods disclosed in the present application. The software code or firmware code can be developed to represent different programming languages and different formats or forms. It can also represent different target platform compiled software code. However, the different code styles, types, and languages of the software code for performing tasks according to the present application and other types of configuration code do not depart from the spirit and scope of the present application.
[0064] The foregoing description of specific exemplary embodiments of the present invention has been presented for purposes of illustration and description. It is not intended to exclude or limit the invention to the precise forms disclosed, and it is apparent that many modifications and variations are possible in light of the above teachings. The exemplary embodiments have been selected and described to explain certain principles of the present invention and their practical applications so as to enable others skilled in the art to make or utilize the various exemplary embodiments of the present invention, and various alternatives and modifications thereof. It is intended that the scope of the present invention be defined by the claims appended hereto and their equivalents.
[0065] It will be understood that the above embodiments are merely exemplary embodiments for illustrating the principles of the present invention, and the present invention is not limited thereto. Those skilled in the art will appreciate that various modifications and improvements can be made without departing from the spirit and substance of the present invention, and such modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A processing method for improving positioning stability and accuracy based on three positioning engines, characterized in that: The method comprises the following steps: (1) Start the three positioning engines and calculate the distances between the Amap coordinate point, the Baidu coordinate point, and the Tencent coordinate point; (2) Extract the two coordinate points with the shortest coordinate distance, compare them according to the priority of positioning method > positioning accuracy > positioning time, and extract the final coordinate point; (2-1) Extract the two coordinate points with the shortest coordinate distance among the three coordinate points and exclude the farthest coordinate point; (2-2) Compare the priorities of positioning method > positioning accuracy > positioning time of the two extracted coordinate points; (2-3) Extract the positioning results with high accuracy and close time as the final coordinate points; (3) Determine the final coordinate point and push it to the user if it meets the preset conditions; (4) If the final coordinate point is within the set range, the final coordinate point is stored as the trusted coordinate; (5) When only two of the three positioning engines are successful, the trusted coordinates are used as reference coordinate points to form three positioning coordinate points. A triangulation comparison is performed to calculate the moving speed of the two coordinate points and the time difference between the positioning of the trusted coordinate point. (6) Determine the moving speed of the two coordinate points respectively; (7) Compare the weights of the two coordinate points, and compare them according to the priority of positioning method > positioning accuracy > positioning time to determine the final coordinate point; The step (1) includes starting positioning, starting the three positioning engines, and calculating the distances between the positioning coordinate points of the AutoNavi positioning engine, the positioning coordinate points of the Baidu positioning engine, and the positioning coordinate points of the Tencent positioning engine, wherein the error range between the positioning coordinate points of the AutoNavi positioning engine and the positioning coordinate points of the Baidu positioning engine, the positioning coordinate points of the Baidu positioning engine and the positioning coordinate points of the Tencent positioning engine, and the positioning coordinate points of the AutoNavi positioning engine and the positioning coordinate points of the Tencent positioning engine is set to be 1500 meters; Wherein, the step (3) includes forming a triangle with the three coordinate points of the positioning coordinate point of the AutoNavi positioning engine, the positioning coordinate point of the Baidu positioning engine and the positioning coordinate point of the Tencent positioning engine. When the side length distance between the positioning coordinate point of the AutoNavi positioning engine and the positioning coordinate point of the Baidu positioning engine is greater than the error range, the side length distance between the positioning coordinate point of the Baidu positioning engine and the positioning coordinate point of the Tencent positioning engine is greater than the error range, or the side length distance between the positioning coordinate point of the AutoNavi positioning engine and the positioning coordinate point of the Tencent positioning engine is greater than the error range, if one of the conditions is satisfied, the coordinate point finally adopted is directly provided to the user as the final data; Wherein, the step (3) further includes forming a triangle with the three coordinate points of the positioning coordinate points of the AutoNavi positioning engine, the positioning coordinate points of the Baidu positioning engine and the positioning coordinate points of the Tencent positioning engine. When the side length distance between the positioning coordinate points of the AutoNavi positioning engine and the positioning coordinate points of the Baidu positioning engine is less than or equal to the error range, the side length distance between the positioning coordinate points of the Baidu positioning engine and the positioning coordinate points of the Tencent positioning engine is less than or equal to the error range, or the side length distance between the positioning coordinate points of the AutoNavi positioning engine and the positioning coordinate points of the Tencent positioning engine is less than or equal to the error range, the three positioning data are all within the set range, the coordinate points finally adopted are stored as trusted coordinates, and the weight of the positioning engine that generates the positioning result is increased by 1.
2. According to claim 1, a processing method for improving positioning stability and accuracy based on three positioning engines is characterized in that: The step (6) includes judging the movement speeds of the two coordinate points obtained by calculation respectively, eliminating the coordinate points with abnormal movement speeds, and using the remaining coordinate points as the final adopted coordinate points.
3. According to claim 1, a processing method for improving positioning stability and accuracy based on three positioning engines is characterized in that: The step (7) includes comparing the weights of the two coordinate points when the moving speeds of the two coordinate points are both within a preset range, comparing the results of the two coordinate points according to the priority of positioning mode > positioning accuracy > positioning time, and outputting the coordinate point finally adopted as the final result.
