Driving route storage method and storage device thereof

By determining and removing quadrant information in the initial driving route, the target driving route data is formed, which solves the storage problem of large amounts of historical driving data and achieves a combination of space saving and data accuracy.

CN115131897BActive Publication Date: 2024-09-17WEICHAI POWER CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210770081.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-01
Publication Date
2024-09-17
Estimated Expiration
2042-07-01

AI Technical Summary

Technical Problem

In the existing technology, historical driving data takes up a large amount of space due to the large amount of data, making it difficult to store and manage effectively.

Method used

By obtaining the coordinate information and time information in the initial driving route, the quadrant information is determined, and part of the coordinate information is removed based on the quadrant information to form target coordinate information and target time information, forming smaller target driving route data and storing it.

Benefits of technology

It effectively reduces the storage space requirements for historical driving data, ensures the accuracy of target driving route information and a small amount of data, and solves storage problems caused by large amounts of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115131897B
    Figure CN115131897B
Patent Text Reader

Abstract

The present application provides a method for storing a driving route and a storage device thereof, the method comprising: first, obtaining initial driving route information including multiple coordinate information and corresponding time information; then, determining quadrant information according to the multiple coordinate information and time information, the quadrant information being used to characterize the quadrant in which the coordinate information is located; then, removing part of the coordinate information according to the quadrant information, so that the quadrant information of any two remaining adjacent target coordinate information are different, the remaining multiple coordinate information constitute multiple target coordinate information, and the multiple target coordinate information and the corresponding time information constitute target driving route information; finally, storing the target driving route information constituted by the multiple target coordinate information and the corresponding time information. The target driving route information has a small amount of data, which solves the problem of large space occupied due to the large amount of data of historical driving data in the prior art, and ensures that the target driving route information occupies a small amount of space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the automotive field, and in particular, to a method for storing a driving route, a storage device thereof, a computer-readable storage medium, a processor, and an electronic device. Background Art

[0002] In the process of automobile regeneration, how to make the vehicle consume less fuel during active regeneration requires analysis of the vehicle's historical driving routes. Therefore, storing the vehicle's historical driving routes is a necessary step. However, the current historical driving route data occupies a large amount of space due to the large amount of data.

[0003] The above information disclosed in the background technology section is only used to enhance the understanding of the background technology of the technology described in this article. Therefore, the background technology may contain certain information that does not form the prior art known in this country for those skilled in the art. Summary of the invention

[0004] The main purpose of the present application is to provide a method for storing a driving route, a storage device thereof, a computer-readable storage medium, a processor, and an electronic device, so as to solve the problem in the prior art that historical driving data occupies a large space due to the large amount of data.

[0005] According to one aspect of an embodiment of the present invention, a method for storing a driving route is provided, the method comprising: obtaining initial driving route information, the initial driving route information comprising a plurality of coordinate information and corresponding time information; determining quadrant information based on the plurality of coordinate information and the time information, the quadrant information being used to characterize the quadrant in which the coordinate information is located; removing part of the coordinate information based on the quadrant information, the remaining plurality of coordinate information constituting a plurality of target coordinate information, the quadrant information of any two adjacent target coordinate information being different, the plurality of target coordinate information and the corresponding time information constituting target driving route information; and storing the target driving route information.

[0006] Optionally, the quadrant information is determined based on the multiple coordinate information and the time information, including: taking the first coordinate information as the coordinate origin, and determining the quadrant information of the second coordinate information in a first direction and a second direction passing through the coordinate origin and perpendicular to each other as the positive direction of the X-axis and the positive direction of the Y-axis respectively, the first coordinate information is one of the multiple coordinate information, the time information corresponding to the second coordinate information is adjacent to the time information corresponding to the first coordinate information, and the time information corresponding to the second coordinate information is located after the time information corresponding to the first coordinate information.

[0007] Optionally, the X-axis includes the positive direction of the X-axis and the negative direction of the X-axis, the Y-axis includes the positive direction of the Y-axis and the negative direction of the Y-axis, and the first coordinate information is used as the coordinate origin to determine the quadrant information of the second coordinate information, including: when the second coordinate information is located in the first quadrant or in the positive direction of the X-axis, determining that the corresponding quadrant information is the first quadrant information; when the second coordinate information is located in the second quadrant or in the positive direction of the Y-axis, determining that the quadrant information is the second quadrant information; when the second coordinate information is located in the third quadrant or in the negative direction of the X-axis, determining that the quadrant information is the third quadrant information; when the second coordinate information is located in the fourth quadrant or in the negative direction of the Y-axis, determining that the quadrant information is the fourth quadrant information.

[0008] Optionally, according to the quadrant information, part of the coordinate information is removed, and the remaining multiple coordinate information constitute multiple target coordinate information, including: a first determination step, determining whether the quadrant information corresponding to the third coordinate information is the same as the quadrant information corresponding to the fourth coordinate information, the third coordinate information is the coordinate information representing the starting point position in the initial driving route information, the time information corresponding to the fourth coordinate information is adjacent to the time information corresponding to the third coordinate information, and the time information corresponding to the fourth coordinate information is located after the time information corresponding to the third coordinate information; a second determination step, when the quadrant information corresponding to the fourth coordinate information is different from the quadrant information corresponding to the third coordinate information, determining that the fourth coordinate information is The target coordinate information, when the quadrant information corresponding to the fourth coordinate information is the same as the quadrant information corresponding to the third coordinate information, remove the fourth coordinate information so that the target coordinate information does not include the fourth coordinate information; a third determination step, determining the latest fourth coordinate information, the time information corresponding to the latest fourth coordinate information is adjacent to the time information corresponding to the fourth coordinate information, and the time information corresponding to the latest fourth coordinate information is located after the time information corresponding to the fourth coordinate information; a loop step, looping the first determination step, the second determination step and the third determination step until the latest fourth coordinate information corresponds to the coordinate information at the end position in the initial driving route information.

[0009] Optionally, before storing the target driving route information, the method further includes: determining the coordinate information corresponding to the starting point position and the end point position in the initial driving route information as the target coordinate information.

[0010] Optionally, obtaining the initial driving route information includes: obtaining a predetermined step length, the predetermined step length including a predetermined duration or a predetermined distance; dividing the driving route information into equal parts according to the predetermined step length, determining a plurality of the coordinate information and the corresponding time information, and obtaining the initial driving route information, the driving route information being the historical driving data of the corresponding vehicle.

[0011] According to another aspect of an embodiment of the present invention, a driving route storage device is also provided, the device comprising an acquisition unit, a first determination unit, a removal unit and a storage unit, wherein the acquisition unit is used to acquire initial driving route information, the initial driving route information comprising a plurality of coordinate information and corresponding time information; the first determination unit is used to determine quadrant information based on the plurality of coordinate information and the time information, the quadrant information being used to characterize the quadrant in which the coordinate information is located; the removal unit is used to remove part of the coordinate information based on the quadrant information, the remaining plurality of coordinate information constituting a plurality of target coordinate information, the quadrant information of any two adjacent target coordinate information being different, the plurality of target coordinate information and the corresponding time information constituting the target driving route information; the storage unit is used to store the target driving route information.

[0012] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein the program is used to execute any one of the methods described.

[0013] According to yet another aspect of the embodiments of the present invention, a processor is provided, wherein the processor is used to run a program, wherein any one of the methods is executed when the program is run.

[0014] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the methods described.

[0015] In an embodiment of the present invention, in the method for storing the driving route, first, initial driving route information including multiple coordinate information and corresponding time information is obtained; then, quadrant information is determined based on the multiple coordinate information and the time information, and the quadrant information is used to characterize the quadrant in which the coordinate information is located; thereafter, based on the quadrant information, part of the coordinate information is removed so that the quadrant information of any two adjacent target coordinate information remaining are different, and the multiple coordinate information remaining constitutes multiple target coordinate information, and the multiple target coordinate information and the corresponding time information constitute the target driving route information; finally, the target driving route information constituted by the multiple target coordinate information and the corresponding time information is stored. Compared with the problem of historical driving data in the prior art that occupies a large space due to the large data volume, the driving route storage method of the present application obtains the initial driving route information including the coordinate information and the corresponding time information, determines the quadrant information according to the time information and the coordinate information, and removes part of the coordinate information according to the quadrant information, so that the quadrant information of any two remaining adjacent coordinate information are different, that is, the multiple coordinate information in the initial driving route information are filtered to obtain the target coordinate information, so that the data volume of the target driving route information composed of the target coordinate information and the corresponding time information is small, which solves the problem of historical driving data in the prior art that occupies a large space due to the large data volume, and ensures that the target driving route information occupies a small space. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0017] Figure 1 A schematic diagram of a method for storing a driving route according to an embodiment of the present application is shown;

[0018] Figure 2 A schematic diagram showing a storage device for a driving route according to an embodiment of the present application;

[0019] Figure 3 A flow chart showing storage of a driving route according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0020] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0021] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings 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 ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0023] It should be understood that when an element (such as a layer, film, region, or substrate) is described as being "on" another element, the element may be directly on the other element, or there may be intermediate elements. Moreover, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element, or "connected" to the other element through a third element.

[0024] As mentioned in the background technology, the historical driving data in the prior art has the problem of occupying a large space due to the large amount of data. In order to solve the above problem, in a typical embodiment of the present application, a method for storing a driving route, a storage device thereof, a computer-readable storage medium, a processor and an electronic device are provided.

[0025] According to an embodiment of the present application, a method for storing a driving route is provided.

[0026] Figure 1 FIG. 1 is a flow chart of a method for storing a driving route according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0027] Step S101, obtaining initial driving route information, the initial driving route information including a plurality of coordinate information and corresponding time information;

[0028] Step S102, determining quadrant information according to the plurality of coordinate information and the time information, wherein the quadrant information is used to represent the quadrant in which the coordinate information is located;

[0029] Step S103, according to the quadrant information, part of the coordinate information is removed, and the remaining plurality of coordinate information constitutes a plurality of target coordinate information, the quadrant information of any two adjacent target coordinate information is different, and the plurality of target coordinate information and the corresponding time information constitute target driving route information;

[0030] Step S104, storing the above target driving route information.

[0031] In the above-mentioned driving route storage method, first, the initial driving route information including multiple coordinate information and corresponding time information is obtained; then, based on the multiple coordinate information and the time information, the quadrant information is determined, and the quadrant information is used to characterize the quadrant where the coordinate information is located; thereafter, based on the quadrant information, part of the coordinate information is removed so that the quadrant information of any two adjacent target coordinate information is different, and the remaining multiple coordinate information constitutes multiple target coordinate information, and the multiple target coordinate information and the corresponding time information constitute the target driving route information; finally, the target driving route information constituted by the multiple target coordinate information and the corresponding time information is stored. Compared with the problem of historical driving data in the prior art that occupies a large space due to the large data volume, the storage method of the above-mentioned driving route of the present application obtains the above-mentioned initial driving route information including the above-mentioned coordinate information and the corresponding above-mentioned time information, and then determines the above-mentioned quadrant information according to the above-mentioned time information and the above-mentioned coordinate information, and removes part of the above-mentioned coordinate information according to the above-mentioned quadrant information, so that the above-mentioned quadrant information of any two remaining adjacent above-mentioned coordinate information are different, that is, the above-mentioned multiple above-mentioned coordinate information in the above-mentioned initial driving route information are filtered to obtain the above-mentioned target coordinate information, so that the above-mentioned target driving route information composed of the above-mentioned target coordinate information and the corresponding above-mentioned time information has a small data volume, which solves the problem of historical driving data in the prior art that occupies a large space due to the large data volume, and ensures that the above-mentioned target driving route information occupies a small space.

[0032] In a specific embodiment, two methods are currently mainly used to filter out part of the above-mentioned coordinate information among the multiple above-mentioned coordinate information. The first method is to traverse all the above-mentioned coordinate information according to the sequence of the above-mentioned time information. For a certain one of the above-mentioned coordinate information, the above-mentioned coordinate information is connected with two adjacent above-mentioned coordinate information straight lines, and an angle is formed between the two straight lines. The judgment is made according to a preset angle threshold. If the angle of the above-mentioned angle is greater than the above-mentioned angle threshold, the corresponding above-mentioned coordinate information is filtered out. However, in the case where the corresponding vehicle makes a small turn, the corresponding above-mentioned coordinate information will also be filtered out, so that the remaining above-mentioned coordinate information cannot accurately reflect the actual running route of the vehicle. The second method is to traverse all the above-mentioned coordinate information according to the sequence of the above-mentioned time information. For two adjacent above-mentioned coordinate information, by calculating the above-mentioned two adjacent above-mentioned The straight-line distance of the coordinate information is determined according to a preset distance threshold. If the straight-line distance is less than the distance threshold, the previous coordinate information is filtered out and the next coordinate information is retained. However, when the vehicle is turning slowly and sharply, the straight-line distance is small, so the coordinate information is filtered out, so that the remaining coordinate information cannot accurately reflect the actual running route of the vehicle. The process of determining the target driving route information of the present application is to determine the coordinate information that needs to be removed through the quadrant information of the coordinate information. Even if two adjacent coordinate information meet the requirements of a small turn or a large turn, due to the different quadrant information, the related coordinate information will constitute the target coordinate information, thereby ensuring that the target coordinate information can more accurately reflect the driving route of the vehicle, and at the same time ensuring that the target driving route information occupies less space.

[0033] Specifically, the quadrant information of any two adjacent target coordinate information is different, that is, one of two adjacent quadrant information in the plurality of coordinate information is filtered out, and the coordinate information in the target driving route information is longitude and latitude coordinates.

[0034] According to a specific embodiment of the present application, quadrant information is determined based on the multiple coordinate information and the time information, including: taking the first coordinate information as the coordinate origin, a first direction and a second direction passing through the coordinate origin and perpendicular to each other are respectively the positive direction of the X-axis and the positive direction of the Y-axis, determining the quadrant information of the second coordinate information, the first coordinate information is one of the multiple coordinate information, the time information corresponding to the second coordinate information is adjacent to the time information corresponding to the first coordinate information, and the time information corresponding to the second coordinate information is located after the time information corresponding to the first coordinate information. The first coordinate information located before and adjacent to the second coordinate information among the multiple coordinate information is used as the coordinate origin to determine the quadrant information of the second coordinate information, so that the quadrant information corresponding to each coordinate information is determined with the previous coordinate information as the origin, ensuring that the quadrant information can represent the positional relationship of the second coordinate information relative to the first coordinate information, so that by subsequently removing part of the coordinate information according to the quadrant information, the target coordinate information obtained can more accurately reflect the driving route of the corresponding vehicle. At the same time, the number of the target coordinate information is small, which further ensures that the space occupied by the stored target driving route information is small, and at the same time ensures that the accuracy of the target driving route information is high.

[0035] According to another specific embodiment of the present application, the X-axis includes the positive direction of the X-axis and the reverse direction of the X-axis, the Y-axis includes the positive direction of the Y-axis and the reverse direction of the Y-axis, and the first coordinate information is used as the coordinate origin to determine the quadrant information of the second coordinate information, including: when the second coordinate information is located in the first quadrant or in the positive direction of the X-axis, determining the corresponding quadrant information as the first quadrant information; when the second coordinate information is located in the second quadrant or in the positive direction of the Y-axis, determining the quadrant information as the second quadrant information; when the second coordinate information is located in the third quadrant or in the reverse direction of the X-axis, determining the quadrant information as the first quadrant information; when the second coordinate information is located in the fourth quadrant or in the reverse direction of the Y-axis, determining the quadrant information as the fourth quadrant information. The quadrant information of the second coordinate information is determined by determining the position of the second coordinate information in the coordinate axis, wherein, when the second coordinate information is in the first quadrant or in the positive direction of the X-axis, the corresponding quadrant information is determined to be the first quadrant information; when the second coordinate information is in the second quadrant or in the positive direction of the Y-axis, the quadrant information is determined to be the second quadrant information; when the second coordinate information is in the third quadrant or in the reverse direction of the X-axis, the quadrant information is determined to be the third quadrant information; when the second coordinate information is in the fourth quadrant or in the reverse direction of the Y-axis, the quadrant information is determined to be the fourth quadrant information, so that no matter where the second coordinate information is located on the coordinate axis, the quadrant information of the second coordinate information can be determined, so that part of the coordinate information is subsequently removed according to the quadrant information, further ensuring that the target driving route information occupies less space and has higher accuracy.

[0036] In order to further ensure that the target driving route information occupies a small space, according to another specific embodiment of the present application, according to the quadrant information, part of the coordinate information is removed, and the remaining multiple coordinate information constitute multiple target coordinate information, including: a first determination step, determining whether the quadrant information corresponding to the third coordinate information is the same as the quadrant information corresponding to the fourth coordinate information, the third coordinate information is the coordinate information representing the starting point position in the initial driving route information, the time information corresponding to the fourth coordinate information is adjacent to the time information corresponding to the third coordinate information, and the time information corresponding to the fourth coordinate information is located after the time information corresponding to the third coordinate information; a second determination step, determining whether the quadrant information corresponding to the fourth coordinate information is the same as the quadrant information corresponding to the third coordinate information. In different situations, determine the fourth coordinate information as the target coordinate information, and when the quadrant information corresponding to the fourth coordinate information is the same as the quadrant information corresponding to the third coordinate information, remove the fourth coordinate information so that the target coordinate information does not include the fourth coordinate information; a third determination step, determine the latest fourth coordinate information, the time information corresponding to the latest fourth coordinate information is adjacent to the time information corresponding to the fourth coordinate information, and the time information corresponding to the latest fourth coordinate information is located after the time information corresponding to the fourth coordinate information; a loop step, looping the first determination step, the second determination step and the third determination step until the latest fourth coordinate information corresponds to the coordinate information at the end position in the initial driving route information. By determining whether the quadrant information corresponding to the third coordinate information of the starting position is the same as the quadrant information of the fourth coordinate information of the next one, and in the case that the quadrant information is different, determining that the fourth coordinate information is the target coordinate information, and in the case that the quadrant information is the same, determining that the fourth coordinate information is not the target coordinate information, so that the fourth coordinate information is removed from the multiple coordinate information, ensuring that the target coordinate information does not include the fourth coordinate information, and then by determining that the coordinate information located after and adjacent to the fourth coordinate information is the latest fourth coordinate information, the first determination step, the second determination step and the third determination step are cyclically executed, so that the quadrant information corresponding to the multiple coordinate information is determined, and at the same time, by removing the next one of the adjacent quadrant information, multiple target coordinate information is obtained, so that the quadrant information of any two adjacent target coordinate information is different, ensuring that the number of the target coordinate information is small, so that the data amount of the target driving route information composed of the target coordinate information and the corresponding time information is small, solving the problem of large space occupied by historical driving data due to large data amount in the prior art, and further ensuring that the space occupied by the target driving route information is small.

[0037] In a specific embodiment, since the first coordinate information in the initial driving route information does not have the previous coordinate information, the first coordinate information does not have the quadrant information, and therefore the third coordinate information is the coordinate information adjacent to the first coordinate information.

[0038] In order to further ensure that the accuracy of the target driving route information is high, according to a specific embodiment of the present application, before storing the target driving route information, the method further includes: determining the coordinate information corresponding to the starting position and the end position in the initial driving route information as the target coordinate information. By determining the coordinate information corresponding to the initial position and the end position in the initial driving route information as the target coordinate information, the target driving route information includes the coordinate information of the initial position and the key position, further ensuring that the accuracy of the target driving route information is high.

[0039] Specifically, the first and last of the multiple coordinate information are both the target coordinate information, so that the obtained target driving route information includes a starting point and an end point, further ensuring that the target driving route information can more accurately reflect the actual driving route of the vehicle.

[0040] In order to further ensure that the accuracy of the target driving route information is high, according to another specific embodiment of the present application, obtaining the initial driving route information includes: obtaining a predetermined step length, the predetermined step length includes a predetermined duration or a predetermined distance; dividing the driving route information into equal parts according to the predetermined step length, determining a plurality of the above-mentioned coordinate information and the corresponding time information, and obtaining the above-mentioned initial driving route information, the above-mentioned driving route information is the historical driving data of the corresponding vehicle. By setting the above-mentioned predetermined step length, the above-mentioned predetermined step length can be the above-mentioned predetermined duration, the above-mentioned predetermined step length can also be the above-mentioned predetermined distance, and then dividing the above-mentioned driving route information into equal parts according to the above-mentioned predetermined step length, obtaining a plurality of the above-mentioned coordinate information and the corresponding time information, it is ensured that a plurality of the above-mentioned coordinate information and the corresponding time information can be obtained in two ways, so that the method of determining the above-mentioned predetermined step length can be determined according to the actual situation, and it is ensured that the above-mentioned coordinate information obtained according to the above-mentioned predetermined step length can more accurately reflect the driving data of the above-mentioned vehicle, and further ensures that the accuracy of the above-mentioned target driving route information determined according to the above-mentioned coordinate information is high.

[0041] It should be noted that, according to the specific circumstances of the above-mentioned driving route information, the method for obtaining the above-mentioned predetermined step length and the specific value of the predetermined step length are determined. In the case where there are many turns in the above-mentioned driving route information, the predetermined time can be exceeded and the predetermined time can be relatively short. In the case where there are more straight lines in the above-mentioned driving route information, the predetermined distance can be exceeded and the predetermined distance can be relatively long.

[0042] Specifically, the above-mentioned driving route information is a directed route map composed of longitude and latitude coordinates, which can be obtained through GPS or other existing methods.

[0043] In a specific embodiment, since the target driving route information finally determined occupies a smaller space, the amount of calculation required for subsequent matching of the route map according to the target driving route information is smaller.

[0044] The embodiment of the present application also provides a storage device for a driving route. It should be noted that the storage device for a driving route in the embodiment of the present application can be used to execute the storage method for a driving route provided in the embodiment of the present application. The storage device for a driving route provided in the embodiment of the present application is introduced below.

[0045] Figure 2 Schematic diagram of a storage device for a driving route according to an embodiment of the present application. Figure 2 As shown, the device includes an acquisition unit 10, a first determination unit 20, a removal unit 30 and a storage unit 40, wherein the acquisition unit 10 is used to acquire initial driving route information, and the initial driving route information includes multiple coordinate information and corresponding time information; the first determination unit 20 is used to determine quadrant information based on the multiple coordinate information and the time information, and the quadrant information is used to characterize the quadrant where the coordinate information is located; the removal unit 30 is used to remove part of the coordinate information based on the quadrant information, and the remaining multiple coordinate information constitute multiple target coordinate information, and the quadrant information of any two adjacent target coordinate information is different, and the multiple target coordinate information and the corresponding time information constitute the target driving route information; the storage unit 40 is used to store the target driving route information.

[0046] In the storage device of the driving route, the initial driving route information is acquired by the acquisition unit, and the initial driving route information includes a plurality of coordinate information and corresponding time information; the first determination unit determines the quadrant information according to the plurality of coordinate information and the time information, and the quadrant information is used to characterize the quadrant in which the coordinate information is located; the removal unit removes part of the coordinate information according to the quadrant information, and the remaining plurality of coordinate information constitutes a plurality of target coordinate information, and the quadrant information of any two adjacent target coordinate information is different, and the plurality of target coordinate information and the corresponding time information constitute the target driving route information; the target driving route information is stored by the storage unit. Compared with the problem of historical driving data in the prior art that occupies a large space due to the large data volume, the storage device of the above-mentioned driving route of the present application obtains the above-mentioned initial driving route information including the above-mentioned coordinate information and the corresponding above-mentioned time information, and then determines the above-mentioned quadrant information according to the above-mentioned time information and the above-mentioned coordinate information, and removes part of the above-mentioned coordinate information according to the above-mentioned quadrant information, so that the above-mentioned quadrant information of any two remaining adjacent above-mentioned coordinate information are different, that is, the above-mentioned coordinate information in the above-mentioned initial driving route information is filtered to obtain the above-mentioned target coordinate information, so that the above-mentioned target driving route information composed of the above-mentioned target coordinate information and the corresponding above-mentioned time information has a small data volume, which solves the problem of historical driving data in the prior art that occupies a large space due to the large data volume, and ensures that the above-mentioned target driving route information occupies a small space.

[0047] In a specific embodiment, two methods are currently mainly used to filter out part of the above-mentioned coordinate information among the multiple above-mentioned coordinate information. The first method is to traverse all the above-mentioned coordinate information according to the sequence of the above-mentioned time information. For a certain one of the above-mentioned coordinate information, the above-mentioned coordinate information is connected with two adjacent above-mentioned coordinate information straight lines, and an angle is formed between the two straight lines. The judgment is made according to a preset angle threshold. If the angle of the above-mentioned angle is greater than the above-mentioned angle threshold, the corresponding above-mentioned coordinate information is filtered out. However, in the case where the corresponding vehicle makes a small turn, the corresponding above-mentioned coordinate information will also be filtered out, so that the remaining above-mentioned coordinate information cannot accurately reflect the actual running route of the vehicle. The second method is to traverse all the above-mentioned coordinate information according to the sequence of the above-mentioned time information. For two adjacent above-mentioned coordinate information, by calculating the above-mentioned two adjacent above-mentioned The straight-line distance of the coordinate information is determined according to a preset distance threshold. If the straight-line distance is less than the distance threshold, the previous coordinate information is filtered out and the next coordinate information is retained. However, when the vehicle is turning slowly and sharply, the straight-line distance is small, so the coordinate information is filtered out, so that the remaining coordinate information cannot accurately reflect the actual running route of the vehicle. The process of determining the target driving route information of the present application is to determine the coordinate information that needs to be removed through the quadrant information of the coordinate information. Even if two adjacent coordinate information meet the requirements of a small turn or a large turn, due to the different quadrant information, the related coordinate information will constitute the target coordinate information, thereby ensuring that the target coordinate information can more accurately reflect the driving route of the vehicle, and at the same time ensuring that the target driving route information occupies less space.

[0048] Specifically, the quadrant information of any two adjacent target coordinate information is different, that is, one of two adjacent quadrant information in the plurality of coordinate information is filtered out, and the coordinate information in the target driving route information is longitude and latitude coordinates.

[0049] According to a specific embodiment of the present application, the above-mentioned first determination unit includes a first determination module, and the above-mentioned first determination module is used to determine the above-mentioned quadrant information of the second coordinate information with the first coordinate information as the coordinate origin, and the first direction and the second direction passing through the above-mentioned coordinate origin and perpendicular to each other are respectively the positive direction of the X-axis and the positive direction of the Y-axis, the above-mentioned first coordinate information is one of the multiple above-mentioned coordinate information, the above-mentioned time information corresponding to the above-mentioned second coordinate information is adjacent to the time information corresponding to the above-mentioned first coordinate information, and the above-mentioned time information corresponding to the above-mentioned second coordinate information is located after the time information corresponding to the above-mentioned first coordinate information. The first coordinate information located before and adjacent to the second coordinate information among the multiple coordinate information is used as the coordinate origin to determine the quadrant information of the second coordinate information, so that the quadrant information corresponding to each coordinate information is determined with the previous coordinate information as the origin, ensuring that the quadrant information can represent the positional relationship of the second coordinate information relative to the first coordinate information, so that by subsequently removing part of the coordinate information according to the quadrant information, the target coordinate information obtained can more accurately reflect the driving route of the corresponding vehicle. At the same time, the number of the target coordinate information is small, which further ensures that the space occupied by the stored target driving route information is small, and at the same time ensures that the accuracy of the target driving route information is high.

[0050] According to another specific embodiment of the present application, the X-axis includes the positive direction of the X-axis and the reverse direction of the X-axis, the Y-axis includes the positive direction of the Y-axis and the reverse direction of the Y-axis, and the first determination module includes a first determination submodule, a second determination submodule, a third determination submodule and a fourth determination submodule, wherein the first determination submodule is used to determine that the corresponding quadrant information is the first quadrant information when the second coordinate information is located in the first quadrant or in the positive direction of the X-axis; the second determination submodule is used to determine that the quadrant information is the second quadrant information when the second coordinate information is located in the second quadrant or in the positive direction of the Y-axis; the third determination submodule is used to determine that the quadrant information is the third quadrant information when the second coordinate information is located in the third quadrant or in the reverse direction of the X-axis; and the fourth determination submodule is used to determine that the quadrant information is the fourth quadrant information when the second coordinate information is located in the fourth quadrant or in the reverse direction of the Y-axis. The quadrant information of the second coordinate information is determined by determining the position of the second coordinate information in the coordinate axis, wherein, when the second coordinate information is in the first quadrant or in the positive direction of the X-axis, the corresponding quadrant information is determined to be the first quadrant information; when the second coordinate information is in the second quadrant or in the positive direction of the Y-axis, the quadrant information is determined to be the second quadrant information; when the second coordinate information is in the third quadrant or in the reverse direction of the X-axis, the quadrant information is determined to be the third quadrant information; when the second coordinate information is in the fourth quadrant or in the reverse direction of the Y-axis, the quadrant information is determined to be the fourth quadrant information, so that no matter where the second coordinate information is located on the coordinate axis, the quadrant information of the second coordinate information can be determined, so that part of the coordinate information is subsequently removed according to the quadrant information, further ensuring that the target driving route information occupies less space and has higher accuracy.

[0051] In order to further ensure that the target driving route information occupies a small space, according to another specific embodiment of the present application, the removal unit includes a second determination module, a third determination module, a fourth determination module and a loop module, wherein the second determination module is used for the first determination step to determine whether the quadrant information corresponding to the third coordinate information is the same as the quadrant information corresponding to the fourth coordinate information, the third coordinate information is the coordinate information representing the starting position in the initial driving route information, the time information corresponding to the fourth coordinate information is adjacent to the time information corresponding to the third coordinate information, and the time information corresponding to the fourth coordinate information is located after the time information corresponding to the third coordinate information; the third determination module is used for the second determination step, when the quadrant information corresponding to the fourth coordinate information is different from the quadrant information corresponding to the third coordinate information In this case, the fourth coordinate information is determined to be the target coordinate information. When the quadrant information corresponding to the fourth coordinate information is the same as the quadrant information corresponding to the third coordinate information, the fourth coordinate information is removed so that the target coordinate information does not include the fourth coordinate information. The fourth determination module is used for the third determination step to determine the latest fourth coordinate information, the time information corresponding to the latest fourth coordinate information is adjacent to the time information corresponding to the fourth coordinate information, and the time information corresponding to the latest fourth coordinate information is located after the time information corresponding to the fourth coordinate information. The loop module is used for the loop step to loop the first determination step, the second determination step and the third determination step until the latest fourth coordinate information corresponds to the coordinate information at the end point in the initial driving route information.By determining whether the quadrant information corresponding to the third coordinate information of the starting position is the same as the quadrant information of the fourth coordinate information of the next one, and in the case that the quadrant information is different, determining that the fourth coordinate information is the target coordinate information, and in the case that the quadrant information is the same, determining that the fourth coordinate information is not the target coordinate information, so that the fourth coordinate information is removed from the multiple coordinate information, ensuring that the target coordinate information does not include the fourth coordinate information, and then by determining that the coordinate information located after and adjacent to the fourth coordinate information is the latest fourth coordinate information, the first determination step, the second determination step and the third determination step are cyclically executed, so that the quadrant information corresponding to the multiple coordinate information is determined, and at the same time, by removing the next one of the adjacent quadrant information, multiple target coordinate information is obtained, so that the quadrant information of any two adjacent target coordinate information is different, ensuring that the number of the target coordinate information is small, so that the data amount of the target driving route information composed of the target coordinate information and the corresponding time information is small, solving the problem of large space occupied by historical driving data due to large data amount in the prior art, and further ensuring that the space occupied by the target driving route information is small.

[0052] In a specific embodiment, since the first coordinate information in the initial driving route information does not have the previous coordinate information, the first coordinate information does not have the quadrant information, and therefore the third coordinate information is the coordinate information adjacent to the first coordinate information.

[0053] In order to further ensure that the accuracy of the target driving route information is high, according to a specific embodiment of the present application, the device further includes a second determination unit, which is used to determine that the coordinate information corresponding to the starting position and the end position in the initial driving route information is the target coordinate information before storing the target driving route information. By determining that the coordinate information corresponding to the initial position and the end position in the initial driving route information is the target coordinate information, the target driving route information includes the coordinate information of the initial position and the key position, further ensuring that the accuracy of the target driving route information is high.

[0054] Specifically, the first and last of the multiple coordinate information are both the target coordinate information, so that the obtained target driving route information includes a starting point and an end point, further ensuring that the target driving route information can more accurately reflect the actual driving route of the vehicle.

[0055] In order to further ensure that the accuracy of the target driving route information is high, according to another specific embodiment of the present application, the acquisition unit includes an acquisition module and a processing module, wherein the acquisition module is used to obtain a predetermined step length, and the predetermined step length includes a predetermined duration or a predetermined distance; the processing module is used to divide the driving route information into equal parts by the predetermined step length, determine a plurality of the above-mentioned coordinate information and the corresponding time information, and obtain the above-mentioned initial driving route information, and the above-mentioned driving route information is the historical driving data of the corresponding vehicle. By setting the above-mentioned predetermined step length, the above-mentioned predetermined step length can be the above-mentioned predetermined duration, and the above-mentioned predetermined step length can also be the above-mentioned predetermined distance, and then the above-mentioned driving route information is divided into equal parts by the above-mentioned predetermined step length to obtain a plurality of the above-mentioned coordinate information and the corresponding time information, which ensures that the plurality of the above-mentioned coordinate information and the corresponding time information can be obtained in two ways, so that the method of the above-mentioned predetermined step length can be determined according to the actual situation, and ensures that the plurality of the above-mentioned coordinate information obtained according to the above-mentioned predetermined step length can more accurately reflect the driving data of the above-mentioned vehicle, and further ensures that the accuracy of the above-mentioned target driving route information determined according to the above-mentioned coordinate information is high.

[0056] It should be noted that, according to the specific circumstances of the above-mentioned driving route information, the method for obtaining the above-mentioned predetermined step length and the specific value of the predetermined step length are determined. In the case where there are many turns in the above-mentioned driving route information, the predetermined time can be exceeded and the predetermined time can be relatively short. In the case where there are more straight lines in the above-mentioned driving route information, the predetermined distance can be exceeded and the predetermined distance can be relatively long.

[0057] Specifically, the above-mentioned driving route information is a directed route map composed of longitude and latitude coordinates, which can be obtained through GPS or other existing methods.

[0058] In a specific embodiment, since the target driving route information finally determined occupies a smaller space, the amount of calculation required for subsequent matching of the route map according to the target driving route information is smaller.

[0059] The storage device of the driving route includes a processor and a memory. The acquisition unit, the first determination unit, the removal unit and the storage unit are all stored in the memory as program units. The processor executes the program units stored in the memory to realize corresponding functions.

[0060] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of large space occupied by historical driving data in the prior art due to large data volume can be solved by adjusting kernel parameters.

[0061] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0062] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned driving route storage method is implemented.

[0063] An embodiment of the present invention provides a processor, which is used to run a program, wherein the method for storing the driving route is executed when the program is run.

[0064] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:

[0065] Step S101, obtaining initial driving route information, the initial driving route information including a plurality of coordinate information and corresponding time information;

[0066] Step S102, determining quadrant information according to the plurality of coordinate information and the time information, wherein the quadrant information is used to represent the quadrant in which the coordinate information is located;

[0067] Step S103, according to the quadrant information, part of the coordinate information is removed, and the remaining plurality of coordinate information constitutes a plurality of target coordinate information, the quadrant information of any two adjacent target coordinate information is different, and the plurality of target coordinate information and the corresponding time information constitute target driving route information;

[0068] Step S104, storing the above target driving route information.

[0069] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0070] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:

[0071] Step S101, obtaining initial driving route information, the initial driving route information including a plurality of coordinate information and corresponding time information;

[0072] Step S102, determining quadrant information according to the plurality of coordinate information and the time information, wherein the quadrant information is used to represent the quadrant in which the coordinate information is located;

[0073] Step S103, according to the quadrant information, part of the coordinate information is removed, and the remaining plurality of coordinate information constitutes a plurality of target coordinate information, the quadrant information of any two adjacent target coordinate information is different, and the plurality of target coordinate information and the corresponding time information constitute target driving route information;

[0074] Step S104, storing the above target driving route information.

[0075] According to another typical embodiment of the present application, an electronic device is also provided, which includes one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include a method for executing any one of the above methods.

[0076] Figure 3 This is the storage workflow diagram for the driving route. Figure 3 For detailed explanation:

[0077] Input the driving route information and the predetermined step length, wherein the predetermined step length includes a predetermined duration or a predetermined distance;

[0078] Divide the driving route information into equal parts according to the predetermined step length, determine a plurality of the coordinate information and the corresponding time information, and obtain the initial driving route information;

[0079] Determine the coordinate information corresponding to the starting point position and the end point position in the initial driving route information as the target coordinate information;

[0080] Taking the third coordinate information as the coordinate origin, determining the quadrant information of the fourth coordinate information, the third coordinate information being the coordinate information representing the starting point position in the initial driving route information, the time information corresponding to the fourth coordinate information being adjacent to the time information corresponding to the third coordinate information, and the time information corresponding to the fourth coordinate information being after the time information corresponding to the third coordinate information;

[0081] determining whether the quadrant information corresponding to the third coordinate information is the same as the quadrant information corresponding to the fourth coordinate information; if the quadrant information corresponding to the fourth coordinate information is different from the quadrant information corresponding to the third coordinate information, determining the fourth coordinate information to be the target coordinate information; if the quadrant information corresponding to the fourth coordinate information is the same as the quadrant information corresponding to the third coordinate information, removing the fourth coordinate information so that the target coordinate information does not include the fourth coordinate information;

[0082] Traverse all the above coordinate information to obtain multiple target coordinate information;

[0083] The plurality of target coordinate information and the corresponding time information constitute the target driving route information;

[0084] The target driving route information is stored.

[0085] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0086] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the above-mentioned units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0087] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0088] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0089] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0090] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0091] 1) In the method for storing the driving route of the present application, first, the initial driving route information including multiple coordinate information and corresponding time information is obtained; then, the quadrant information is determined based on the multiple coordinate information and the time information, and the quadrant information is used to characterize the quadrant in which the coordinate information is located; thereafter, based on the quadrant information, part of the coordinate information is removed so that the quadrant information of any two adjacent target coordinate information is different, and the remaining multiple coordinate information constitutes multiple target coordinate information, and the multiple target coordinate information and the corresponding time information constitute the target driving route information; finally, the target driving route information consisting of the multiple target coordinate information and the corresponding time information is stored. Compared with the problem of historical driving data in the prior art that occupies a large space due to the large data volume, the storage method of the above-mentioned driving route of the present application obtains the above-mentioned initial driving route information including the above-mentioned coordinate information and the corresponding above-mentioned time information, and then determines the above-mentioned quadrant information according to the above-mentioned time information and the above-mentioned coordinate information, and removes part of the above-mentioned coordinate information according to the above-mentioned quadrant information, so that the above-mentioned quadrant information of any two remaining adjacent above-mentioned coordinate information are different, that is, the above-mentioned multiple above-mentioned coordinate information in the above-mentioned initial driving route information are filtered to obtain the above-mentioned target coordinate information, so that the above-mentioned target driving route information composed of the above-mentioned target coordinate information and the corresponding above-mentioned time information has a small data volume, which solves the problem of historical driving data in the prior art that occupies a large space due to the large data volume, and ensures that the above-mentioned target driving route information occupies a small space.

[0092] 2) In the storage device for the driving route of the present application, the initial driving route information is acquired by the acquisition unit, and the initial driving route information includes a plurality of coordinate information and corresponding time information; the first determination unit determines the quadrant information according to the plurality of coordinate information and the time information, and the quadrant information is used to characterize the quadrant where the coordinate information is located; the removal unit removes part of the coordinate information according to the quadrant information, and the remaining plurality of coordinate information constitutes a plurality of target coordinate information, and the quadrant information of any two adjacent target coordinate information is different, and the plurality of target coordinate information and the corresponding time information constitute the target driving route information; the target driving route information is stored by the storage unit. Compared with the problem of historical driving data in the prior art that occupies a large space due to the large data volume, the storage device of the above-mentioned driving route of the present application obtains the above-mentioned initial driving route information including the above-mentioned coordinate information and the corresponding above-mentioned time information, and then determines the above-mentioned quadrant information according to the above-mentioned time information and the above-mentioned coordinate information, and removes part of the above-mentioned coordinate information according to the above-mentioned quadrant information, so that the above-mentioned quadrant information of any two remaining adjacent above-mentioned coordinate information are different, that is, the above-mentioned coordinate information in the above-mentioned initial driving route information is filtered to obtain the above-mentioned target coordinate information, so that the above-mentioned target driving route information composed of the above-mentioned target coordinate information and the corresponding above-mentioned time information has a small data volume, which solves the problem of historical driving data in the prior art that occupies a large space due to the large data volume, and ensures that the above-mentioned target driving route information occupies a small space.

[0093] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for storing a driving route, characterized in that: The method comprises: Acquire initial driving route information, wherein the initial driving route information includes a plurality of coordinate information and corresponding time information; Determine quadrant information according to the plurality of coordinate information and the time information, wherein the quadrant information is used to represent the quadrant in which the coordinate information is located; According to the quadrant information, part of the coordinate information is removed, and the remaining multiple coordinate information constitutes multiple target coordinate information, the quadrant information of any two adjacent target coordinate information is different, and the multiple target coordinate information and the corresponding time information constitute target driving route information; storing the target driving route information, Determining quadrant information according to the plurality of coordinate information and the time information includes: The quadrant information of the second coordinate information is determined by taking the first coordinate information as the coordinate origin, a first direction and a second direction passing through the coordinate origin and perpendicular to each other are respectively the positive direction of the X axis and the positive direction of the Y axis, the first coordinate information is one of the plurality of coordinate information, the time information corresponding to the second coordinate information is adjacent to the time information corresponding to the first coordinate information, and the time information corresponding to the second coordinate information is located after the time information corresponding to the first coordinate information, According to the quadrant information, part of the coordinate information is removed, and the remaining plurality of coordinate information constitutes a plurality of target coordinate information, including: A first determination step is to determine whether the quadrant information corresponding to the third coordinate information is the same as the quadrant information corresponding to the fourth coordinate information, the third coordinate information being the coordinate information representing the starting point position in the initial driving route information, the time information corresponding to the fourth coordinate information being adjacent to the time information corresponding to the third coordinate information, and the time information corresponding to the fourth coordinate information being located after the time information corresponding to the third coordinate information; A second determination step, in a case where the quadrant information corresponding to the fourth coordinate information is different from the quadrant information corresponding to the third coordinate information, determining the fourth coordinate information as the target coordinate information, and in a case where the quadrant information corresponding to the fourth coordinate information is the same as the quadrant information corresponding to the third coordinate information, removing the fourth coordinate information so that the target coordinate information does not include the fourth coordinate information; A third determination step is to determine the latest fourth coordinate information, wherein the time information corresponding to the latest fourth coordinate information is adjacent to the time information corresponding to the fourth coordinate information determined as the target coordinate information or removed, and the time information corresponding to the latest fourth coordinate information is located after the time information corresponding to the fourth coordinate information determined as the target coordinate information or removed; A loop step, looping the first determination step, the second determination step and the third determination step until the latest fourth coordinate information corresponds to the coordinate information at the end point in the initial driving route information.

2. The method according to claim 1, characterized in that The X-axis includes the positive direction of the X-axis and the negative direction of the X-axis, the Y-axis includes the positive direction of the Y-axis and the negative direction of the Y-axis, and the quadrant information of the second coordinate information is determined with the first coordinate information as the coordinate origin, including: When the second coordinate information is located in the first quadrant or in the positive direction of the X-axis, determining that the corresponding quadrant information is the first quadrant information; When the second coordinate information is located in the second quadrant or in the positive direction of the Y-axis, determining that the quadrant information is the second quadrant information; When the second coordinate information is located in the third quadrant or the X-axis is reversed, determining that the quadrant information is the third quadrant information; When the second coordinate information is located in the fourth quadrant or the Y-axis is reversed, the quadrant information is determined to be the fourth quadrant information.

3. The method according to claim 1, characterized in that Before storing the target driving route information, the method further includes: The coordinate information corresponding to the starting point position and the end point position in the initial driving route information is determined as the target coordinate information.

4. The method according to claim 1, characterized in that: Get the initial driving route information, including: Obtaining a predetermined step length, where the predetermined step length includes a predetermined duration or a predetermined distance; The driving route information is divided into equal parts according to the predetermined step length, a plurality of the coordinate information and the corresponding time information are determined, and the initial driving route information is obtained, where the driving route information is the historical driving data of the corresponding vehicle.

5. A storage device for a driving route, characterized in that: The device comprises: An acquisition unit, used to acquire initial driving route information, wherein the initial driving route information includes a plurality of coordinate information and corresponding time information; A first determining unit, configured to determine quadrant information according to the plurality of coordinate information and the time information, wherein the quadrant information is used to represent the quadrant in which the coordinate information is located; a removing unit, configured to remove part of the coordinate information according to the quadrant information, and the remaining plurality of coordinate information constitutes a plurality of target coordinate information, wherein the quadrant information of any two adjacent target coordinate information is different, and the plurality of target coordinate information and the corresponding time information constitute target driving route information; a storage unit, used to store the target driving route information, The first determining unit includes: A first determination module is used to determine the quadrant information of the second coordinate information with the first coordinate information as the coordinate origin, a first direction and a second direction passing through the coordinate origin and perpendicular to each other being respectively the positive direction of the X axis and the positive direction of the Y axis, the first coordinate information being one of the plurality of coordinate information, the time information corresponding to the second coordinate information being adjacent to the time information corresponding to the first coordinate information, and the time information corresponding to the second coordinate information being located after the time information corresponding to the first coordinate information, The removal unit comprises: a second determination module, used in the first determination step, to determine whether the quadrant information corresponding to the third coordinate information is the same as the quadrant information corresponding to the fourth coordinate information, the third coordinate information being coordinate information representing the starting point position in the initial driving route information, the time information corresponding to the fourth coordinate information being adjacent to the time information corresponding to the third coordinate information, and the time information corresponding to the fourth coordinate information being located after the time information corresponding to the third coordinate information; A third determining module is used in the second determining step, to determine that the fourth coordinate information is the target coordinate information when the quadrant information corresponding to the fourth coordinate information is different from the quadrant information corresponding to the third coordinate information, and to remove the fourth coordinate information when the quadrant information corresponding to the fourth coordinate information is the same as the quadrant information corresponding to the third coordinate information, so that the target coordinate information does not include the fourth coordinate information; a fourth determination module, used in the third determination step, to determine the latest fourth coordinate information, wherein the time information corresponding to the latest fourth coordinate information is adjacent to the time information corresponding to the fourth coordinate information determined as the target coordinate information or removed, and the time information corresponding to the latest fourth coordinate information is located after the time information corresponding to the fourth coordinate information determined as the target coordinate information or removed; A loop module is used for looping steps, looping the first determination step, the second determination step and the third determination step until the latest fourth coordinate information corresponds to the coordinate information at the end point in the initial driving route information.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method of any one of claims 1 to 4.

7. A processor, characterized in that: The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 4 when running.

8. An electronic device, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of claims 1 to 4.