An algorithm for correcting the latitude and longitude of original GPS data

Through a longitude and latitude correction algorithm based on original GPS data, it solves the problem of high correction cost in domestic vehicle positioning, achieves efficient and accurate GPS positioning, supports the conversion of multiple platforms and mainstream maps, and provides a faster positioning experience and Lower error.

CN113064187BActive Publication Date: 2024-08-27COLORFUL GUIZHOU IMPRESSION NETWORK MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110371350.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-07
Publication Date
2024-08-27
Estimated Expiration
2041-04-07

AI Technical Summary

Technical Problem

The existing technology relies on the correction technology of Baidu or Amap in domestic vehicle positioning, resulting in inconvenient development and cost, and lacks an efficient longitude and latitude correction algorithm based on original GPS data.

Method used

Using an algorithm based on original GPS data for latitude and longitude correction, by calculating the earth's latitude coordinates and related map protocol conversion, combined with GIS map projection and WGS84 ellipsoid parameters, the latitude and longitude offset is calculated to achieve accurate GPS data correction, and supports multiple Platform code porting.

Benefits of technology

It achieves high-precision, low memory usage, and fast-response GPS positioning, supports longitude and latitude conversion of mainstream maps, shortens calculation running time, and provides a faster positioning experience and lower errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0003009425840000021
    Figure BDA0003009425840000021
  • Figure BDA0003009425840000022
    Figure BDA0003009425840000022
  • Figure BDA0003009425840000023
    Figure BDA0003009425840000023
Patent Text Reader

Abstract

The present invention discloses an algorithm based on the correction capability of the longitude and latitude of original GPS data, which combines the study of the longitude and latitude of the earth, calculates the latitude coordinates of the earth, calculates the original GPS data reported by the equipment, and realizes that the GPS data can be accurately positioned on the mainstream map. The longitude and latitude of the earth are calculated using strict mathematical and physical calculation methods, and corresponding conversion is performed according to the protocol of the relevant map. The conversion process has the advantages of high program calculation efficiency, high conversion accuracy, low fault tolerance, etc., and less memory is occupied during calculation, and the request response is fast.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of GPS positioning information analysis of electronic information software, performs analysis based on original GPS data, performs deviation correction and positioning on domestic mainstream maps, and specifically relates to a deviation correction capability algorithm based on the latitude and longitude of original GPS data. Background Art

[0002] In recent years, the fields of domestic intelligent vehicle management, vehicle positioning, vehicle track recording, electronic fences, etc. have developed rapidly like bamboo shoots after spring rain. Vehicle-mounted electronic GPS devices have developed rapidly one after another, and software has also ushered in severe challenges. It is necessary not only to realize the combination of hardware and software, but also to ensure that the software can accurately analyze the information of the hardware and combine big data to analyze vehicle information to ensure the driving safety of the vehicle. The software will perform functions such as vehicle cost statistics, vehicle positioning, vehicle mileage, and electronic fences. However, at present, vehicle positioning in China requires the use of Baidu and AutoNavi maps, and the current equipment feedback is the original GPS positioning information. To achieve accurate positioning on the map, it is necessary to use Baidu or AutoNavi's correction technology, and the use of these technologies requires a lot of expenses to support. This brings inconvenience to development and cost. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a latitude and longitude correction algorithm based on original GPS data with high conversion accuracy, low fault tolerance, small memory usage during calculation and fast request response.

[0004] The technical solution of the present invention is: an algorithm based on the latitude and longitude correction capability of original GPS data, characterized by: including calculating the latitude coordinates of the earth, calculating the original GPS data reported by the device, and realizing that the GPS data can be accurately positioned on the mainstream map;

[0005] Calculate the longitude and latitude of the earth and convert them accordingly according to the protocol of the relevant map;

[0006] Specifically, the original GPS data correction calculation steps are:

[0007] Step 1: After obtaining the original GPS location information, the system first determines whether the location is domestic or foreign. The judgment is based on whether the location is within the latitude and longitude of the north-south boundary and the east-west boundary of the country. If it is within, it is domestic; if it is outside, it is entered as foreign.

[0008] Step 2: Process the classified data accordingly. If it is domestic, the system will convert it to Baidu map coordinates or Amap coordinates as needed. If it is foreign, the system will use Google map by default without coordinate conversion.

[0009] The third step: GIS map projection, my country's basic scale topographic maps: 1:5000, 1:10000, 1:25000, 1:50000, 1:100000, 1:250000, 1:500000, 1:1000000, greater than or equal to 500000 use Gauss-Krüger projection, also known as Transverse Mercator projection, and less than 500000 use the Conformal Conic projection, also known as Lambert projection; my country's basic scale topographic map; WGS84 ellipsoid, the system mainly uses its parameters, including the major semiaxis: 6378137, the minor semiaxis: 6356752.3142, the skewness: 298.257224; Next, the GPS satellite ellipsoid coordinates are projected onto the plane map coordinate system, with the WGS84 major semiaxis as the projection factor.

[0010] More specifically, the elliptical eccentricity of the earth is: 0.00669342162296594323, and the calculation is as follows:

[0011] Sqrt: Calculates the square root and finds the first eccentricity of the Earth's ellipse.

[0012] Step 1: Calculate the eccentricity of the earth's ellipse;

[0013]

[0014] Step 2: Calculate the plane coordinate offset of the original GPS longitude relative to the domestic map longitude;

[0015]

[0016] Step 3: Calculate the plane coordinate offset of the original GPS dimension relative to the domestic map dimension;

[0017]

[0018] Step 4: Calculate the offset of longitude and latitude in the earth coordinates according to the eccentricity;

[0019]

[0020] Step 5. Add the offset to the original GPS data to get the corrected GPS data. Put the GPS data into Amap for testing. Make a judgment based on the current position. The positioning is accurate with an error within 5 meters.

[0021] Compared with the prior art, the beneficial effects of the present invention are:

[0022] 1. Supports code porting for Linux, macOS, iOS, Android, and Windows. The calculation takes up little memory, has high calculation efficiency, and accurate calculation results. It supports latitude and longitude conversion of mainstream maps.

[0023] 2. Adopting the independently developed GPS positioning algorithm, the algorithm is optimized, the calculation running time is greatly shortened, and the GPS positioning information can be converted unlimited times.

[0024] 3. Efficient GPS conversion provides users with a better experience when opening the map to view vehicle positioning information. The map opens quickly and the positioning is accurate. DETAILED DESCRIPTION

[0025] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] An algorithm based on the latitude and longitude correction capability of original GPS data, characterized by: including calculating the earth's latitude coordinates, calculating the original GPS data reported by the device, and realizing that the GPS data can be accurately positioned on the mainstream map;

[0027] Calculate the longitude and latitude of the earth and convert them accordingly according to the protocol of the relevant map;

[0028] The original GPS data correction calculation steps are as follows:

[0029] Step 1: After obtaining the original GPS location information, the system first determines whether the location is domestic or foreign. The judgment is based on whether the location is within the latitude and longitude of the north-south boundary and the east-west boundary of the country. If it is within, it is domestic; if it is outside, it is entered as foreign.

[0030] Step 2: Process the classified data accordingly. If it is domestic, the system will convert it to Baidu map coordinates or Amap coordinates as needed. If it is foreign, the system will use Google map by default without coordinate conversion.

[0031] Step 3: GIS map projection. my country's basic scale topographic maps are: 1:5000, 1:10000, 1:25000, 1:50000, 1:100000, 1:250000, 1:500000, 1:1000000. Maps with a scale greater than or equal to 500000 use the Gauss-Krüger projection, also known as the Transverse Mercator projection, while maps with a scale less than 500000 use the Conformal Conic projection, also known as the Lambert projection. my country's basic scale topographic map; WGS84 ellipsoid, the system mainly uses its parameters, including the major semi-axis: 6378137, the minor semi-axis: 6356752.3142, and the eccentricity: 298.257224; then project the GPS satellite ellipsoid coordinates onto the plane map coordinate system, using the WGS84 major semi-axis as the projection factor, and the ellipse eccentricity of the earth is: 0.00669342162296594323, the calculation is shown as follows:

[0032] Sqrt: Calculates the square root and finds the first eccentricity of the Earth's ellipse.

[0033] Step 1: Calculate the eccentricity of the earth's ellipse;

[0034]

[0035] Step 2: Calculate the plane coordinate offset of the original GPS longitude relative to the domestic map longitude;

[0036]

[0037] Step 3: Calculate the plane coordinate offset of the original GPS dimension relative to the domestic map dimension;

[0038]

[0039] Step 4: Calculate the offset of longitude and latitude in the earth coordinates according to the eccentricity;

[0040]

[0041] Step 5. Add the offset to the original GPS data to get the corrected GPS data. Put the GPS data into Amap for testing. Make a judgment based on the current position. The positioning is accurate with an error within 5 meters.

[0042] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes the embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well.

Claims

1. An algorithm for correcting the latitude and longitude of original GPS data, characterized by: This includes calculating the earth's latitude coordinates, calculating the original GPS data reported by the device, and enabling GPS data to be accurately located on mainstream maps; Calculate the longitude and latitude of the earth and convert them accordingly according to the protocol of the relevant map; The original GPS data correction calculation steps are as follows: Step 1: After obtaining the original GPS location information, the system first determines whether the location is domestic or foreign. The judgment is based on whether the location is within the latitude and longitude of the north-south boundary and the east-west boundary of the country. If it is within, it is domestic; if it is outside, it is entered as foreign. Step 2: Process the classified data accordingly. If it is domestic, the system will convert it to Baidu map coordinates or Amap coordinates as needed. If it is foreign, the system will use Google map by default without coordinate conversion. Step 3: GIS map projection, my country's basic scale topographic maps: 1:5000, 1:10000, 1:25000, 1:50000, 1:100000, 1:250000, 1:500000, 1:1000000, greater than or equal to 500000 adopt Gauss-Krüger projection, also known as Transverse Mercator projection, and less than 500000 topographic maps adopt the Orthogonal Conformal Conic projection, also known as Lambert projection; my country's basic scale topographic map; WGS84 ellipsoid, the system mainly uses its parameters, including major semi-axis: 6378137, minor semi-axis: 6356752.3142, skewness: 298.257224; Next, project the GPS satellite ellipsoid coordinates onto the plane map coordinate system, with the WGS84 major semi-axis as the projection factor; The elliptical eccentricity of the earth in the third step is: 0.00669342162296594323, and the calculation is shown as follows: Sqrt: Calculate the square root and find the first eccentricity of the earth's ellipse; a1: Calculate the eccentricity of the earth's ellipse ee in a is long half uranium, a = 6378137.0; b is short half uranium, b = 6356752.3142; a2: Calculate the plane coordinate offset ret1 of the original GPS longitude relative to the domestic map longitude a3: Calculate the plane coordinate offset ret2 of the original GPS dimension relative to the domestic map dimension a4. Calculate the offset of longitude and latitude in the earth coordinates dLat and dLon according to the eccentricity a5. Add the offset to the original GPS data to get the corrected GPS data. Put the GPS data into Amap for testing. According to the current position, the positioning is accurate with an error within 5 meters.