Gps driving track correction method, device and equipment and storage medium
By detecting the vehicle's idling status and updating the GPS recorded time and coordinates, the problem of GPS driving trajectory deviation caused by idling was solved, achieving higher quality GPS data trajectory correction.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN HAILINKE INFORMATION TECH CO LTD
- Filing Date
- 2023-02-28
- Publication Date
- 2026-07-07
AI Technical Summary
Existing GPS driving tracks suffer from positioning errors due to vehicle idling, resulting in track deviations and making it impossible to obtain high-quality GPS driving tracks.
The vehicle's idling status is determined by detecting its current and historical GPS data, and the GPS recording time and coordinates are updated and corrected when the vehicle is idling.
It effectively removes GPS data offset caused by idling, resulting in higher quality GPS data trajectory information.
Smart Images

Figure CN116359963B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of GPS positioning technology, and in particular to a GPS driving trajectory correction method, device, equipment, and storage medium. Background Technology
[0002] Currently, GPS is used to locate vehicles and report location data periodically or at fixed distances to generate vehicle GPS driving trajectories. GPS driving trajectories have wide applications in traffic surveys, traffic behavior analysis, user travel analysis, and road structure analysis.
[0003] However, existing GPS driving trajectories are simply direct renderings of the raw GPS data reported by the vehicle. Changes in GPS accuracy and vehicle status during movement inevitably lead to positioning errors, causing the rendered driving trajectory to deviate and making it impossible to obtain high-quality GPS driving trajectories.
[0004] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is related technology. Summary of the Invention
[0005] The main objective of this invention is to provide a GPS driving trajectory correction method, device, equipment, and storage medium, which aims to solve the technical problem of GPS driving trajectory deviation caused by vehicles idling.
[0006] To achieve the above objectives, the present invention provides a GPS driving trajectory correction method, the method comprising the following steps:
[0007] Detect whether the vehicle is idling based on the vehicle's current GPS data and historical GPS data;
[0008] When the vehicle is idling, the GPS recording time is updated based on the current GPS data to obtain the target GPS recording time;
[0009] Use the GPS coordinates in the historical GPS data as the target GPS coordinates;
[0010] The vehicle's GPS driving record is corrected based on the target GPS recording time and the target GPS coordinates.
[0011] Optionally, detecting whether the vehicle is idling based on the vehicle's current GPS data and historical GPS data includes:
[0012] Obtain the current GPS speed from the current GPS data, and obtain the first historical GPS speed from the historical GPS data;
[0013] The current GPS speed and the first historical GPS speed are compared with a preset speed, and the vehicle is determined to be idling based on the comparison results.
[0014] Optionally, after the step of comparing the current GPS speed and the first historical GPS speed with a preset speed, and determining whether the vehicle is idling based on the comparison result, the method includes:
[0015] When the current GPS speed and the first historical GPS speed are both less than a first preset speed, the vehicle is determined to be in an idling state.
[0016] Optionally, after the step of comparing the current GPS speed and the first historical GPS speed with a preset speed, and determining whether the vehicle is idling based on the comparison result, the method includes:
[0017] When the current GPS speed is a preset speed value and the first historical GPS speed is greater than the first preset speed, the vehicle is determined to be in an idling state.
[0018] Optionally, detecting whether the vehicle is idling based on the vehicle's current GPS data and historical GPS data includes:
[0019] Obtain the current GPS speed from the current GPS data, and obtain the first historical GPS speed and the second historical GPS speed from the historical GPS data;
[0020] Obtain the first historical GPS record time and the second historical GPS record time from the historical GPS data;
[0021] When the interval between the first historical GPS recording time and the second historical GPS recording time is greater than a preset reporting frequency, the current GPS speed, the first historical GPS speed, and the second historical GPS speed are compared with a second preset speed, and the vehicle is determined to be in an idling state based on the comparison results.
[0022] Optionally, detecting whether the vehicle is idling based on the vehicle's current GPS data and historical GPS data includes:
[0023] The current speed of movement is calculated based on the vehicle's current GPS data and historical GPS data;
[0024] Obtain the current GPS speed from the current GPS data, and obtain the first historical GPS speed from the historical GPS data;
[0025] When the difference between the current moving speed and the current GPS speed is greater than a preset threshold, the current GPS speed and the first historical GPS speed are compared with a second preset speed respectively;
[0026] Based on the comparison results, determine whether the vehicle in question is idling.
[0027] Optionally, before the step of updating the GPS recording time based on the current GPS data to obtain the target GPS recording time when the vehicle is idling, the method includes:
[0028] Obtain the current GPS coordinates from the current GPS data, and obtain the first historical GPS coordinates from the historical GPS data;
[0029] When the current GPS coordinates are the same as the first historical GPS coordinates, it is determined that the vehicle is not idling.
[0030] The vehicle's GPS driving record is generated based on the historical GPS data.
[0031] Furthermore, to achieve the above objectives, the present invention also proposes a GPS driving trajectory correction device, the device comprising:
[0032] The idle speed detection module is used to detect whether the vehicle is in an idling state based on the vehicle's current GPS data and historical GPS data.
[0033] The time update module is used to update the GPS recording time according to the current GPS data when the vehicle is idling, so as to obtain the target GPS recording time;
[0034] The coordinate update module is used to use the GPS coordinates in the historical GPS data as the target GPS coordinates.
[0035] The recording correction module is used to correct the GPS driving record of the vehicle based on the target GPS recording time and the target GPS coordinates.
[0036] Furthermore, to achieve the above objectives, the present invention also proposes a GPS driving trajectory correction device, the device comprising: a memory, a processor, and a GPS driving trajectory correction program stored in the memory and executable on the processor, the GPS driving trajectory correction program being configured to implement the steps of the GPS driving trajectory correction method as described above.
[0037] In addition, to achieve the above objectives, the present invention also provides a storage medium storing a GPS driving trajectory correction program, which, when executed by a processor, implements the steps of the GPS driving trajectory correction method as described above.
[0038] This invention detects whether a vehicle is idling based on its current and historical GPS data. When the vehicle is idling, the GPS recording time is updated based on the current GPS data to obtain a target GPS recording time. The GPS coordinates in the historical GPS data are used as the target GPS coordinates. The vehicle's GPS driving record is then corrected based on the target GPS recording time and target GPS coordinates. Because this invention determines whether a vehicle is idling based on its current and historical GPS data, updates the GPS data of idling vehicles based on the GPS recording time and GPS coordinates, and corrects the vehicle's original driving trajectory based on the updated GPS data, it considers the idling phenomenon that exists during vehicle operation. By judging and filtering the GPS data reported by the vehicle, changes in vehicle GPS data caused by idling are removed, thus filtering out non-subjective deviations on the GPS route map caused by the vehicle being idling, resulting in higher quality GPS data trajectory information. Attached Figure Description
[0039] Figure 1 This is a schematic diagram of the structure of a GPS driving trajectory correction device in the hardware operating environment involved in the embodiments of the present invention;
[0040] Figure 2 This is a flowchart illustrating the first embodiment of the GPS driving trajectory correction method of the present invention;
[0041] Figure 3 This is a flowchart illustrating the second embodiment of the GPS driving trajectory correction method of the present invention;
[0042] Figure 4 This is a flowchart illustrating the third embodiment of the GPS driving trajectory correction method of the present invention;
[0043] Figure 5 This is a structural block diagram of the first embodiment of the GPS driving trajectory correction device of the present invention.
[0044] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0045] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0046] Reference Figure 1 , Figure 1 This is a schematic diagram of the GPS driving trajectory correction device structure in the hardware operating environment involved in the embodiments of the present invention.
[0047] like Figure 1 As shown, the GPS driving trajectory correction device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be high-speed random access memory (RAM) or stable non-volatile memory (NVM), such as a disk storage device. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0048] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the GPS driving trajectory correction device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0049] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a network communication module, a user interface module, and a GPS driving trajectory correction program.
[0050] exist Figure 1 In the GPS driving trajectory correction device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the GPS driving trajectory correction device of the present invention can be set in the GPS driving trajectory correction device. The GPS driving trajectory correction device calls the GPS driving trajectory correction program stored in the memory 1005 through the processor 1001 and executes the GPS driving trajectory correction method provided in the embodiment of the present invention.
[0051] This invention provides a GPS driving trajectory correction method, referring to... Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the GPS driving trajectory correction method of the present invention.
[0052] In this embodiment, the GPS driving trajectory correction method includes the following steps:
[0053] Step S10: Detect whether the vehicle is idling based on the vehicle's current GPS data and historical GPS data.
[0054] It should be noted that the executing entity of the method in this embodiment can be a computer service device with data processing, network communication, and program execution functions, such as a mobile phone, tablet computer, or personal computer. It can also be other electronic devices capable of performing the same or similar functions for acquiring, storing, and further processing vehicle GPS data. This embodiment does not impose any limitations on this. The following uses a GPS driving trajectory correction device (hereinafter referred to as a GPS correction device) as an example to describe various embodiments of the GPS driving trajectory correction method of the present invention.
[0055] It should be understood that the vehicle is a mobile vehicle equipped with a GPS satellite positioning device or a GPS sensor. The GPS satellite positioning device or GPS sensor may be integrated into the vehicle's internal structure or may be an external device installed on the vehicle. This embodiment does not impose any restrictions on this.
[0056] It is understandable that the vehicle's current GPS data is the vehicle positioning information data acquired in real time at a preset acquisition frequency, while the vehicle's historical GPS data can be the vehicle positioning information used to generate driving trajectories, which is reported at a preset reporting frequency. The GPS data may include, but is not limited to, GPS coordinates, GPS speed, and GPS recording time.
[0057] It should be understood that idling speed is the relative speed of a vehicle moving without pressing the accelerator or brake pedal. Idling speed is a design flaw of GPS devices. The effects of idling speed are as follows: when the vehicle is not moving, the satellite data received by GPS has a certain satellite speed, i.e., GPS speed. At the same time, the generated GPS positioning, i.e., GPS coordinates, will also have an error of several meters or even tens of meters, affecting the subsequent generation of GPS driving trajectory.
[0058] In its implementation, the correction device acquires current GPS data from vehicles equipped with GPS satellite positioning devices or GPS sensors at a preset frequency, as well as historical GPS data reported at a preset reporting frequency. Based on the GPS coordinates, GPS speed, and GPS recording time in this GPS data, it determines whether the vehicle is currently idling.
[0059] Step S20: When the vehicle is idling, update the GPS recording time according to the current GPS data to obtain the target GPS recording time.
[0060] It should be noted that the GPS recording time is the time corresponding to the most recent recorded vehicle location information reported at a preset reporting frequency in the historical GPS data, arranged in timestamp order. This GPS recording time can be regarded as the completion time of the current vehicle traveling through a certain road segment, or it can be the completion time of a complete planned road segment determined according to the starting point and the destination. This embodiment does not impose any restrictions on this.
[0061] It should be understood that the target GPS recording time is the final determined recording time stored in the driving record of that route. Based on this determined recording time, a GPS driving trajectory can be generated subsequently, and the determined recording time corresponding to each node on the driving trajectory can be located.
[0062] Understandably, when a vehicle is idling, it can be considered that the vehicle has not completed the driving task of the current road segment. That is to say, when the vehicle is at the time corresponding to the most recent recorded vehicle location information in the historical GPS data according to the timestamp sequence and the preset reporting frequency, the GPS driving record of the current road segment has not been completed.
[0063] Furthermore, when the vehicle is idling, the current GPS data of the idling vehicle is used to update the recorded historical GPS data. Since the vehicle is not moving when it is idling, the historical GPS recording time can be updated only based on the current GPS recording time in the vehicle's current GPS data.
[0064] In a specific implementation, when the vehicle is idling, the current target segment of the journey has not yet ended. The historical GPS recording time is updated based on the current GPS data when the vehicle is idling, and the target GPS recording time is obtained.
[0065] Step S30: Use the GPS coordinates in the historical GPS data as the target GPS coordinates.
[0066] It's important to note that GPS coordinates, or Global Positioning Coordinates, are generally composed of two parameters: longitude and latitude. The Earth is divided into 180 degrees of longitude eastward and westward from Greenwich Mean Time, and 90 degrees of latitude northward and southward from the equator. The units are either sexagesimal (degrees:minutes:seconds, with letters indicating direction) or decimal (positive / negative decimal). As a real-world coordinate system, it's used to determine the location of objects on Earth; specifically, it can be used to locate the current position of a vehicle.
[0067] It is understandable that when a vehicle is idling and not moving, the satellite speed in the received satellite data, i.e., the current GPS data, is not zero. Therefore, the GPS positioning data has an error of several meters or even tens of meters. In other words, the GPS coordinates in the current GPS data are not the actual location of the vehicle.
[0068] It should be understood that the target GPS coordinates are the final determined recorded coordinates stored in the driving record of this route. Based on these determined recorded coordinates, a GPS driving trajectory can be generated, which reflects the actual location of the vehicle at each node corresponding to the GPS recording time.
[0069] In the specific implementation, when the vehicle is idling, the GPS coordinates in the current GPS data of the vehicle are not the actual location of the vehicle. Therefore, the GPS coordinates in the vehicle location information most recently recorded in the historical GPS data according to the timestamp order and reported at the preset reporting frequency are used as the target GPS coordinates.
[0070] Step S40: Correct the vehicle's GPS driving record based on the target GPS recording time and the target GPS coordinates.
[0071] It should be noted that the GPS driving record can be a driving route record presented on a GPS map as a driving trajectory. Each node corresponds to GPS data, which is vehicle GPS data reported according to a preset reporting frequency. The nodes in the driving trajectory are the GPS coordinates of each time stamp reported according to the preset reporting frequency.
[0072] It is understandable that the GPS driving trajectory can be generated from GPS record data arranged in a tabular format in chronological order. The GPS record data consists of historical GPS data updated after the target GPS recording time and target GPS coordinates. This updated historical GPS data fully records the vehicle's GPS driving record information for the current target road segment. This vehicle driving record information includes the vehicle's timestamp at the starting point of the target road segment, location information, and so on.
[0073] In practice, the correction device updates the target GPS data used to generate the GPS driving trajectory based on the target GPS recording time and target GPS coordinates, thereby obtaining historical GPS data updated after the target GPS recording time and target GPS coordinates, and further generating the driving record presented on the GPS map.
[0074] This embodiment detects whether the vehicle is idling based on its current and historical GPS data. When the vehicle is idling, the GPS recording time is updated based on the current GPS data to obtain a target GPS recording time. The GPS coordinates in the historical GPS data are used as the target GPS coordinates, and the vehicle's GPS driving record is corrected based on the target GPS recording time and target GPS coordinates. Since this embodiment determines whether the vehicle is idling based on its current and historical GPS data, updates the GPS data of idling vehicles based on the GPS recording time and GPS coordinates, and corrects the vehicle's original driving trajectory based on the updated GPS data, it considers the idling phenomenon that exists during vehicle operation. By judging and filtering the GPS data reported by the vehicle, changes in vehicle GPS data caused by idling are removed, thereby filtering out non-subjective deviations on the GPS route map caused by the vehicle being idling, resulting in higher quality GPS data trajectory information.
[0075] Reference Figure 3 , Figure 3 This is a flowchart illustrating the second embodiment of the GPS driving trajectory correction method of the present invention.
[0076] Based on the first embodiment described above, in this embodiment, step S10 includes:
[0077] Step S11: Obtain the current GPS speed from the current GPS data, and obtain the first historical GPS speed from the historical GPS data.
[0078] It is understood that the vehicle's current GPS data is the vehicle positioning information data acquired in real time by the vehicle according to a preset acquisition frequency. This vehicle positioning information data is acquired by this correction device from data from GPS satellite positioning devices or GPS sensors. The preset acquisition frequency can be set based on the vehicle's normal driving speed. This embodiment does not limit this. The preset acquisition frequency should be less than the preset reporting frequency.
[0079] It should be noted that the vehicle acquires current GPS data in real time at a preset acquisition frequency during operation. Considering information redundancy, the vehicle also reports its location information for generating its driving trajectory at a preset reporting frequency. This reported location information generates historical GPS data in chronological order and can be temporarily stored in a table format. Therefore, the preset reporting frequency is greater than the preset acquisition frequency. This preset reporting frequency can be set based on the vehicle's speed or manually customized; this embodiment does not impose any restrictions on this.
[0080] It should be understood that the first historical GPS speed is the GPS speed corresponding to the last timestamp of the historical GPS record in the historical GPS data temporarily stored in tabular form.
[0081] Step S12: Compare the current GPS speed and the first historical GPS speed with the preset speed respectively, and determine whether the vehicle is idling based on the comparison result.
[0082] It should be noted that the preset speed is a manually set first speed reference standard determined based on prior experience for judging whether the vehicle is idling. When the vehicle is not moving, the GPS data contains satellite speed due to the idling state. Due to the accuracy of GPS signals, there are errors in the data obtained from GPS satellite positioning equipment or GPS sensors. The current GPS speed and the first historical speed are compared with the preset speed. The comparison result can determine whether the vehicle is idling.
[0083] It should be understood that when a vehicle is idling, there are multiple ways to reflect this in GPS data. These include comparing the current GPS speed with the values of the first historical GPS speed and the preset speed. All of these factors can simultaneously determine that the vehicle is currently idling.
[0084] Furthermore, step S12 is followed by:
[0085] Step S12': When the current GPS speed and the first historical GPS speed are both less than the first preset speed, it is determined that the vehicle is in an idling state.
[0086] It is understood that the first preset speed is used to determine whether the vehicle is idling. The value of the first preset speed can be set as much as possible to be much smaller than the average driving speed of the vehicle. The unit of the preset speed should be consistent with the current GPS speed and the historical GPS speed in the historical GPS data. This embodiment does not limit the setting of the first preset speed. Here, we take setting the first preset speed to 2 (unit: km / h) as an example to illustrate this embodiment and the following embodiments.
[0087] In practice, when the current GPS speed is less than 2 and the first historical GPS speed is also less than 2, it can be determined that the vehicle is currently idling.
[0088] Step S12 may also include:
[0089] Step S12”: When the current GPS speed is a preset speed value and the first historical GPS speed is greater than the first preset speed, it is determined that the vehicle is in an idling state.
[0090] It is understood that the preset speed value can be set to any value less than the first preset speed. This embodiment does not limit this. Here, the preset speed value is set to 1 (unit: km / h) as an example to illustrate this embodiment and the following embodiments.
[0091] In a specific implementation, when the current GPS speed is 1 and the first historical GPS speed is greater than 2, the vehicle is determined to be in an idling state.
[0092] Furthermore, if the preset speed value is set to 0, then when the current GPS is 0 and the first historical GPS speed is greater than the first preset speed, it can be determined that the current vehicle has not moved, that is, the current GPS coordinates and the first historical GPS coordinates are the same, and there is no error in the obtained GPS data caused by the vehicle being in an idling state. At this time, the first historical GPS recording time in the historical GPS data can be used as the target GPS recording time, and the first historical GPS coordinates can be used as the target GPS coordinates, that is, the GPS driving record of the vehicle is generated based on the historical GPS data.
[0093] This embodiment obtains the current GPS speed from the current GPS data and the first historical GPS speed from the historical GPS data. It then compares the current GPS speed and the first historical GPS speed with preset speeds. Based on the comparison results, it determines whether the vehicle is idling. If both the current GPS speed and the first historical GPS speed are less than the first preset speed, the vehicle is determined to be idling. If the current GPS speed is the preset speed value and the first recent historical GPS speed is greater than the first preset speed, the vehicle is determined to be idling. This embodiment further proposes how to determine whether a vehicle is idling based on current and historical GPS data, providing a numerical standard for determining whether a vehicle is idling. Considering the various manifestations of idling, it further filters and judges the GPS data reported by the vehicle, more clearly displaying the GPS driving record information presented as a driving trajectory.
[0094] Reference Figure 4 , Figure 4 This is a flowchart illustrating the third embodiment of the GPS driving trajectory correction method of the present invention.
[0095] Based on the above embodiments, in this embodiment, step S20 further includes:
[0096] Step S21: Obtain the current GPS speed from the current GPS data, and obtain the first historical GPS speed and the second historical GPS speed from the historical GPS data.
[0097] Step S22: Obtain the first historical GPS recording time and the second historical GPS recording time from the historical GPS data.
[0098] It is understandable that the second historical speed is the GPS speed corresponding to the timestamp of the first historical GPS speed at a preset reporting frequency. In other words, the second historical GPS recording time is theoretically temporarily stored in the tabular GPS historical data at a preset frequency with a time interval between the first historical GPS recording time and the first historical GPS recording time.
[0099] Step S23: When the interval between the first historical GPS recording time and the second historical GPS recording time is greater than the preset reporting frequency, the current GPS speed, the first historical GPS speed, and the second historical GPS speed are compared with the second preset speed, and the vehicle is determined to be in an idling state based on the comparison result.
[0100] It should be noted that the second preset speed is used to determine whether the vehicle is idling. The second preset speed can be manually customized or set based on the vehicle's normal driving speed. The second preset speed should be set to be greater than the first preset speed. This embodiment does not impose any restrictions on this. Here, we will take a second preset speed of 5 (unit: km / h) as an example to illustrate this embodiment and the following embodiments.
[0101] In the specific implementation, when the time interval between the first historical GPS recording time and the second historical GPS recording time is greater than the preset reporting frequency, the current GPS speed, the first historical GPS speed, and the second historical GPS speed are compared with the second preset speed. When the current GPS speed, the first historical GPS speed, and the second historical GPS speed are all less than the second preset speed, it indicates that the correction device has obtained GPS data uploaded by the GPS satellite positioning device or GPS sensor. At the same time, the vehicle is not moving, and it is determined that the vehicle is in an idling state.
[0102] Furthermore, step S20 may also include:
[0103] Step S201: Calculate the current speed of movement based on the vehicle's current GPS data and historical GPS data.
[0104] In the specific implementation, the distance between the two coordinates is obtained based on the current GPS coordinates and the first historical GPS coordinates. The time required to reach the distance between the two coordinates is obtained based on the current GPS recording time and the first historical GPS recording time. The current moving speed is obtained based on the speed calculation formula.
[0105] Step S202: Obtain the current GPS speed from the current GPS data, and obtain the first historical GPS speed from the historical GPS data.
[0106] Step S203: When the difference between the current moving speed and the current GPS speed is greater than a preset threshold, the current GPS speed and the first historical GPS speed are compared with the second preset speed.
[0107] It should be noted that the setting of the preset threshold is based on manual measurement data experience (the difference will not exceed 0.5 through analysis of the measurement data, that is, the preset threshold can be set slightly greater than 0.5). This embodiment does not limit this. Here, the preset threshold will be set to 1 to describe this embodiment and the following embodiments.
[0108] Step S204: Determine whether the vehicle in question is idling based on the comparison results.
[0109] In the specific implementation, the average speed is obtained by dividing the distance between the current GPS coordinates and the first historical GPS coordinates by the time it takes for the two coordinates to move, and the current speed is determined to be idling when the difference between the current speed and the current GPS speed in the current GPS data is greater than 1, and both the current GPS speed and the first GPS speed are less than the second preset speed of 5.
[0110] This embodiment obtains the current GPS speed from the current GPS data, and the first and second historical GPS speeds from the historical GPS data. It also obtains the first and second historical GPS recording times from the historical GPS data. When the interval between the first and second historical GPS recording times is greater than a preset reporting frequency, the current GPS speed, the first historical GPS speed, and the second historical GPS speed are compared with a second preset speed. Based on the comparison results, it is determined whether the vehicle is idling. Furthermore, the current moving speed is calculated based on the vehicle's current GPS data and historical GPS data. The current GPS speed from the current GPS data and the first historical GPS speed from the historical GPS data are obtained. When the difference between the current moving speed and the current GPS speed is greater than a preset threshold, the current GPS speed and the first historical GPS speed are compared with a second preset speed. Based on the comparison results, it is determined whether the vehicle is idling. This embodiment considers handling abnormal situations, such as lost reported coordinates. In the case of data loss, it determines whether the vehicle is moving based on existing data, and further determines whether the vehicle is idling. Furthermore, the difference between the calculated GPS speed and the acquired GPS satellite speed is taken into account to determine whether the vehicle is idling. Considering more scenarios for determining whether a vehicle is idling, the accuracy of data statistics is improved, further filtering out non-subjective deviations on the GPS route map caused by idling, thus obtaining higher-quality GPS trajectory information.
[0111] Furthermore, this embodiment of the invention also proposes a storage medium storing a GPS driving trajectory correction program, which, when executed by a processor, implements the steps of the GPS driving trajectory correction method described above.
[0112] refer to Figure 5 , Figure 5 This is a structural block diagram of the first embodiment of the GPS driving trajectory correction device of the present invention.
[0113] like Figure 5 As shown, the GPS driving trajectory correction device of the present invention includes:
[0114] The idle speed detection module 501 is used to detect whether the vehicle is in an idling state based on the vehicle's current GPS data and historical GPS data.
[0115] The time update module 502 is used to update the GPS recording time according to the current GPS data when the vehicle is idling, so as to obtain the target GPS recording time.
[0116] The coordinate update module 503 is used to use the GPS coordinates in the historical GPS data as the target GPS coordinates;
[0117] The recording correction module 504 is used to correct the GPS driving record of the vehicle based on the target GPS recording time and the target GPS coordinates.
[0118] This embodiment detects whether the vehicle is idling based on its current and historical GPS data. When the vehicle is idling, the GPS recording time is updated based on the current GPS data to obtain a target GPS recording time. The GPS coordinates in the historical GPS data are used as the target GPS coordinates, and the vehicle's GPS driving record is corrected based on the target GPS recording time and target GPS coordinates. Since this embodiment determines whether the vehicle is idling based on its current and historical GPS data, updates the GPS data of idling vehicles based on the GPS recording time and GPS coordinates, and corrects the vehicle's original driving trajectory based on the updated GPS data, it considers the idling phenomenon that exists during vehicle operation. By judging and filtering the GPS data reported by the vehicle, changes in vehicle GPS data caused by idling are removed, thereby filtering out non-subjective deviations on the GPS route map caused by the vehicle being idling, resulting in higher quality GPS data trajectory information.
[0119] Other embodiments or specific implementations of the GPS driving trajectory correction device of the present invention can be referred to the above-described method embodiments, and will not be repeated here.
[0120] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0121] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0122] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as read-only memory / random access memory, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0123] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A GPS driving trajectory correction method, characterized in that, The method includes: Detect whether the vehicle is idling based on the vehicle's current GPS data and historical GPS data; When the vehicle is idling, the GPS recording time is updated based on the current GPS data to obtain the target GPS recording time; Use the GPS coordinates in the historical GPS data as the target GPS coordinates; The GPS driving record of the vehicle is corrected based on the target GPS recording time and the target GPS coordinates; The step of detecting whether the vehicle is idling based on the vehicle's current GPS data and historical GPS data includes: The system obtains the current GPS speed from the current GPS data and the first historical GPS speed from the historical GPS data. The current GPS speed is obtained in real time by the vehicle during driving at a preset acquisition frequency. The historical GPS data is generated by the vehicle positioning information in the order of reporting time. The vehicle positioning information is reported by the vehicle during driving at a preset reporting frequency. The historical GPS data is temporarily stored in a table format. The first historical GPS data is the GPS speed corresponding to the historical GPS record time located at the last timestamp in the historical GPS data temporarily stored in the table format in chronological order. The current GPS speed and the first historical GPS speed are compared with a preset speed, and the vehicle is determined to be in an idling state based on the comparison results. When the current GPS speed and the first historical GPS speed are both less than a first preset speed, it is determined that the vehicle is in an idling state. Alternatively, if the current GPS speed is a preset speed value and the first historical GPS speed is greater than the first preset speed, the vehicle is determined to be in an idling state.
2. The GPS driving trajectory correction method as described in claim 1, characterized in that, The step of detecting whether the vehicle is idling based on the vehicle's current GPS data and historical GPS data includes: Obtain the current GPS speed from the current GPS data, and obtain the first historical GPS speed and the second historical GPS speed from the historical GPS data; Obtain the first historical GPS record time and the second historical GPS record time from the historical GPS data; When the interval between the first historical GPS recording time and the second historical GPS recording time is greater than a preset reporting frequency, the current GPS speed, the first historical GPS speed, and the second historical GPS speed are compared with a second preset speed, and the vehicle is determined to be in an idling state based on the comparison results.
3. The GPS driving trajectory correction method as described in claim 2, characterized in that, The step of detecting whether the vehicle is idling based on the vehicle's current GPS data and historical GPS data includes: The current speed of movement is calculated based on the vehicle's current GPS data and historical GPS data; Obtain the current GPS speed from the current GPS data, and obtain the first historical GPS speed from the historical GPS data; When the difference between the current moving speed and the current GPS speed is greater than a preset threshold, the current GPS speed and the first historical GPS speed are compared with a second preset speed respectively; Based on the comparison results, determine whether the vehicle in question is idling.
4. The GPS driving trajectory correction method as described in claim 1, characterized in that, Before the step of updating the GPS recording time based on the current GPS data to obtain the target GPS recording time when the vehicle is idling, the following steps are included: Obtain the current GPS coordinates from the current GPS data, and obtain the first historical GPS coordinates from the historical GPS data; When the current GPS coordinates are the same as the first historical GPS coordinates, it is determined that the vehicle is not idling. The vehicle's GPS driving record is generated based on the historical GPS data.
5. A GPS driving trajectory correction device, characterized in that, The device includes: The idle speed detection module is used to detect whether the vehicle is in an idling state based on the vehicle's current GPS data and historical GPS data. The time update module is used to update the GPS recording time according to the current GPS data when the vehicle is idling, so as to obtain the target GPS recording time; The coordinate update module is used to use the GPS coordinates in the historical GPS data as the target GPS coordinates; The recording correction module is used to correct the GPS driving record of the vehicle based on the target GPS recording time and the target GPS coordinates; The idle speed determination module is further configured to acquire the current GPS speed from the current GPS data and the first historical GPS speed from the historical GPS data. The current GPS speed is acquired in real time by the vehicle during driving at a preset acquisition frequency. The historical GPS data is generated by the vehicle positioning information in the order of reporting time. The vehicle positioning information is reported by the vehicle during driving at a preset reporting frequency. The historical GPS data is temporarily stored in a table format. The first historical GPS data is the GPS speed corresponding to the last timestamp of the historical GPS record in the temporarily stored historical GPS data in the table format. The module compares the current GPS speed and the first historical GPS speed with preset speeds respectively, and determines whether the vehicle is in an idle state based on the comparison results. If the current GPS speed and the first historical GPS speed are both less than the first preset speed, the vehicle is determined to be in an idle state. Alternatively, if the current GPS speed is the preset speed value and the first historical GPS speed is greater than the first preset speed, the vehicle is determined to be in an idle state.
6. A GPS driving trajectory correction device, characterized in that, The device includes: a memory, a processor, and a GPS driving trajectory correction program stored in the memory and executable on the processor, the GPS driving trajectory correction program being configured to implement the steps of the GPS driving trajectory correction method as described in any one of claims 1 to 4.
7. A storage medium, characterized in that, The storage medium stores a GPS driving trajectory correction program, which, when executed by a processor, implements the steps of the GPS driving trajectory correction method as described in any one of claims 1 to 4.