Vehicle position real-time tracking method
By using GPS on the driver's side to obtain vehicle location information, and combining short and long chain upload methods, the server performs real-time data processing and analysis, solving the problem of low accuracy and reliability in complex environments in traditional positioning technology, realizing high-precision real-time tracking of vehicle locations, improving management and security.
Patent Information
- Application Number
- CN202510029402.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-08
- Publication Date
- 2025-04-22
AI Technical Summary
Traditional vehicle positioning technology in complex environments with high-rise buildings in the city, signal occlusion and multipath effects seriously affect the positioning accuracy and reliability, resulting in obvious errors in vehicle position information, affecting the efficiency of vehicle management and scheduling.
The current location information is obtained through the driver's GPS and uploaded to the server through short and long chains. The server combines the received location information with the last known GPS location and sensor data, performs real-time processing and analysis, generates the optimal location, and displays it on the map in real time.
Improves the accuracy and reliability of vehicle positioning, can track vehicle location in real time, reduce scheduling time and cost, and improves vehicle management and safety.
Smart Images

Figure CN119865770A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of positioning technology, and more specifically, to a method for real-time tracking of vehicle positions. Background Art
[0002] With the acceleration of urbanization, the increase in the number of vehicles and road traffic congestion have become common problems worldwide. In this context, real-time tracking of vehicle locations has become increasingly important, especially in the fields of vehicle management, safety monitoring and transportation services. Traditional vehicle tracking methods usually rely on manual monitoring, which has low efficiency and poor accuracy in information acquisition and often cannot meet the rapidly changing traffic conditions and needs. This has brought many problems to fleet scheduling, passenger call-ups, accident emergency handling, etc.
[0003] In modern traffic management, greedily relying on traditional single positioning technology, such as the global positioning GPS system, faces obvious challenges. GPS performs relatively well in open areas, but in complex environments such as urban high-rise buildings, signal blocking and multipath effects seriously affect the accuracy and reliability of positioning. In this way, the positioning information of vehicles on urban roads may have obvious errors, resulting in the inability of the dispatching system to respond to changes in a timely manner, thus affecting the travel experience of passengers. Therefore, a method that can track the location of vehicles in real time is needed.
[0004] With the continuous advancement of technology, real-time tracking systems that combine multiple positioning technologies and data processing methods have gradually emerged. For example, integrated positioning systems that integrate GPS, positioning technology based on cellular networks, and short-range communication methods such as Wi-Fi and Bluetooth can not only effectively overcome signal blocking problems, but also improve positioning accuracy. These emerging methods can obtain vehicle locations in real time and predict traffic conditions through data analysis, thereby providing accurate decision-making basis for vehicle management and scheduling. Summary of the invention
[0005] The present invention aims at the technical problems existing in the prior art and provides a method for real-time tracking of vehicle position to solve the problems raised in the above background technology.
[0006] The present invention solves the above technical problems with the following technical solutions: A method for real-time tracking of vehicle position, specifically comprising the following steps:
[0007] Step 101: After the driver starts the application, the driver obtains the current location information through GPS and uploads it to the server through short link and long link;
[0008] Step 102: After receiving the location information uploaded by the driver, the server combines it with the last known GPS location and sensor data for real-time processing and analysis;
[0009] Step 103: Display the processed vehicle position and trajectory on a map in real time for tracking and monitoring.
[0010] In a preferred embodiment, in step 101, after the driver starts the application, the driver obtains the current location information through GPS and uploads it to the server through short link and long link. The specific steps are as follows:
[0011] Step A1, obtaining current location information: the driver starts the mobile application, uses GPS and vehicle sensors to obtain the driver's current location information, including longitude, latitude, time data, and vehicle speed and direction, and sets the latest location information to be automatically obtained every 5 seconds and uploaded to the server;
[0012] Step A2, location data reporting: When new location information is obtained, the location information is quickly uploaded to the server through the short link interface to ensure a quick response and effectively avoid data delays. The long link connection is used to maintain a stable communication channel with the server, and the location information is uploaded every 5 seconds to ensure data consistency and continuity. During the long link reporting process, if a connection abnormality occurs, the application will continue to upload the location information through the short link method to ensure the timeliness and accuracy of the data and avoid any data loss;
[0013] When reporting location data, check the signal status of GPS. When the GPS signal is normal, upload the longitude and latitude, speed and timestamp through the long link. When the GPS signal is abnormal, switch to network positioning and upload the network-based location information to the server. When the GPS signal returns to normal, recheck the GPS status and continue to upload the latest GPS-related information to maintain the accuracy and real-time nature of the data.
[0014] In a preferred embodiment, in step 102, after receiving the location information uploaded by the driver, the server combines it with the last known GPS location and sensor data for real-time processing and analysis. The specific steps are as follows:
[0015] Step B1, storing current location data: storing the received location information in a database for immediate processing and subsequent retrieval, retrieving the last known GPS location of the vehicle and its sensor data from the database, and performing data verification to verify the validity of the received location information, including the rationality of the timestamp and ensuring that the format and range of the location information are valid;
[0016] Step B2, data fusion: fuse the currently uploaded location information with the last known GPS location to generate an optimal location, conduct a comprehensive analysis based on the received sensor data to determine the vehicle's motion state, and determine whether it complies with the expected driving route by comparing the distance and change between the newly uploaded location and the previous location. Use sensor data to identify whether the vehicle is stationary, accelerating, or decelerating, and update the fused location information to the vehicle's driving trajectory database to record the vehicle's moving path in real time;
[0017] The currently uploaded location information is represented as (L current ,G current ,T current ), and the last known GPS position is represented as (L last ,G last ,T last ) are fused, where (L current ,G current ,T current ) indicates the latitude, longitude, and timestamp location information currently uploaded. (L last ,G last ,T last ) represents the last known GPS location latitude, longitude, and timestamp information, and the distance between the two points is D. The weighted average method is introduced for location fusion, and the optimal location is (L fused ,G fused ), the specific calculation formula is as follows:
[0018]
[0019] ω current =ΔT+1
[0020] ω last =1
[0021] Among them, ω current and ω last is the weight, ΔT=T last -T current is the time interval, (L fused ,G fused ) are the latitude and longitude of the optimal position.
[0022] In a preferred embodiment, in step 103, the processed vehicle position and trajectory are displayed on a map in real time for tracking and monitoring. The specific steps are as follows:
[0023] Step C1, setting a RESTfu interface on the server side to send the processed vehicle location information and trajectory data, and integrating the map component to ensure that the map and vehicle trajectory can be displayed. Using the RESTfu interface, regularly request the latest location data from the server, and update the received latest location data on the map;
[0024] Step C2, draw the vehicle's driving trajectory on the map, and use the line drawing function of the map API to connect these points according to each location point recorded during the vehicle's movement to form a trajectory, update the trajectory display, ensure that the vehicle's movement path is reflected in real time, and allow the user to interact with the map by panning, zooming, clicking on the vehicle mark to view detailed information, and selecting a specific vehicle for tracking.
[0025] The beneficial effects of the present invention are as follows: after the driver starts the application, the driver side obtains the current location information through GPS and uploads it to the server through short link and long link methods. When the server receives the location information uploaded from the driver side, it combines these data with the last known GPS location and sensor data for real-time processing and analysis. After processing, the real-time location and trajectory of the vehicle will be displayed in real time on the user interface through the map API, and users can easily track and monitor them. The present invention is integrated with existing GPS, vehicle-mounted sensors and map data, has strong compatibility and scalability, improves the accuracy and reliability of location tracking, and can effectively improve the management efficiency of the vehicle, reduce the time and cost of vehicle scheduling, and improve the safety of the vehicle by tracking the vehicle location in real time. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0028] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, "plurality" means two or more, unless otherwise clearly and specifically defined.
[0029] In the description of the present application, the term "for example" is used to mean "used as an example, illustration or description". Any embodiment described as "for example" in the present application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details to obscure the description of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0030] Example 1
[0031] This embodiment provides Figure 1 A method for real-time tracking of vehicle position is shown, which specifically includes the following steps:
[0032] Step 101: After the driver starts the application, the driver obtains the current location information through GPS and uploads it to the server through short link and long link;
[0033] Step 102: After receiving the location information uploaded by the driver, the server combines it with the last known GPS location and sensor data for real-time processing and analysis;
[0034] Step 103: Display the processed vehicle position and trajectory on a map in real time for tracking and monitoring.
[0035] Preferably, in step 101, after the driver starts the application, the driver obtains the current location information through GPS and uploads it to the server through short link and long link methods. The short link method can quickly process and upload small data packets, reduce delays, ensure real-time performance, and help to quickly obtain and update the vehicle location. The long link method can handle larger-scale data uploads, facilitate the collection of comprehensive sensor information, and improve the integrity of the overall data. The specific steps are as follows:
[0036] Step A1, obtaining current location information: the driver starts the mobile application, uses GPS and vehicle sensors to obtain the driver's current location information, including longitude, latitude, time data, and vehicle speed and direction, and sets the latest location information to be automatically obtained every 5 seconds and uploaded to the server;
[0037] Step A2, location data reporting: When new location information is obtained, the location information is quickly uploaded to the server through the short link interface to ensure a quick response and effectively avoid data delays. The long link connection is used to maintain a stable communication channel with the server, and the location information is uploaded every 5 seconds to ensure data consistency and continuity. During the long link reporting process, if a connection abnormality occurs, the application will continue to upload the location information through the short link method to ensure the timeliness and accuracy of the data and avoid any data loss;
[0038] When reporting location data, check the signal status of GPS. When the GPS signal is normal, upload the longitude and latitude, speed and timestamp through the long link. When the GPS signal is abnormal, switch to network positioning and upload the network-based location information to the server. When the GPS signal returns to normal, recheck the GPS status and continue to upload the latest GPS-related information to maintain the accuracy and real-time nature of the data.
[0039] Preferably, in step 102, after receiving the location information uploaded by the driver, the server combines it with the last known GPS location and sensor data for real-time processing and analysis, which can improve the accuracy of vehicle positioning and reduce errors caused by signal interference. The specific steps are as follows:
[0040] Step B1, storing current location data: storing the received location information in a database for immediate processing and subsequent retrieval, retrieving the last known GPS location of the vehicle and its sensor data from the database, and performing data verification to verify the validity of the received location information, including the rationality of the timestamp and ensuring that the format and range of the location information are valid;
[0041] Step B2, data fusion: fuse the currently uploaded location information with the last known GPS location to generate a more stable optimal location, conduct a comprehensive analysis based on the received sensor data to determine the vehicle's motion state, and determine whether it complies with the expected driving route by comparing the distance and change between the newly uploaded location and the previous location. Use sensor data to identify whether the vehicle is stationary, accelerating, or decelerating, and update the fused location information to the vehicle's driving trajectory database, and record the vehicle's moving path in real time, which can improve the effectiveness of the vehicle monitoring system, enhance safety, and enhance user experience;
[0042] The currently uploaded location information is represented as (L current ,G current ,T current ), and the last known GPS position is represented as (L last ,G last ,T last ) are fused, where (L current ,Gcurrent ,T current ) indicates the latitude, longitude, and timestamp location information currently uploaded. (L last ,G last ,T last ) represents the last known GPS location latitude, longitude, and timestamp information, and the distance between the two points is D. The weighted average method is introduced for location fusion to produce a more stable optimal location (L fused ,G fused ), the specific calculation formula is as follows:
[0043]
[0044]
[0045] ω current =ΔT+1
[0046] ω last =1
[0047] Among them, ω current and ω last is the weight, which is set according to the time interval and distance, ΔT = T last -T current is the time interval, (L fused ,G fused ) are the latitude and longitude of the optimal position.
[0048] Preferably, in step 103, the processed vehicle position and trajectory are displayed on a map in real time for tracking and monitoring, which can help drivers and managers quickly adjust routes to avoid traffic congestion. The specific steps are as follows:
[0049] Step C1, setting a RESTfu interface on the server side to send the processed vehicle location information and trajectory data, and integrating the map component to ensure that the map and vehicle trajectory can be displayed. Using the RESTfu interface, regularly request the latest location data from the server, and update the received latest location data on the map;
[0050] Step C2, draw the vehicle's driving trajectory on the map, and use the line drawing function of the map API to connect these points to form a trajectory based on each location point recorded during the vehicle's movement. Update the trajectory display to ensure that the vehicle's movement path is reflected in real time, allowing users to interact with the map by panning, zooming, clicking on vehicle markers to view detailed information, and selecting specific vehicles for tracking. When an emergency occurs, the real-time map display can quickly locate the vehicle's position, facilitating the dispatch of emergency support and resource allocation.
[0051] Example 2
[0052] This embodiment provides Figure 1 A method for real-time tracking of vehicle position is shown, which specifically includes the following steps:
[0053] Step 101: After the driver starts the application, the driver obtains the current location information through GPS and uploads it to the server through short link and long link;
[0054] Furthermore, in step 101, after the driver starts the application, the driver obtains the current location information through GPS and uploads it to the server through short link and long link. The specific steps are as follows:
[0055] Step A1, obtaining current location information: the driver starts the mobile application, uses GPS and vehicle sensors to obtain the driver's current location information, including longitude, latitude, time data, and vehicle speed and direction, and sets the latest location information to be automatically obtained every 5 seconds and uploaded to the server;
[0056] Step A2, location data reporting: When new location information is obtained, the location information is quickly uploaded to the server through the short link interface to ensure a quick response and effectively avoid data delays. The long link connection is used to maintain a stable communication channel with the server, and the location information is uploaded every 5 seconds to ensure data consistency and continuity. During the long link reporting process, if a connection abnormality occurs, the application will continue to upload the location information through the short link method to ensure the timeliness and accuracy of the data and avoid any data loss;
[0057] When reporting location data, check the signal status of GPS. When the GPS signal is normal, upload the longitude and latitude, speed and timestamp through the long link. When the GPS signal is abnormal, switch to network positioning and upload the network-based location information to the server. When the GPS signal returns to normal, recheck the GPS status and continue to upload the latest GPS-related information to maintain the accuracy and real-time nature of the data.
[0058] Step 102: After receiving the location information uploaded by the driver, the server combines it with the last known GPS location and sensor data for real-time processing and analysis;
[0059] Furthermore, in step 102, after receiving the location information uploaded by the driver, the server combines it with the last known GPS location and sensor data for real-time processing and analysis. The specific steps are as follows:
[0060] Step B1, storing current location data: storing the received location information in a database for immediate processing and subsequent retrieval, retrieving the last known GPS location of the vehicle and its sensor data from the database, and performing data verification to verify the validity of the received location information, including the rationality of the timestamp and ensuring that the format and range of the location information are valid;
[0061] Step B2, data fusion: fuse the currently uploaded location information with the last known GPS location to generate a more stable optimal location, conduct a comprehensive analysis based on the received sensor data to determine the vehicle's motion state, and determine whether it complies with the expected driving route by comparing the distance and change between the newly uploaded location and the previous location. Use sensor data to identify whether the vehicle is stationary, accelerating, or decelerating, and update the fused location information to the vehicle's driving trajectory database to record the vehicle's moving path in real time;
[0062] The currently uploaded location information is represented as (L current ,G current ,T current ), and the last known GPS position is represented as (L last ,G last ,T last ) are fused, where (L current ,G current ,T current ) indicates the latitude, longitude, and timestamp location information currently uploaded. (L last ,G last ,T last ) represents the last known GPS location latitude, longitude, and timestamp information, and the distance between the two points is D. The weighted average method is introduced for location fusion to produce a more stable optimal location (L fused ,G fused ), the specific calculation formula is as follows:
[0063]
[0064] ω current =ΔT+1
[0065] ω last =1
[0066] Among them, ω current and ω last is the weight, which is set according to the time interval and distance, ΔT = T last -T current is the time interval, (L fused ,G fused ) are the latitude and longitude of the optimal position.
[0067] Step 103: Display the processed vehicle position and trajectory on a map in real time for tracking and monitoring;
[0068] Furthermore, in step 103, the processed vehicle position and trajectory are displayed on a map in real time for tracking and monitoring. The specific steps are as follows:
[0069] Step C1, setting a RESTfu interface on the server side to send the processed vehicle location information and trajectory data, and integrating the map component to ensure that the map and vehicle trajectory can be displayed. Using the RESTfu interface, regularly request the latest location data from the server, and update the received latest location data on the map;
[0070] Step C2: Draw the vehicle's driving trajectory on the map. Based on each location point recorded during the vehicle's movement, use the line drawing function of the map API to connect these points to form a trajectory, update the trajectory display, and ensure that the vehicle's movement path is reflected in real time. Allow the user to interact with the map by panning, zooming, clicking on the vehicle marker to view detailed information, and selecting a specific vehicle for tracking.
[0071] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0072] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0073] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0074] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0075] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0076] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0077] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for real-time tracking of vehicle position, characterized in that: The specific steps include: Step 101: After the driver starts the application, the driver obtains the current location information through GPS and uploads it to the server through short link and long link; Step 102: After receiving the location information uploaded by the driver, the server combines it with the last known GPS location and sensor data for real-time processing and analysis; Step 103: Display the processed vehicle position and trajectory on a map in real time for tracking and monitoring.
2. A method for real-time tracking of vehicle position according to claim 1, characterized in that: In step 101, after the driver starts the application, the driver obtains the current location information through GPS and uploads it to the server through short link and long link. The specific steps are as follows: Step A1, obtaining current location information: the driver starts the mobile application, uses GPS and vehicle sensors to obtain the driver's current location information, including longitude, latitude, time data, and vehicle speed and direction, and sets the latest location information to be automatically obtained every 5 seconds and uploaded to the server; Step A2, location data reporting: When new location information is obtained, the location information is quickly uploaded to the server through the short link interface, and a long link connection is used to maintain a stable communication channel with the server. The location information is uploaded every 5 seconds to ensure data consistency and continuity. During the long link reporting process, if a connection abnormality occurs, the application will continue to upload the location information through the short link.
3. A method for real-time tracking of vehicle position according to claim 2, characterized in that: When the location data is reported, the signal status of the GPS is checked. When the GPS signal is normal, the longitude and latitude, speed and timestamp are uploaded through a long link. When the GPS signal is abnormal, it switches to network positioning and uploads the network-based location information to the server. When the GPS signal returns to normal, the GPS status is rechecked and the latest GPS-related information continues to be uploaded to maintain the accuracy and real-time nature of the data.
4. The method for real-time tracking of vehicle position according to claim 1, characterized in that: In step 102, after receiving the location information uploaded by the driver, the server combines it with the last known GPS location and sensor data for real-time processing and analysis. The specific steps are as follows: Step B1, storing current location data: storing the received location information in a database, retrieving the last known GPS location of the vehicle and its sensor data from the database, and performing data verification to verify the validity of the received location information, including the rationality of the timestamp and ensuring that the format and range of the location information are valid; Step B2, data fusion: fuse the currently uploaded location information with the last known GPS location to generate an optimal location, conduct a comprehensive analysis based on the received sensor data to determine the vehicle's motion state, and determine whether it complies with the expected driving route by comparing the distance and change between the newly uploaded location and the previous location. Use sensor data to identify whether the vehicle is stationary, accelerating, or decelerating, and update the fused location information to the vehicle's driving trajectory database to record the vehicle's moving path in real time.
5. A method for real-time tracking of vehicle position according to claim 4, characterized in that: In the step B2, in the data fusion, the currently uploaded location information is represented as (L current ,G current ,T current ), and the last known GPS position is represented as (L last ,G last ,T last ) are fused, where (L current ,G current ,T current ) indicates the latitude, longitude, and timestamp location information currently uploaded. (L last ,G last ,T last ) represents the last known GPS location latitude, longitude, and timestamp information, and the distance between the two points is D. The weighted average method is introduced for location fusion to generate the optimal location (L fused ,G fused ), the specific calculation formula is as follows: oh current =ΔT+1 oh last =1 Among them, ω current and ω last is the weight, ΔT=T last -T current is the time interval, (L fused ,G fused ) are the latitude and longitude of the optimal position.
6. A method for real-time tracking of vehicle position according to claim 1, characterized in that: In step 103, the processed vehicle position and trajectory are displayed on a map in real time for tracking and monitoring. The specific steps are as follows: Step C1, setting a RESTfu interface on the server side to send the processed vehicle location information and trajectory data, and integrating the map component, using the RESTfu interface to regularly request the latest location data from the server, and updating the received latest location data on the map; Step C2: Draw the vehicle's driving trajectory on the map. Based on each location point recorded during the vehicle's movement, use the line drawing function of the map API to connect these points to form a trajectory, allowing the user to interact with the map by panning, zooming, clicking on the vehicle marker to view detailed information, and selecting a specific vehicle for tracking.