CN110555256B - GPS route simulation data generation method and device - Google Patents

GPS route simulation data generation method and device Download PDF

Info

Publication number
CN110555256B
CN110555256B CN201910801662.1A CN201910801662A CN110555256B CN 110555256 B CN110555256 B CN 110555256B CN 201910801662 A CN201910801662 A CN 201910801662A CN 110555256 B CN110555256 B CN 110555256B
Authority
CN
China
Prior art keywords
gps
coordinate data
points
data
vehicle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910801662.1A
Other languages
Chinese (zh)
Other versions
CN110555256A (en
Inventor
张志军
吕慧华
沈林强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Hongquan Electronic Technology Co ltd
Original Assignee
Zhejiang Hongquan Vehicle Network Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Hongquan Vehicle Network Co ltd filed Critical Zhejiang Hongquan Vehicle Network Co ltd
Priority to CN201910801662.1A priority Critical patent/CN110555256B/en
Publication of CN110555256A publication Critical patent/CN110555256A/en
Application granted granted Critical
Publication of CN110555256B publication Critical patent/CN110555256B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Abstract

The embodiment of the invention provides a GPS route simulation data generation method and device, wherein the method comprises the following steps: obtaining a navigation route from a preset starting point to a preset ending point through third-party map software; acquiring coordinate data of an existing GPS point by using an API interface; generating coordinate data of an additional GPS point between two adjacent existing GPS points in a navigation route according to a preset vehicle speed, a preset transmission frequency of the coordinate data of the GPS points and the coordinate data of the two adjacent existing GPS points; and the coordinate data of the existing GPS points and the coordinate data of the additional GPS points form GPS route simulation data from the preset starting point to the preset ending point. According to the GPS route simulation data generation method and device provided by the embodiment of the invention, the GPS route simulation data is formed by the existing GPS data of the third-party map software and the generated additional GPS data together for testing, so that the development testing efficiency can be greatly improved, the cost is reduced, the route can be quickly changed, and the flexibility is high.

Description

GPS route simulation data generation method and device
Technical Field
The invention relates to the technical field of data processing, in particular to a GPS route simulation data generation method and device.
Background
The travel of the work vehicle has many limitations. Taking a muck truck as an example, different muck truck teams basically have various limiting conditions such as a set forbidden zone, a removable absorption field, a drivable route and the like based on requirements, so that the muck truck teams are limited to move within a certain range. In the development and testing process of the vehicle-mounted terminal of the engineering vehicle, various different platforms are required to be connected, and the development and modification are required to be carried out according to specific protocols, wherein the relevant development of various types of restricted areas such as forbidden areas, absorption sites, routes and the like is an indispensable project. For example, the in-vehicle terminal needs to recognize whether the route and area traveled by the vehicle meet the limit conditions.
At present, a development test of a vehicle-mounted terminal of an engineering vehicle is that a specific platform is abutted after development is completed, a route or an area is issued through the platform or tool software, then a real vehicle runs on the road, GPS (global positioning system) route is acquired by GPS equipment on the vehicle, and whether the vehicle runs in a specified area or not is accurately judged by the vehicle-mounted terminal according to the acquired GPS route. The key to achieving the test is to acquire GPS route data, however, real vehicle testing increases labor, time and traffic costs and is inefficient.
Disclosure of Invention
In order to solve the problems in the prior art, the embodiment of the invention provides a GPS route simulation data generation method and device.
In a first aspect, an embodiment of the present invention provides a method for generating GPS route simulation data, including: obtaining a navigation route from a preset starting point to a preset ending point through third-party map software; acquiring coordinate data of an existing GPS point in the navigation route by using an API (application program interface) of the third-party map software; generating coordinate data of an additional GPS point between two adjacent existing GPS points in the navigation route according to a preset vehicle speed, a preset transmission frequency of the coordinate data of the GPS points and the coordinate data of the two adjacent existing GPS points; and the coordinate data of the existing GPS points and the coordinate data of the additional GPS points form GPS route simulation data from the preset starting point to the preset ending point.
Further, the generating the coordinate data of the additional GPS point between the two adjacent existing GPS points in the navigation route according to the preset vehicle speed, the preset transmission frequency of the coordinate data of the GPS point, and the coordinate data of the two adjacent existing GPS points specifically includes: acquiring distance information between two adjacent existing GPS points in the navigation route; obtaining the number of additional GPS points passing between the two adjacent existing GPS points when the vehicle runs along the navigation route according to the preset transmission frequency, the preset vehicle speed and the distance information; and obtaining coordinate data of the additional GPS points between the two adjacent existing GPS points according to the coordinate data of the two adjacent existing GPS points and the number of the additional GPS points passing between the two adjacent existing GPS points.
Further, the obtaining the coordinate data of the additional GPS point between the two adjacent existing GPS points according to the coordinate data of the two adjacent existing GPS points and the number of the additional GPS points passing between the two adjacent existing GPS points specifically includes: and obtaining the latitude and longitude offset of each additional GPS point relative to the previous GPS point according to the coordinate data of the two adjacent existing GPS points and the number of the additional GPS points passing between the two adjacent existing GPS points, and sequentially obtaining the coordinate data of the additional GPS points between the two adjacent existing GPS points according to the coordinate data of the existing GPS points passing first in the navigation route in the two adjacent existing GPS points and the latitude and longitude offset.
Further, the preset transmission frequency is 1s.
Further, the method further comprises: and converting the GPS route simulation data into standard GPS coordinate data and storing the standard GPS coordinate data into a coordinate file.
Further, the method further comprises: and according to the preset transmission frequency, sequentially sending the coordinate data of the GPS points in the coordinate file to the vehicle-mounted terminal to be tested.
Further, the vehicle-mounted terminal to be tested comprises a first vehicle-mounted terminal and a second vehicle-mounted terminal, and the method sequentially sends the coordinate data of the GPS point in the coordinate file to the vehicle-mounted terminal to be tested according to the preset transmission frequency specifically comprises the following steps: the coordinate file is sent to a first vehicle-mounted terminal, and the first vehicle-mounted terminal sequentially sends the coordinate data of the GPS points in the coordinate file to the second vehicle-mounted terminal according to the preset transmission frequency; or the second vehicle-mounted terminal loads the coordinate file according to the preset transmission frequency, so that coordinate data of GPS points in the coordinate file are sequentially obtained; wherein the second in-vehicle terminal includes a display screen.
In a second aspect, an embodiment of the present invention provides a GPS route simulation data generating apparatus, including: the navigation route acquisition module is used for: obtaining a navigation route from a preset starting point to a preset ending point through third-party map software; an existing GPS point acquisition module for: acquiring coordinate data of an existing GPS point in the navigation route by using an API (application program interface) of the third-party map software; an additional GPS point generation module for: generating coordinate data of an additional GPS point between two adjacent existing GPS points in the navigation route according to a preset vehicle speed, a preset transmission frequency of the coordinate data of the GPS points and the coordinate data of the two adjacent existing GPS points; the GPS route simulation data acquisition module is used for: and the coordinate data of the existing GPS points and the coordinate data of the additional GPS points form GPS route simulation data from the preset starting point to the preset ending point.
In a third aspect, an embodiment of the invention provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method as provided in the first aspect when the program is executed.
In a fourth aspect, embodiments of the present invention provide a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method as provided by the first aspect.
According to the GPS route simulation data generation method and device, the existing GPS data are obtained by using the third-party map software, the additional GPS data are further generated, the existing GPS data and the additional GPS data form the GPS route simulation data together for testing, the efficiency of development and testing can be greatly improved, the cost is reduced, the route can be quickly changed, and the flexibility is high.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for generating GPS route simulation data provided by an embodiment of the invention;
FIG. 2 is a schematic diagram of a navigation route in a method for generating GPS route simulation data according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an existing GPS point obtained in the method for generating GPS route simulation data according to the embodiment of the present invention;
FIG. 4 is a schematic diagram of GPS route simulation data obtained in the GPS route simulation data generating method according to the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a GPS route simulation data generating device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an entity structure of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flowchart of a method for generating GPS route simulation data according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step 101, obtaining a navigation route from a preset starting point to a preset ending point through third party map software;
firstly, setting a starting point and an ending point, namely the preset starting point and the preset ending point; and obtaining a navigation route from a preset starting point to a preset ending point through third-party map software. The third party map software may be, for example, a Goldmap, a hundred degree map, etc.
102, acquiring coordinate data of an existing GPS point in the navigation route by using an API (application program interface) of the third-party map software;
the third party map software provides coordinate data externally through the published API. Thus, the coordinate data of the existing GPS points in the navigation route can be acquired using the API interface of the third party map software. The coordinate data of the existing GPS points are the coordinate data of the GPS points in the navigation route provided by the third-party map software.
Step 103, generating coordinate data of an additional GPS point between two adjacent existing GPS points in the navigation route according to a preset vehicle speed, a preset transmission frequency of the coordinate data of the GPS points and the coordinate data of the two adjacent existing GPS points;
the GPS points in third party map software such as the Goldmap are not continuous points, that is, GPS coordinates are only found in curves, or in routes with radians, where there are coordinates at both ends. Because the track of the GPS route is formed by continuous points, the GPS route simulation data can not be formed only according to the existing GPS points in the third party map software, and the coordinate data of the additional GPS points and the coordinate data of the existing GPS points are needed to be generated to form the GPS route simulation data together.
Specifically, according to a preset vehicle speed, a preset transmission frequency of the coordinate data of the GPS points and the coordinate data of two adjacent existing GPS points, generating coordinate data of an additional GPS point between the two adjacent existing GPS points in the navigation route. The preset transmission frequency refers to a transmission frequency when the GPS point coordinate data is sent to the vehicle-mounted terminal equipment to be tested in the test process, and can be preset. For example, if the preset transmission frequency is 1s, the coordinate data of one GPS point is transmitted to the vehicle-mounted terminal device to be tested every second. The distance travelled by the vehicle at each data transmission interval can be obtained from a preset vehicle speed (representing the running speed of the vehicle, which can be preset) and the preset transmission frequency. For example, when the preset transmission frequency is 1s, the distance travelled by the vehicle per second can be obtained according to the preset vehicle speed.
Therefore, it is possible to know how long it takes to transmit one GPS point and how long it is to transmit one GPS point through, based on the preset vehicle speed and the preset transmission frequency. After the information is obtained, the position information of the two adjacent existing GPS points can be obtained according to the coordinate data of the two adjacent existing GPS points, and the route for arranging the additional GPS points between the two adjacent existing GPS points can be further obtained according to a preset rule. And sequentially arranging additional GPS points on the obtained route according to the acquired interval distance of the GPS points, thereby obtaining the coordinate data of the additional GPS points between two adjacent existing GPS points.
The route in which the additional GPS points are arranged between the two adjacent existing GPS points is obtained according to a preset rule, wherein the preset rule may be, for example, straight line connection between the two adjacent existing GPS points or curve connection according to a set manner. Of course, other implementations are also possible. The navigation route between the preset starting point and the preset ending point is mainly used for acquiring the existing GPS data, is not used for limiting the track information of the GPS data when the test is carried out, and the track of the finally formed GPS data can be consistent with the navigation route or can be partially deviated.
And 104, composing the GPS route simulation data from the preset starting point to the preset ending point by the coordinate data of the existing GPS points and the coordinate data of the additional GPS points.
After the coordinate data of the additional GPS points are obtained, the coordinate data of the additional GPS points are combined with the coordinate data of the existing GPS points, so that the GPS points which are distributed continuously are obtained and can be used for testing, and therefore GPS route simulation data for testing can be obtained. The starting point of the GPS route simulation data is the preset starting point, the ending point is the preset ending point, and the track is the track formed by the GPS route simulation data together.
According to the embodiment of the invention, the GPS route simulation data for testing can be obtained without actual vehicle testing, so that the requirement of development testing is met, the track generation speed is high and convenient, the traffic and labor cost can be reduced, and the use is convenient; in addition, according to the test requirement, the embodiment of the invention can change the route rapidly by modifying the preset starting point and the preset ending point.
According to the embodiment of the invention, the existing GPS data is obtained by utilizing the third-party map software, the additional GPS data is further generated, and the existing GPS data and the additional GPS data jointly form the GPS route simulation data for testing, so that the efficiency of development and testing can be greatly improved, the cost is reduced, the route can be quickly changed, and the flexibility is high.
Further, based on the above embodiment, the generating the coordinate data of the additional GPS point between the two adjacent existing GPS points in the navigation route according to the preset vehicle speed, the preset transmission frequency of the coordinate data of the GPS point, and the coordinate data of the two adjacent existing GPS points specifically includes: acquiring distance information between two adjacent existing GPS points in the navigation route; obtaining the number of additional GPS points passing between the two adjacent existing GPS points when the vehicle runs along the navigation route according to the preset transmission frequency, the preset vehicle speed and the distance information; and obtaining coordinate data of the additional GPS points between the two adjacent existing GPS points according to the coordinate data of the two adjacent existing GPS points and the number of the additional GPS points passing between the two adjacent existing GPS points.
According to the preset transmission frequency and the preset vehicle speed, coordinate data of GPS points transmitted at intervals can be obtained, and according to the coordinate data of two adjacent GPS points, distance information between the two adjacent existing GPS points can be obtained, wherein the distance information is linear distance information. Therefore, it is possible to obtain how many additional GPS points can be arranged between the adjacent two existing GPS points, and the additional GPS points can be uniformly arranged according to a preset arrangement rule. Wherein the distance between two adjacent existing GPS points may be the same for two additional GPS points. The distance between an existing GPS point and an additional GPS point adjacent thereto may be different according to the difference in distance between adjacent two of the existing GPS points and the difference in arrangement rule.
On the basis of the embodiment, the embodiment of the invention obtains the coordinate data of the additional GPS points between the two adjacent existing GPS points by obtaining the number of the additional GPS points passing between the two adjacent existing GPS points, thereby improving the rapidity of generating the coordinate data of the additional GPS points.
Further, based on the above embodiment, the obtaining the coordinate data of the additional GPS point between the two adjacent existing GPS points according to the coordinate data of the two adjacent existing GPS points and the number of the additional GPS points passing between the two adjacent existing GPS points specifically includes: and obtaining the latitude and longitude offset of each additional GPS point relative to the previous GPS point according to the coordinate data of the two adjacent existing GPS points and the number of the additional GPS points passing between the two adjacent existing GPS points, and sequentially obtaining the coordinate data of the additional GPS points between the two adjacent existing GPS points according to the coordinate data of the existing GPS points passing first in the navigation route in the two adjacent existing GPS points and the latitude and longitude offset.
And obtaining the latitude and longitude offset of each additional GPS point relative to the previous GPS point according to the coordinate data of the two adjacent existing GPS points and the number of the additional GPS points passing between the two adjacent existing GPS points, wherein the previous GPS point refers to the previous GPS point passing along the direction from the preset starting point to the preset ending point, and the GPS points comprise the existing GPS points and the additional GPS points. For example, the last GPS point of the additional GPS point that the first passed between two adjacent existing GPS points is an existing GPS point, and the last GPS point of the remaining additional GPS points is an additional GPS point.
And sequentially obtaining the coordinate data of the additional GPS points between the two adjacent existing GPS points according to the coordinate data of the existing GPS points which pass through in the navigation route in the two adjacent existing GPS points and the longitude and latitude offset, so as to realize uniform arrangement of the additional GPS points. In the arrangement mode of the GPS points, the additional GPS points are sequentially obtained according to the longitude and latitude offset based on one of the two adjacent existing GPS points, which is closer to the preset starting point.
Based on the embodiment, the embodiment of the invention sequentially obtains the coordinate data of the additional GPS points between the two adjacent existing GPS points according to the coordinate data of the existing GPS points which are passed through first in the navigation route in the two adjacent existing GPS points based on the latitude and longitude offset, thereby realizing the rapid and simple acquisition of the coordinate data of the additional GPS points.
Further, based on the above embodiment, the method further includes: and converting the GPS route simulation data into standard GPS coordinate data and storing the standard GPS coordinate data into a coordinate file.
The GPS coordinates used by the vehicle-mounted terminal equipment to be tested are standard GPS coordinates, but because the third-party map software has a coordinate system of the third-party map software, the coordinate data of the existing GPS points and the additional GPS points obtained according to the existing GPS points, which are acquired by the third-party map software, cannot be directly used for testing, namely the GPS route simulation data cannot be directly used for testing, and the GPS route simulation data needs to be converted into standard GPS coordinate data.
After standard GPS coordinate data is obtained, it can be further saved into a coordinate file for testing.
On the basis of the embodiment, the GPS route simulation data are converted into standard GPS coordinate data and stored into the coordinate file, so that a precondition is provided for effective test.
Further, based on the above embodiment, the method further includes: and according to the preset transmission frequency, sequentially sending the coordinate data of the GPS points in the coordinate file to the vehicle-mounted terminal to be tested.
After the coordinate file is obtained, the coordinate file can be used for actual testing. According to the preset transmission frequency, the coordinate data of the GPS points in the coordinate file are sequentially sent to the vehicle-mounted terminal to be tested to simulate the process that the vehicle runs along the track formed by the GPS route simulation data to acquire the GPS data, and according to whether the track of the GPS route simulation data is a limited area and the distinguishing result of the vehicle-mounted terminal to be tested, the performance of the vehicle-mounted terminal to be tested can be tested.
On the basis of the embodiment, the embodiment of the invention sequentially sends the coordinate data of the GPS points in the coordinate file to the vehicle-mounted terminal to be tested according to the preset transmission frequency, thereby realizing the actual test and improving the practicability.
Further, based on the foregoing embodiment, the vehicle-mounted terminal to be tested includes a first vehicle-mounted terminal and a second vehicle-mounted terminal, and the transmitting, according to the preset transmission frequency, the coordinate data of the GPS point in the coordinate file to the vehicle-mounted terminal to be tested sequentially includes: the coordinate file is sent to a first vehicle-mounted terminal, and the first vehicle-mounted terminal sequentially sends the coordinate data of the GPS points in the coordinate file to the second vehicle-mounted terminal according to the preset transmission frequency; or the second vehicle-mounted terminal loads the coordinate file according to the preset transmission frequency, so that coordinate data of GPS points in the coordinate file are sequentially obtained; wherein the second in-vehicle terminal includes a display screen.
According to actual requirements, a first vehicle-mounted terminal and a second vehicle-mounted terminal are usually arranged in engineering vehicles such as a soil and slag vehicle, and the second vehicle-mounted terminal comprises a display screen. The first vehicle-mounted terminal can be provided with GPS equipment, GPS data are acquired when the vehicle actually runs and are sent to the second vehicle-mounted terminal, the second vehicle-mounted terminal displays the GPS data, whether the vehicle enters a restricted area is judged according to the GPS data, and if the vehicle enters the restricted area, an alarm and the like are given.
Therefore, during actual testing, the coordinate file may be sent to the first vehicle-mounted terminal, and the first vehicle-mounted terminal sequentially sends the coordinate data of the GPS point in the coordinate file to the second vehicle-mounted terminal according to the preset transmission frequency, so as to simulate a process that the second vehicle-mounted terminal actually acquires the GPS data. If the performance of the second vehicle-mounted terminal is to be tested directly, the coordinate file can also be loaded directly by the second vehicle-mounted terminal according to the preset transmission frequency, for example, the coordinate file is obtained and loaded through an external storage medium, so that the coordinate data of the GPS point in the coordinate file can be obtained in sequence.
On the basis of the embodiment, the coordinate data of the GPS points in the coordinate file are sequentially sent to the second vehicle-mounted terminal by the first vehicle-mounted terminal according to the preset transmission frequency by sending the coordinate file to the first vehicle-mounted terminal; or the second vehicle-mounted terminal loads the coordinate file according to the preset transmission frequency to test, so that the flexibility of the test is improved.
Fig. 2 is a schematic diagram of a navigation route in the method for generating GPS route simulation data according to the embodiment of the present invention. Fig. 3 is a schematic diagram of an existing GPS point obtained in the method for generating GPS route simulation data according to the embodiment of the present invention. Fig. 4 is a schematic diagram of GPS route simulation data obtained in the method for generating GPS route simulation data according to the embodiment of the present invention. The method for generating the GPS route simulation data according to the embodiment of the invention is further described below with reference to FIGS. 2 to 4.
The development and test efficiency needs to be improved in the prior art, and the development and test efficiency is improved by generating the GPS analog line. And simulating GPS data, and transmitting GPS point data according to the speed and time. The key point is that linear GPS point data is generated by fast routing. The first and second vehicle terminals may be enabled for use during testing.
The navigation route is searched out according to the route through the Goldmap, point coordinates in the route are obtained by using the Goldmap API, but GPS points in the Goldmap are not continuous points, namely, the GPS coordinates are only in the route with curves or radians, but the track of the GPS route is formed by continuous points, so that one GPS point information is required to be transmitted every second, and the positions of adjacent GPS points in the route are calculated according to the speed of the vehicle. And finally, forming a complete GPS track point set. As shown in fig. 2, a navigation route is first searched. Then, the coordinates of the route are obtained, the coordinates are given only when the route with corners or radians appears, only two ends of the straight line have coordinates, such as the star-shaped portion in fig. 3.
And calculating the distance between two points through coordinates of two adjacent GPS points, finally calculating how many GPS points are needed by the distance according to the vehicle speed, and then calculating the longitude and latitude needing to be offset every second, namely the longitude and latitude offset, and finally obtaining a track, as shown in fig. 4. However, the track obtained by the Goldmap cannot be directly used by the equipment, the equipment uses standard GPS point coordinates, and the Goldcalculation is offset, so that the track needs to be converted into standard GPS coordinate points. And finally, storing the coordinate set into a coordinate file for equipment to use. The first vehicle-mounted terminal obtains a GPS coordinate point every second according to time, sends the GPS coordinate point to the second vehicle-mounted terminal, or the second vehicle-mounted terminal loads the coordinate set by itself and displays the coordinate set on a display screen. As can be seen from fig. 4, the GPS point coordinates are uniformly distributed on the route, which can satisfy development and test use.
The Goldmap is loaded on line in a browser mode, so that the Goldmap can be developed through JavaScript, and on the basis of the above, the rest GPS points between the adjacent GPS points are calculated according to the principle.
Fig. 5 is a schematic structural diagram of a GPS route simulation data generating device according to an embodiment of the present invention. As shown in fig. 5, the apparatus includes a navigation route acquisition module 10, an existing GPS point acquisition module 20, an additional GPS point generation module 30, and a GPS route simulation data acquisition module 40, wherein: the navigation route acquisition module 10 is configured to: obtaining a navigation route from a preset starting point to a preset ending point through third-party map software; the existing GPS point acquisition module 20 is for: acquiring coordinate data of an existing GPS point in the navigation route by using an API (application program interface) of the third-party map software; the additional GPS point generating module 30 is configured to: generating coordinate data of an additional GPS point between two adjacent existing GPS points in the navigation route according to a preset vehicle speed, a preset transmission frequency of the coordinate data of the GPS points and the coordinate data of the two adjacent existing GPS points; the GPS route simulation data acquisition module 40 is configured to: and the coordinate data of the existing GPS points and the coordinate data of the additional GPS points form GPS route simulation data from the preset starting point to the preset ending point.
According to the embodiment of the invention, the existing GPS data is obtained by utilizing the third-party map software, the additional GPS data is further generated, and the existing GPS data and the additional GPS data jointly form the GPS route simulation data for testing, so that the efficiency of development and testing can be greatly improved, the cost is reduced, the route can be quickly changed, and the flexibility is high.
Further, based on the above embodiment, the additional GPS point generating module 30 is specifically configured to: acquiring distance information between two adjacent existing GPS points in the navigation route; obtaining the number of additional GPS points passing between the two adjacent existing GPS points when the vehicle runs along the navigation route according to the preset transmission frequency, the preset vehicle speed and the distance information; and obtaining coordinate data of the additional GPS points between the two adjacent existing GPS points according to the coordinate data of the two adjacent existing GPS points and the number of the additional GPS points passing between the two adjacent existing GPS points.
On the basis of the embodiment, the embodiment of the invention obtains the coordinate data of the additional GPS points between the two adjacent existing GPS points by obtaining the number of the additional GPS points passing between the two adjacent existing GPS points, thereby improving the rapidity of generating the coordinate data of the additional GPS points.
Further, based on the above embodiment, the additional GPS point generating module 30 is specifically configured to, when obtaining the coordinate data of the additional GPS point between the two adjacent existing GPS points according to the coordinate data of the two adjacent existing GPS points and the number of additional GPS points passing between the two adjacent existing GPS points: and obtaining the latitude and longitude offset of each additional GPS point relative to the previous GPS point according to the coordinate data of the two adjacent existing GPS points and the number of the additional GPS points passing between the two adjacent existing GPS points, and sequentially obtaining the coordinate data of the additional GPS points between the two adjacent existing GPS points according to the coordinate data of the existing GPS points passing first in the navigation route in the two adjacent existing GPS points and the latitude and longitude offset.
Based on the embodiment, the embodiment of the invention sequentially obtains the coordinate data of the additional GPS points between the two adjacent existing GPS points according to the coordinate data of the existing GPS points which are passed through first in the navigation route in the two adjacent existing GPS points based on the latitude and longitude offset, thereby realizing the rapid and simple acquisition of the coordinate data of the additional GPS points.
Further, based on the above embodiment, the apparatus further includes a coordinate conversion module configured to: and converting the GPS route simulation data into standard GPS coordinate data and storing the standard GPS coordinate data into a coordinate file.
On the basis of the embodiment, the GPS route simulation data are converted into standard GPS coordinate data and stored into the coordinate file, so that a precondition is provided for effective test.
Further, based on the above embodiment, the apparatus further includes a test communication module configured to: and according to the preset transmission frequency, sequentially sending the coordinate data of the GPS points in the coordinate file to the vehicle-mounted terminal to be tested.
On the basis of the embodiment, the embodiment of the invention sequentially sends the coordinate data of the GPS points in the coordinate file to the vehicle-mounted terminal to be tested according to the preset transmission frequency, thereby realizing the actual test and improving the practicability.
Further, based on the above embodiment, the vehicle-mounted terminal to be tested includes a first vehicle-mounted terminal and a second vehicle-mounted terminal, and the test communication module is specifically configured to: the coordinate file is sent to a first vehicle-mounted terminal, and the first vehicle-mounted terminal sequentially sends the coordinate data of the GPS points in the coordinate file to the second vehicle-mounted terminal according to the preset transmission frequency; or the second vehicle-mounted terminal loads the coordinate file according to the preset transmission frequency, so that coordinate data of GPS points in the coordinate file are sequentially obtained; wherein the second in-vehicle terminal includes a display screen.
On the basis of the embodiment, the coordinate data of the GPS points in the coordinate file are sequentially sent to the second vehicle-mounted terminal by the first vehicle-mounted terminal according to the preset transmission frequency by sending the coordinate file to the first vehicle-mounted terminal; or the second vehicle-mounted terminal loads the coordinate file according to the preset transmission frequency to test, so that the flexibility of the test is improved.
The device provided by the embodiment of the invention is used for the method, and specific functions can refer to the flow of the method and are not repeated here.
Fig. 6 is a schematic diagram of an entity structure of an electronic device according to an embodiment of the present invention. As shown in fig. 6, the electronic device may include: processor 810, communication interface (Communications Interface) 820, memory 830, and communication bus 840, wherein processor 810, communication interface 820, memory 830 accomplish communication with each other through communication bus 840. The processor 810 may call logic instructions in the memory 830 to perform the following method: obtaining a navigation route from a preset starting point to a preset ending point through third-party map software; acquiring coordinate data of an existing GPS point in the navigation route by using an API (application program interface) of the third-party map software; generating coordinate data of an additional GPS point between two adjacent existing GPS points in the navigation route according to a preset vehicle speed, a preset transmission frequency of the coordinate data of the GPS points and the coordinate data of the two adjacent existing GPS points; and the coordinate data of the existing GPS points and the coordinate data of the additional GPS points form GPS route simulation data from the preset starting point to the preset ending point.
Further, the logic instructions in the memory 830 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, embodiments of the present invention also provide a non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor is implemented to perform the method provided in the above embodiments, for example, including: obtaining a navigation route from a preset starting point to a preset ending point through third-party map software; acquiring coordinate data of an existing GPS point in the navigation route by using an API (application program interface) of the third-party map software; generating coordinate data of an additional GPS point between two adjacent existing GPS points in the navigation route according to a preset vehicle speed, a preset transmission frequency of the coordinate data of the GPS points and the coordinate data of the two adjacent existing GPS points; and the coordinate data of the existing GPS points and the coordinate data of the additional GPS points form GPS route simulation data from the preset starting point to the preset ending point.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A GPS route simulation data generation method, comprising:
obtaining a navigation route from a preset starting point to a preset ending point through third-party map software;
acquiring coordinate data of an existing GPS point in the navigation route by using an API (application program interface) of the third-party map software;
generating coordinate data of an additional GPS point between two adjacent existing GPS points in the navigation route according to a preset vehicle speed, a preset transmission frequency of the coordinate data of the GPS points and the coordinate data of the two adjacent existing GPS points;
forming GPS route simulation data from the preset starting point to the preset ending point by the coordinate data of the existing GPS points and the coordinate data of the additional GPS points;
converting the GPS route simulation data into standard GPS coordinate data and storing the standard GPS coordinate data into a coordinate file;
and according to the preset transmission frequency, sequentially sending the coordinate data of the GPS points in the coordinate file to a vehicle-mounted terminal to be tested, simulating the process of acquiring GPS data by driving the vehicle along a track formed by the GPS route simulation data, and testing the performance of the vehicle-mounted terminal to be tested according to whether the track of the GPS route simulation data comprises a limited area and the identification result of the vehicle-mounted terminal to be tested.
2. The method for generating GPS route simulation data according to claim 1, wherein the generating the coordinate data of the additional GPS point between the two adjacent existing GPS points in the navigation route according to the preset vehicle speed, the preset transmission frequency of the coordinate data of the GPS point, and the coordinate data of the two adjacent existing GPS points specifically includes:
acquiring distance information between two adjacent existing GPS points in the navigation route;
obtaining the number of additional GPS points passing between the two adjacent existing GPS points when the vehicle runs along the navigation route according to the preset transmission frequency, the preset vehicle speed and the distance information;
and obtaining coordinate data of the additional GPS points between the two adjacent existing GPS points according to the coordinate data of the two adjacent existing GPS points and the number of the additional GPS points passing between the two adjacent existing GPS points.
3. The method for generating GPS route simulation data according to claim 2, wherein the obtaining the coordinate data of the additional GPS point between the two adjacent existing GPS points according to the coordinate data of the two adjacent existing GPS points and the number of additional GPS points passing between the two adjacent existing GPS points specifically includes: and obtaining the latitude and longitude offset of each additional GPS point relative to the previous GPS point according to the coordinate data of the two adjacent existing GPS points and the number of the additional GPS points passing between the two adjacent existing GPS points, and sequentially obtaining the coordinate data of the additional GPS points between the two adjacent existing GPS points according to the coordinate data of the existing GPS points passing first in the navigation route in the two adjacent existing GPS points and the latitude and longitude offset.
4. The GPS route simulation data generation method according to claim 1, wherein the preset transmission frequency is 1s.
5. The method for generating GPS route simulation data according to claim 1, wherein the vehicle-mounted terminal to be tested includes a first vehicle-mounted terminal and a second vehicle-mounted terminal, and the sequentially transmitting the coordinate data of the GPS point in the coordinate file to the vehicle-mounted terminal to be tested according to the preset transmission frequency specifically includes: the coordinate file is sent to a first vehicle-mounted terminal, and the first vehicle-mounted terminal sequentially sends the coordinate data of the GPS points in the coordinate file to the second vehicle-mounted terminal according to the preset transmission frequency; or the second vehicle-mounted terminal loads the coordinate file according to the preset transmission frequency, so that coordinate data of GPS points in the coordinate file are sequentially obtained; wherein the second in-vehicle terminal includes a display screen.
6. A GPS route simulation data generation device, comprising:
the navigation route acquisition module is used for: obtaining a navigation route from a preset starting point to a preset ending point through third-party map software;
an existing GPS point acquisition module for: acquiring coordinate data of an existing GPS point in the navigation route by using an API (application program interface) of the third-party map software;
an additional GPS point generation module for: generating coordinate data of an additional GPS point between two adjacent existing GPS points in the navigation route according to a preset vehicle speed, a preset transmission frequency of the coordinate data of the GPS points and the coordinate data of the two adjacent existing GPS points;
the GPS route simulation data acquisition module is used for: forming GPS route simulation data from the preset starting point to the preset ending point by the coordinate data of the existing GPS points and the coordinate data of the additional GPS points;
the coordinate conversion module is used for: converting the GPS route simulation data into standard GPS coordinate data and storing the standard GPS coordinate data into a coordinate file;
a test communication module for: and according to the preset transmission frequency, sequentially sending the coordinate data of the GPS points in the coordinate file to a vehicle-mounted terminal to be tested, simulating the process of acquiring GPS data by driving the vehicle along a track formed by the GPS route simulation data, and testing the performance of the vehicle-mounted terminal to be tested according to whether the track of the GPS route simulation data comprises a limited area and the identification result of the vehicle-mounted terminal to be tested.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor performs the steps of the GPS route simulation data generation method according to any of claims 1 to 5 when the program is executed.
8. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the GPS route simulation data generation method according to any of claims 1 to 5.
CN201910801662.1A 2019-08-28 2019-08-28 GPS route simulation data generation method and device Active CN110555256B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910801662.1A CN110555256B (en) 2019-08-28 2019-08-28 GPS route simulation data generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910801662.1A CN110555256B (en) 2019-08-28 2019-08-28 GPS route simulation data generation method and device

Publications (2)

Publication Number Publication Date
CN110555256A CN110555256A (en) 2019-12-10
CN110555256B true CN110555256B (en) 2023-05-19

Family

ID=68737154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910801662.1A Active CN110555256B (en) 2019-08-28 2019-08-28 GPS route simulation data generation method and device

Country Status (1)

Country Link
CN (1) CN110555256B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111460654A (en) * 2020-03-31 2020-07-28 上海云木科技有限公司 Vehicle-mounted navigation module simulation drive test system and method
CN112747771A (en) * 2020-12-24 2021-05-04 河南天迈科技有限公司 Method for simulating test positioning data
CN114184117A (en) * 2021-10-20 2022-03-15 山东齐鲁数通科技有限公司 Map point displacement moving method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103175541A (en) * 2011-12-26 2013-06-26 厦门高德软件有限公司 Virtual driving positioning information generation method and device
CN106403978A (en) * 2016-09-30 2017-02-15 北京百度网讯科技有限公司 Navigation route generating method and device
CN107991670A (en) * 2017-11-21 2018-05-04 宇龙计算机通信科技(深圳)有限公司 Air navigation aid and mobile terminal
CN109785667A (en) * 2019-03-11 2019-05-21 百度在线网络技术(北京)有限公司 Deviation recognition methods, device, equipment and storage medium
CN110057358A (en) * 2018-01-18 2019-07-26 中兴网鲲信息科技(上海)有限公司 A kind of air navigation aid and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9052214B2 (en) * 2006-05-22 2015-06-09 Volkswagen Ag Navigation system for a motor vehicle, method for operating a navigation system and motor vehicle including a navigation system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103175541A (en) * 2011-12-26 2013-06-26 厦门高德软件有限公司 Virtual driving positioning information generation method and device
CN106403978A (en) * 2016-09-30 2017-02-15 北京百度网讯科技有限公司 Navigation route generating method and device
CN107991670A (en) * 2017-11-21 2018-05-04 宇龙计算机通信科技(深圳)有限公司 Air navigation aid and mobile terminal
CN110057358A (en) * 2018-01-18 2019-07-26 中兴网鲲信息科技(上海)有限公司 A kind of air navigation aid and system
CN109785667A (en) * 2019-03-11 2019-05-21 百度在线网络技术(北京)有限公司 Deviation recognition methods, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110555256A (en) 2019-12-10

Similar Documents

Publication Publication Date Title
CN110555256B (en) GPS route simulation data generation method and device
CN105554876B (en) A kind of mobile terminal locating method and mobile terminal
CN111859587B (en) Method and device for constructing traffic simulation road network, storage medium and electronic equipment
CN110297261B (en) Satellite navigation simulation system and method for simulating train running track
CN106781605B (en) Motor vehicles and machines GPS satellite device for pre-positioning and method
CN107636490B (en) Method for transforming a position information into a local coordinate system
CN110719570A (en) Transmission method and communication device for map sensitive information
Ndoye et al. A recursive multiscale correlation-averaging algorithm for an automated distributed road-condition-monitoring system
CN115167182B (en) Automatic driving simulation test method, device, equipment and computer readable medium
CN105424051A (en) Method and equipment for determining traveling path of vehicle
US10949682B2 (en) Method for ascertaining a piece of topological information of an intersection
CN111368409A (en) Vehicle flow simulation processing method, device, equipment and storage medium
US20200408553A1 (en) Route information transmission method, route information transmission system, and in-vehicle terminal
CN109003171A (en) A kind of identification vehicle virtual driving brush singly deceives the method and device of benefit behavior
CN110726414B (en) Method and apparatus for outputting information
CN112714859B (en) Information processing apparatus
CN114818375A (en) Method, system, electronic device and storage medium for V2X simulation test
CN105139683A (en) Road condition information pushing method and device
CN113008246B (en) Map matching method and device
WO2009002015A1 (en) Path search system using compulsive research point, terminal, and control method thereof
KR20160035333A (en) Optimal route guidance system for vehicle, and route calculation server for the same
JP5342291B2 (en) Map data update system, map data update method
CN112633980A (en) Method, electronic device, and storage medium for vehicle website presentation
CN105203991A (en) Vehicle positioning method and device
CN108509635B (en) Method and apparatus for generating information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230720

Address after: No.508, tianzihu Avenue, tianzihu Town, Anji County, Huzhou City, Zhejiang Province

Patentee after: ZHEJIANG HONGQUAN ELECTRONIC TECHNOLOGY Co.,Ltd.

Address before: 310030 4th floor, building 2, No.3 Xiyuan 6th Road, Sandun Town, Xihu District, Hangzhou City, Zhejiang Province

Patentee before: ZHEJIANG HONGQUAN VEHICLE NETWORK CO.,LTD.