Vehicle driving trajectory processing method, device, equipment and medium
By obtaining the positioning position sequence and determining the starting point during driving between logistics stations, and generating a segmented vehicle driving trajectory, the problem of not being able to determine the vehicle delivery behavior in the prior art is solved, and efficient and accurate vehicle driving trajectory acquisition is achieved.
Patent Information
- Application Number
- CN202510143279.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-10
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2045-02-10
Smart Images

Figure CN119599555B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and more specifically, to a method, device, equipment, and medium for processing vehicle driving trajectories. Background Art
[0002] During the transportation of fuel and other logistics, vehicles primarily record their recent travel timeframes, such as a single day. With these numerous recorded travel trajectories, users often focus on key ones. These include the vehicle's travel from the depot to the gas station for refueling, the vehicle's travel from one gas station to another for refueling, and the vehicle's travel from a gas station to the depot for refueling. These key vehicle travel trajectories allow users to monitor various transport links and audit fuel quantity and quality issues.
[0003] However, since the large number of vehicle driving trajectories recorded by vehicles can only reflect the logistics stations that the vehicles pass through, it is impossible to determine the delivery behavior of the vehicles at the logistics stations. Therefore, users currently need to rely on the order data provided by the logistics distribution system to analyze the delivery behavior of the vehicles at the logistics stations in order to determine the key vehicle driving trajectories. It is difficult to efficiently obtain the key vehicle driving trajectories during the logistics transportation process. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide a vehicle driving trajectory processing method, device, equipment and medium to achieve the technical effect of efficiently obtaining key vehicle driving trajectories in the logistics transportation process.
[0005] In a first aspect, an embodiment of the present application provides a vehicle driving trajectory processing method, which is applied to a server storing the locations of multiple logistics sites; the method includes:
[0006] When the vehicle is traveling between the plurality of logistics stations, a positioning position sequence of the vehicle is obtained; wherein the positioning position sequence includes a plurality of positioning positions collected by the vehicle within a preset collection period, and the plurality of positioning positions are arranged according to the collection time of the plurality of positioning positions;
[0007] For each positioning position in the positioning position sequence, if the current positioning position is the same as the position of any logistics site among the multiple logistics sites, and the number of target positioning positions associated with the current positioning position in the positioning position sequence meets a preset number condition, the current positioning position is determined to be the starting position; wherein the target positioning position is adjacent to the current positioning position and is the same as the position of the current logistics site;
[0008] One or more vehicle driving trajectories are generated according to each starting point position in the positioning position sequence.
[0009] In the above implementation process, when the vehicle is traveling between multiple logistics sites, the vehicle's positioning position sequence is obtained. When any positioning position in the positioning position sequence is the same as the position of any logistics site in the multiple logistics sites, and the number of target positioning positions associated with the current positioning position in the positioning position sequence meets the preset quantity conditions, the current positioning position is determined to be the starting position, and one or more vehicle driving trajectories are generated according to each starting position in the positioning position sequence. The logistics site and distribution behavior can be identified for each positioning position collected by the vehicle during transportation, and the positioning position that is the same as the position of the logistics site where the vehicle continuously stays is determined as the starting position to generate a segmented vehicle driving trajectory. This allows users to directly obtain key vehicle driving trajectories without relying on the order data provided by the logistics distribution system to analyze the distribution behavior of the vehicle passing through the logistics sites, thereby achieving efficient acquisition of key vehicle driving trajectories during logistics transportation.
[0010] Furthermore, the preset quantity condition includes that the proportion of the number of target positioning positions in the positioning position sequence is greater than a preset ratio threshold.
[0011] In the above implementation process, by determining the preset quantity conditions including that the number of target positioning positions in the positioning position sequence accounts for more than the preset proportion threshold, the distribution behavior of the positioning position corresponding to any logistics site in the positioning position sequence can be quickly and accurately identified, thereby more efficiently obtaining the key vehicle driving trajectory in the logistics transportation process.
[0012] Furthermore, generating one or more vehicle driving trajectories according to each starting position in the positioning position sequence includes:
[0013] Using each starting position in the positioning position sequence as a segmentation point, the positioning position sequence is segmented into one or more positioning position subsequences;
[0014] For each of the one or more positioning position subsequences, searching for trajectory points corresponding to each positioning position in the current positioning position subsequence from the road network where the vehicle is located, and generating a vehicle driving trajectory corresponding to the current positioning position subsequence based on each obtained trajectory point;
[0015] The one or more segments of vehicle driving trajectories are obtained according to the vehicle driving trajectories corresponding to each positioning position subsequence in the one or more positioning position subsequences.
[0016] In the above implementation process, the positioning position sequence is divided by using each starting position in the positioning position sequence as a segmentation point. For each positioning position subsequence obtained, the trajectory points corresponding to each positioning position in the current positioning position subsequence are searched from the road network where the vehicle is located, and the vehicle driving trajectory corresponding to the current positioning position subsequence is generated based on each obtained trajectory point. Finally, one or more vehicle driving trajectories are obtained, which can provide users with a vehicle driving trajectory that fits the actual road structure.
[0017] Furthermore, after generating one or more vehicle driving trajectories according to each starting position in the positioning position sequence, the method further includes:
[0018] For each of the one or more vehicle driving trajectories, determining whether a current segment of the vehicle driving trajectory is an erroneous trajectory;
[0019] In the case that the current segment of the vehicle driving trajectory is an erroneous trajectory, the current segment of the vehicle driving trajectory is deleted.
[0020] In the above implementation process, by determining whether the current segment of the vehicle driving trajectory is an incorrect trajectory for each segment of the vehicle driving trajectory, and deleting the current segment of the vehicle driving trajectory if it is an incorrect trajectory, the accuracy of the obtained segments of the vehicle driving trajectory can be ensured, thereby more efficiently obtaining the key vehicle driving trajectories in the logistics transportation process.
[0021] Furthermore, the determining whether the current segment of the vehicle driving trajectory is an erroneous trajectory includes:
[0022] When the track length between two adjacent track points in the current segment of the vehicle driving track meets a preset length condition, the current segment of the vehicle driving track is determined to be an erroneous track.
[0023] In the above implementation process, by judging whether the trajectory length between two adjacent trajectory points in each segment of vehicle driving trajectory meets the preset length condition, it is determined whether each segment of vehicle driving trajectory is an error trajectory, which can ensure the accuracy of the obtained vehicle driving trajectory of each segment, thereby more efficiently obtaining the key vehicle driving trajectory in the logistics transportation process.
[0024] Furthermore, the method further comprises:
[0025] The one or more vehicle driving trajectories are stored in each of a plurality of databases respectively.
[0026] In the above implementation process, by storing one or more segments of vehicle driving trajectories in each of the multiple databases respectively, the final one or more segments of vehicle driving trajectories can be backed up to avoid data loss.
[0027] Furthermore, the multiple databases include a first database, a second database, and a third database; a data cleaning cycle of the second database is greater than a data cleaning cycle of the first database and less than a data cleaning cycle of the third database; the method further includes:
[0028] Responding to a vehicle driving trajectory query request initiated by a user terminal; wherein the vehicle driving trajectory query request includes a query condition and a query mode input by the user;
[0029] When the query mode is the first query mode, searching the first database for a first vehicle driving trajectory that meets the query condition;
[0030] When the query mode is the second query mode, searching the second database for a second vehicle driving trajectory that meets the query condition;
[0031] When the query mode is the third query mode, a third vehicle driving trajectory that meets the query condition is searched from the third database.
[0032] In the above implementation process, by storing one or more vehicle driving trajectories in three databases with different data cleaning cycles, three query modes are provided to users. This not only avoids the slow query speed caused by full storage in a single database, but also avoids the rapid data loss caused by high-frequency cleaning in a single database, thereby meeting various business needs of users.
[0033] In a second aspect, an embodiment of the present application provides a vehicle driving trajectory processing device, which is applied to a server storing the locations of multiple logistics sites; the device includes:
[0034] a positioning position sequence acquisition module, configured to acquire a positioning position sequence of the vehicle while the vehicle is traveling between the plurality of logistics stations; wherein the positioning position sequence includes a plurality of positioning positions acquired by the vehicle within a preset acquisition period, and the plurality of positioning positions are arranged according to the acquisition time of the plurality of positioning positions;
[0035] a positioning position sequence processing module, configured to, for each positioning position in the positioning position sequence, determine that the current positioning position is a starting position if the current positioning position is the same as the position of any logistics site among the multiple logistics sites, and the number of target positioning positions associated with the current positioning position in the positioning position sequence meets a preset number condition; wherein the target positioning position is adjacent to the current positioning position and is the same as the position of the current logistics site;
[0036] The vehicle driving trajectory generating module is used to generate one or more vehicle driving trajectories according to each starting position in the positioning position sequence.
[0037] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor; when the processor executes the computer program, the method described above is implemented.
[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the method described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.
[0040] Figure 1 A schematic flow chart of a vehicle driving trajectory processing method provided in the first embodiment of the present application;
[0041] Figure 2 A schematic structural diagram of a vehicle driving trajectory processing device provided in the second embodiment of the present application;
[0042] Figure 3 A schematic structural diagram of an electronic device provided in the third embodiment of the present application. DETAILED DESCRIPTION
[0043] The technical solutions in the embodiments of the present application will be 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, rather than all the embodiments.
[0044] It should be noted that similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and should not be understood as indicating or implying relative importance.
[0045] During the transportation of fuel and other logistics, vehicles primarily record their recent travel timeframes, such as a single day. With these numerous recorded travel trajectories, users often focus on key ones. These include the vehicle's travel from the depot to the gas station for refueling, the vehicle's travel from one gas station to another for refueling, and the vehicle's travel from a gas station to the depot for refueling. These key vehicle travel trajectories allow users to monitor various transport links and audit fuel quantity and quality issues.
[0046] However, since a large number of vehicle driving trajectories recorded by vehicles can only reflect the logistics stations that the vehicles pass through, it is impossible to determine the delivery behavior of the vehicles at the logistics stations. Therefore, in related technologies, users need to rely on the order data provided by the logistics distribution system to analyze the delivery behavior of the vehicles at the logistics stations in order to determine the key vehicle driving trajectories. It is difficult to efficiently obtain the key vehicle driving trajectories during the logistics transportation process.
[0047] To this end, the present application proposes a vehicle driving trajectory processing method, which obtains a vehicle positioning position sequence when the vehicle is traveling between multiple logistics sites. When any positioning position in the positioning position sequence is the same as the position of any logistics site in multiple logistics sites, and the number of target positioning positions associated with the current positioning position in the positioning position sequence meets a preset quantity condition, the current positioning position is determined to be the starting position, and one or more vehicle driving trajectories are generated according to each starting position in the positioning position sequence. The logistics site and distribution behavior can be identified for each positioning position collected by the vehicle during transportation, and the positioning position that is the same as the position of the logistics site where the vehicle continuously stays is determined as the starting position to generate a segmented vehicle driving trajectory, so that users do not need to rely on the order data provided by the logistics distribution system to analyze the distribution behavior of the vehicle passing through the logistics site, and can also directly obtain key vehicle driving trajectories, thereby achieving efficient acquisition of key vehicle driving trajectories during logistics transportation.
[0048] The following combination Figure 1 A vehicle driving trajectory processing method provided by the first embodiment of the present application is described. The vehicle driving trajectory processing method provided by the first embodiment of the present application can be executed by a server.
[0049] Please see Figure 1 , Figure 1 This is a flow chart of a vehicle driving trajectory processing method provided in the first embodiment of the present application. The first embodiment of the present application provides a vehicle driving trajectory processing method, which is applied to a server that stores the locations of multiple logistics sites; the method includes steps S101 to S103:
[0050] S101. When a vehicle is traveling between multiple logistics sites, a positioning position sequence of the vehicle is obtained; wherein the positioning position sequence includes multiple positioning positions collected by the vehicle within a preset collection period, and the multiple positioning positions are arranged according to the collection time of the multiple positioning positions.
[0051] As an example, based on actual business needs, the locations of multiple logistics sites are stored in the server in advance.
[0052] When a vehicle is traveling between multiple logistics stations, it will periodically collect the vehicle's current location and upload the multiple locations collected by the vehicle to the server one by one. The server can receive the multiple locations collected by the vehicle one by one, determine the vehicle's multiple locations collected in a preset collection period, such as the multiple locations collected within the last 10 minutes and the collection time of these locations, and arrange these locations according to their collection time, for example, arranging these locations in order from collection time from early to late, thereby obtaining the vehicle's location sequence.
[0053] Taking into account the problems that the communication network between the vehicle and the server is difficult to maintain stability in actual applications, and the server may make errors in arranging multiple positioning positions, the vehicle can also first organize the multiple positioning positions collected by the vehicle within a preset collection period into a positioning position sequence locally, and then upload the vehicle's positioning position sequence to the server, so that the server can directly obtain the vehicle's positioning position sequence.
[0054] S102. For each positioning position in the positioning position sequence, when the current positioning position is the same as the position of any logistics site among the multiple logistics sites, and the number of target positioning positions associated with the current positioning position in the positioning position sequence meets a preset quantity condition, determine the current positioning position as the starting position; wherein the target positioning position is adjacent to the current positioning position and is the same as the position of the current logistics site.
[0055] As an example, after obtaining the positioning position sequence of the vehicle, the server determines, for each positioning position in the positioning position sequence, whether the current positioning position is the same as the position of any logistics site among the multiple logistics sites.
[0056] When the current positioning position is different from the positions of each logistics site in multiple logistics sites, it is considered that the vehicle's current location is not a logistics site and the vehicle has no delivery behavior. At this time, it is determined that the current positioning position is not the starting position.
[0057] When the current positioning position is the same as the position of any logistics site among multiple logistics sites, the vehicle's current location is considered to be the current logistics site, and the target positioning position associated with the current positioning position is further screened from the positioning position sequence, wherein the target positioning position is adjacent to the current positioning position and is the same as the position of the current logistics site, and it is determined whether the number of target positioning positions meets a preset quantity condition, wherein the preset quantity condition is set by the user.
[0058] When the number of target positioning positions does not meet the preset quantity conditions, it is considered that although the vehicle's current location is the current logistics station, the vehicle has not stayed at the current logistics station continuously, and the vehicle has no delivery behavior at the current logistics station. At this time, it is determined that the current positioning position is not the starting position.
[0059] When the number of target positioning positions meets the preset quantity conditions, it is considered that the vehicle is currently staying at the current logistics site and the vehicle has delivery behavior at the current logistics site. At this time, the current positioning position is determined as the starting position.
[0060] By performing the above judgment on each positioning position in the positioning position sequence, each starting position in the positioning position sequence can be determined.
[0061] Through the above judgment, it can be determined whether there are multiple consecutive positioning positions in the positioning position sequence that are the same as the position of the same logistics site. If so, it is considered that the vehicle continues to stay at the logistics site and the vehicle has delivery behavior at the logistics site. At this time, these multiple consecutive positioning positions are determined as the starting positions, that is, the same location corresponding to these multiple consecutive positioning positions is set as the new starting point.
[0062] S103: Generate one or more vehicle driving trajectories according to each starting point position in the positioning position sequence.
[0063] As an example, after determining each starting position in the positioning position sequence, the server generates one or more vehicle driving trajectories according to each starting position in the positioning position sequence.
[0064] In actual applications, the server can generate a first segment of vehicle driving trajectory based on each starting position in the positioning position sequence and according to all positioning positions between the first starting position and the second starting position, wherein the first starting position is the first starting position in the positioning position sequence, and the second starting position is the first starting position in the positioning position sequence that is different from the first starting position; generate a second segment of vehicle driving trajectory based on all positioning positions between the second starting position and the third starting position, wherein the third starting position is the first starting position in the positioning position sequence that is different from the second starting position. According to this operation, one or more segments of vehicle driving trajectory are generated.
[0065] The embodiment of the present application obtains a vehicle positioning position sequence when the vehicle is traveling between multiple logistics sites. When any positioning position in the positioning position sequence is the same as the position of any logistics site in the multiple logistics sites, and the number of target positioning positions associated with the current positioning position in the positioning position sequence meets a preset quantity condition, the current positioning position is determined to be the starting position, and one or more vehicle driving trajectories are generated according to each starting position in the positioning position sequence. The logistics site and delivery behavior can be identified for each positioning position collected by the vehicle during transportation, and the positioning position that is the same as the position of the logistics site where the vehicle continuously stays is determined as the starting position to generate a segmented vehicle driving trajectory. This allows users to directly obtain key vehicle driving trajectories without relying on order data provided by the logistics distribution system to analyze the delivery behavior of the vehicle when passing through the logistics sites, thereby achieving efficient acquisition of key vehicle driving trajectories during logistics transportation.
[0066] In an optional embodiment, the preset quantity condition includes that the proportion of the number of target positioning positions in the positioning position sequence is greater than a preset ratio threshold.
[0067] As an example, considering the length of time a vehicle needs to stay at a logistics site for delivery in actual applications, a quantity condition is set in advance, namely, a preset quantity condition. The preset quantity condition includes that the proportion of the number of target positioning positions in the positioning position sequence is greater than a preset proportion threshold, such as 80% or 85%.
[0068] After obtaining the vehicle's positioning position sequence, the server determines, for each positioning position in the positioning position sequence, whether the current positioning position is the same as the position of any logistics site among the multiple logistics sites. If the current positioning position is the same as the position of a logistics site among the multiple logistics sites, it is considered that the current location of the vehicle is the current logistics site, and the target positioning position associated with the current positioning position is continuously screened from the positioning position sequence, wherein the target positioning position is adjacent to the current positioning position and is the same as the position of the current logistics site.
[0069] After obtaining the target positioning positions associated with the current positioning position in the positioning position sequence, the server counts the proportion of the number of target positioning positions in the positioning position sequence and determines whether the proportion is greater than a preset ratio threshold.
[0070] When the proportion is less than or equal to the preset ratio threshold, it is considered that the number of target positioning positions meets the preset quantity condition. Although the current location of the vehicle is the current logistics station, the vehicle does not stay at the current logistics station continuously, and the vehicle has no delivery behavior at the current logistics station. At this time, it is determined that the current positioning position is not the starting position.
[0071] When the proportion is greater than the preset ratio threshold, it is considered that the number of target positioning positions meets the preset quantity conditions, the vehicle is currently staying at the current logistics station, and the vehicle has delivery behavior at the current logistics station. At this time, the current positioning position is determined to be the starting position.
[0072] By performing the above judgment on each positioning position in the positioning position sequence, each starting position in the positioning position sequence can be determined.
[0073] Because a vehicle collects its current location at regular intervals, such as every 15 seconds, while traveling between multiple logistics sites, and the location sequence includes multiple locations collected by the vehicle during a preset collection period, such as the last 10 minutes, the number of locations in the location sequence is fixed. By determining that a preset quantity condition, including the proportion of the number of target locations in the location sequence, exceeds a preset ratio threshold, delivery behavior can be quickly and accurately identified for the location corresponding to any logistics site in the location sequence based on the preset quantity condition.
[0074] In practical applications, the preset quantity condition may also include that the number of target positioning positions is greater than a preset quantity threshold.
[0075] The embodiment of the present application determines that the preset quantity conditions include that the proportion of the number of target positioning positions in the positioning position sequence is greater than a preset proportion threshold, and can quickly and accurately identify the delivery behavior of the positioning position corresponding to any logistics site in the positioning position sequence, thereby more efficiently obtaining the key vehicle driving trajectory in the logistics transportation process.
[0076] In an optional embodiment, generating one or more segments of vehicle driving trajectories based on each starting position in the positioning position sequence includes: dividing the positioning position sequence into one or more positioning position subsequences using each starting position in the positioning position sequence as a segmentation point; for each positioning position subsequence in the one or more positioning position subsequences, searching for trajectory points corresponding to each positioning position in the current positioning position subsequence from the road network where the vehicle is located, and generating a vehicle driving trajectory corresponding to the current positioning position subsequence based on the obtained trajectory points; and obtaining one or more segments of vehicle driving trajectories based on the vehicle driving trajectories corresponding to each positioning position subsequence in the one or more positioning position subsequences.
[0077] As an example, after determining each starting position in the positioning position sequence, the server uses each starting position in the positioning position sequence as a segmentation point to segment the positioning position sequence into one or more positioning position subsequences.
[0078] Because multiple consecutive locations corresponding to the same logistics station in a location sequence are considered starting locations, if there is a starting location in the location sequence, it can be considered that the same starting location appears multiple times in the location sequence. Therefore, when the location sequence is split using the starting locations in the location sequence as the split points, some of the resulting one or more location subsequences may be meaningless and need to be deleted in practical applications.
[0079] For example, assuming the positioning position sequence is {oil depot position, gas station A position, gas station A position, gas station A position, gas station A position, gas station A position, gas station A position, gas station A position, gas station A position, oil depot position}, there are 8 starting positions in the positioning position sequence, namely gas station A position, gas station A position, gas station A position, gas station A position, gas station A position, gas station A position, gas station A position and gas station A position, that is, gas station A position appears 8 times in a row in the positioning position sequence, then these 8 positioning positions are used as segmentation points to segment the positioning positions. The obtained 9 positioning position subsequences are {oil depot position, gas station A position}, {gas station A position, gas station A position}, {gas station A position, gas station A position}, {gas station A position, gas station A position}, {gas station A position, gas station A position}, {gas station A position, gas station A position}, {gas station A position, gas station A position}, {gas station A position, gas station A position} and {gas station A position, oil depot position}, among which the 7 positioning position subsequences of {gas station A position, gas station A position} are meaningless and are deleted.
[0080] In practical applications, one may first select and retain one of the starting positions that appear multiple times in a positioning position sequence, update the positioning position sequence, and then segment the updated positioning position sequence using each starting position in the updated positioning position sequence as a segmentation point to obtain one or more positioning position subsequences.
[0081] For each of the one or more positioning position subsequences, determine the road network on which the vehicle is located, search the road network on which the vehicle is located for trajectory points corresponding to each positioning position in the current positioning position subsequence, and generate a vehicle travel trajectory corresponding to the current positioning position subsequence based on the obtained trajectory points.
[0082] For example, assuming the current positioning position subsequence is {oil depot location, gas station A location}, in the road network where the vehicle is located, the trajectory point corresponding to the oil depot location is trajectory point 1, and the trajectory point corresponding to the gas station A location is trajectory point 2. Based on the road network where the vehicle is located, one or more planned paths starting from trajectory point 1 that can reach trajectory point 2 are searched, and trajectory point 1 and trajectory point 2 are connected according to each planned path to generate one or more vehicle driving trajectories corresponding to the current positioning position subsequence.
[0083] By restoring each positioning position subsequence to the road network where the vehicle is located and inferring the vehicle's driving trajectory under the real road structure, users can obtain a vehicle driving trajectory that fits the real road structure.
[0084] Arrange the vehicle driving trajectories corresponding to the respective positioning position subsequences in the one or more positioning position subsequences to obtain one or more vehicle driving trajectories.
[0085] In the embodiment of the present application, the positioning position sequence is segmented using each starting point in the positioning position sequence as a segmentation point. For each obtained positioning position subsequence, the trajectory points corresponding to each positioning position in the current positioning position subsequence are searched from the road network where the vehicle is located. Based on the obtained trajectory points, the vehicle driving trajectory corresponding to the current positioning position subsequence is generated. Ultimately, one or more vehicle driving trajectories are obtained, which can provide users with a vehicle driving trajectory that fits the actual road structure.
[0086] In an optional embodiment, after generating one or more vehicle driving trajectories according to each starting position in the positioning position sequence, the method further includes: determining, for each of the one or more vehicle driving trajectories, whether the current vehicle driving trajectory is an erroneous trajectory; and deleting the current vehicle driving trajectory if the current vehicle driving trajectory is an erroneous trajectory.
[0087] As an example, considering that the vehicle driving trajectory generated by the server may be an erroneous trajectory, especially since the road network where the vehicle is located is usually complex, each segment of the vehicle driving trajectory is inferred only based on at least two positioning positions in the corresponding positioning position subsequence in the road network where the vehicle is located, and it cannot be completely determined that it is the actual vehicle driving trajectory. The server can determine whether the vehicle driving trajectory is an erroneous trajectory in order to retain the correct vehicle driving trajectory.
[0088] After obtaining each segment of the vehicle driving trajectory, the server determines whether the current segment of the vehicle driving trajectory is an incorrect trajectory. If the current segment of the vehicle driving trajectory is an incorrect trajectory, the server deletes the current segment of the vehicle driving trajectory. If the current segment of the vehicle driving trajectory is a correct trajectory, the server retains the current segment of the vehicle driving trajectory.
[0089] The embodiment of the present application determines whether the current segment of the vehicle driving trajectory is an incorrect trajectory for each segment of the vehicle driving trajectory, and deletes the current segment of the vehicle driving trajectory if the current segment of the vehicle driving trajectory is an incorrect trajectory. This ensures the accuracy of the acquired segments of the vehicle driving trajectory, thereby more efficiently acquiring key vehicle driving trajectories in the logistics transportation process.
[0090] In an optional embodiment, determining whether the current segment of the vehicle's driving trajectory is an erroneous trajectory includes: determining that the current segment of the vehicle's driving trajectory is an erroneous trajectory when the trajectory length between two adjacent trajectory points in the current segment of the vehicle's driving trajectory meets a preset length condition.
[0091] As an example, after obtaining each segment of the vehicle driving trajectory, the server determines the trajectory length between two adjacent trajectory points in the current segment of the vehicle driving trajectory, and judges whether each determined trajectory length meets a preset length condition, where the preset length condition is set by the user.
[0092] When the length of any trajectory meets the preset length condition, it is considered that the vehicle has not collected a single positioning position on the trajectory segment between the two adjacent trajectory points, the vehicle has not actually passed through the trajectory segment, and the vehicle has not actually traveled according to the current vehicle driving trajectory. The current vehicle driving trajectory is determined to be an incorrect trajectory and is deleted.
[0093] In an optional implementation of this embodiment, the preset length condition includes that the track length is greater than a preset length threshold, such as 5 kilometers.
[0094] The embodiment of the present application determines whether each segment of the vehicle driving trajectory is an erroneous trajectory by judging whether the trajectory length between two adjacent trajectory points in each segment of the vehicle driving trajectory meets a preset length condition. This can ensure the accuracy of the obtained vehicle driving trajectory of each segment, thereby more efficiently obtaining the key vehicle driving trajectories in the logistics transportation process.
[0095] In an optional embodiment, the method further includes step S104:
[0096] S104: Store one or more segments of vehicle driving trajectories in each of the multiple databases.
[0097] As an example, after obtaining one or more vehicle driving trajectories, the server stores the one or more vehicle driving trajectories in each of the multiple databases. For example, a search engine may be used to store the one or more vehicle driving trajectories in an ElasticSearch search database, and the one or more vehicle driving trajectories may be stored in a traditional relational database.
[0098] The embodiment of the present application can back up the final one or more vehicle driving trajectories by storing one or more vehicle driving trajectories in each of multiple databases respectively, thereby avoiding data loss problems.
[0099] In an optional embodiment, the multiple databases include a first database, a second database, and a third database; a data cleaning period of the second database is greater than a data cleaning period of the first database and less than a data cleaning period of the third database; and the method further includes steps S105 to S108:
[0100] S105. Respond to the vehicle driving trajectory query request initiated by the user terminal; wherein the vehicle driving trajectory query request includes the query condition and query mode input by the user;
[0101] S106. When the query mode is the first query mode, searching the first database for a first vehicle driving trajectory that meets the query condition;
[0102] S107: When the query mode is the second query mode, searching the second database for a second vehicle driving trajectory that meets the query condition;
[0103] S108. When the query mode is the third query mode, search the third database for a third vehicle driving trajectory that meets the query condition.
[0104] As an example, according to actual application requirements, three databases, namely the first database, the second database and the third database, are selected, wherein the data cleaning cycle of the second database is greater than the data cleaning cycle of the first database and less than the data cleaning cycle of the third database.
[0105] For example, assuming that the first database is the master database of the ElasticSearch search library, used to store the vehicle driving trajectories obtained in the past month, the second database is the slave database of the ElasticSearch search library, used to store the vehicle driving trajectories obtained in the past six months, and the third database is a traditional relational database, used to store the obtained vehicle driving trajectories in full. Then, after the server uses the search engine to store one or more vehicle driving trajectories in the master database and slave database of the ElasticSearch search library respectively, and stores one or more vehicle driving trajectories in the traditional relational database, it can wait to receive the vehicle driving trajectory query request initiated by the user terminal.
[0106] The user can input query conditions and query modes on the user terminal according to actual business needs, wherein the query conditions include vehicle information such as the vehicle license plate number, and time information such as the acquisition time period, and the query modes include the first query mode, the second query mode and the third query mode.
[0107] After receiving a vehicle driving trajectory query request initiated by a user terminal, the server responds to the vehicle driving trajectory query request, determines the query conditions and query mode input by the user, and when the query mode is a first query mode, searches for a first vehicle driving trajectory that meets the query conditions from a first database; when the query mode is a second query mode, searches for a second vehicle driving trajectory that meets the query conditions from a second database; when the query mode is a third query mode, searches for a third vehicle driving trajectory that meets the query conditions from a third database.
[0108] In an optional implementation manner of this embodiment, each of one or more vehicle driving trajectories carries a starting point mark for indicating a starting position, an end point mark for indicating an end point position, and a time mark for indicating time information of a trajectory point.
[0109] The embodiment of the present application provides users with three query modes by storing one or more vehicle driving trajectories in three databases with different data cleaning cycles. This not only avoids the problem of slow query speed caused by full storage in a single database, but also avoids the problem of rapid data loss caused by high-frequency cleaning in a single database, thereby meeting various business needs of users.
[0110] Please see Figure 2 , Figure 2 A structural diagram of a vehicle driving trajectory processing device is provided for the second embodiment of the present application. The second embodiment of the present application provides a vehicle driving trajectory processing device, which is applied to a server, and the server stores the locations of multiple logistics sites; the device includes: a positioning position sequence acquisition module 201, which is used to obtain a vehicle positioning position sequence when the vehicle is driving between multiple logistics sites; wherein the positioning position sequence includes multiple positioning positions collected by the vehicle within a preset collection period, and the multiple positioning positions are arranged according to the collection time of the multiple positioning positions; a positioning position sequence processing module 202, which is used to, for each positioning position in the positioning position sequence, determine that the current positioning position is the starting position when the current positioning position is the same as the position of any logistics site in the multiple logistics sites and the number of target positioning positions associated with the current positioning position in the positioning position sequence meets a preset quantity condition; wherein the target positioning position is adjacent to the current positioning position and is the same as the position of the current logistics site; a vehicle driving trajectory generation module 203, which is used to generate one or more vehicle driving trajectories according to each starting position in the positioning position sequence.
[0111] In an optional embodiment, the preset quantity condition includes that the proportion of the number of target positioning positions in the positioning position sequence is greater than a preset ratio threshold.
[0112] In an optional embodiment, generating one or more segments of vehicle driving trajectories based on each starting position in the positioning position sequence includes: dividing the positioning position sequence into one or more positioning position subsequences using each starting position in the positioning position sequence as a segmentation point; for each positioning position subsequence in the one or more positioning position subsequences, searching for trajectory points corresponding to each positioning position in the current positioning position subsequence from the road network where the vehicle is located, and generating a vehicle driving trajectory corresponding to the current positioning position subsequence based on the obtained trajectory points; and obtaining one or more segments of vehicle driving trajectories based on the vehicle driving trajectories corresponding to each positioning position subsequence in the one or more positioning position subsequences.
[0113] In an optional embodiment, the vehicle driving trajectory generation module 203 is further used to, after generating one or more vehicle driving trajectories according to each starting position in the positioning position sequence, determine whether the current segment of the vehicle driving trajectory is an erroneous trajectory for each segment of the one or more vehicle driving trajectories; if the current segment of the vehicle driving trajectory is an erroneous trajectory, delete the current segment of the vehicle driving trajectory.
[0114] In an optional embodiment, determining whether the current segment of the vehicle's driving trajectory is an erroneous trajectory includes: determining that the current segment of the vehicle's driving trajectory is an erroneous trajectory when the trajectory length between two adjacent trajectory points in the current segment of the vehicle's driving trajectory meets a preset length condition.
[0115] In an optional embodiment, the device further includes: a vehicle driving trajectory storage module, configured to store one or more segments of vehicle driving trajectories in each of the plurality of databases.
[0116] In an optional embodiment, the multiple databases include a first database, a second database and a third database; the data cleaning cycle of the second database is greater than the data cleaning cycle of the first database, and less than the data cleaning cycle of the third database; the device also includes: a vehicle driving trajectory query module, used to: respond to a vehicle driving trajectory query request initiated by a user terminal; wherein the vehicle driving trajectory query request includes a query condition and a query mode input by the user; when the query mode is the first query mode, the first vehicle driving trajectory that meets the query condition is searched from the first database; when the query mode is the second query mode, the second vehicle driving trajectory that meets the query condition is searched from the second database; when the query mode is the third query mode, the third vehicle driving trajectory that meets the query condition is searched from the third database.
[0117] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0118] Please see Figure 3 , Figure 3 A schematic structural diagram of an electronic device is provided for the third embodiment of the present application. The third embodiment of the present application provides an electronic device 30, comprising a processor 301, a memory 302, and a computer program stored in the memory 302 and configured to be executed by the processor 301; when the processor 301 executes the computer program, it implements the method described in the first embodiment of the present application and can achieve the same beneficial effects as described above.
[0119] The processor 301 may implement the method described in the first embodiment of the present application when reading the computer program from the memory 302 via the bus 303 and executing the computer program.
[0120] Processor 301 can process digital signals and can include various computing architectures, such as a complex instruction set computer architecture, a reduced instruction set computer architecture, or an architecture that implements a combination of multiple instruction sets. In some examples, processor 301 can be a microprocessor.
[0121] The memory 302 can be used to store instructions executed by the processor 301 or data related to the execution of instructions. These instructions and / or data may include code for implementing some or all functions of one or more modules described in the embodiments of this application. The processor 301 of this embodiment can be used to execute the instructions in the memory 302 to implement the method described in the first embodiment of this application. The memory 302 includes dynamic random access memory, static random access memory, flash memory, optical storage, or other memory known to those skilled in the art.
[0122] The fourth embodiment of the present application provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the method described in the first embodiment of the present application, and can achieve the same beneficial effects as the method described in the first embodiment of the present application.
[0123] In summary, the embodiments of the present application provide a vehicle driving trajectory processing method, device, equipment and medium. The vehicle driving trajectory processing method is applied to a server, and the server stores the positions of multiple logistics sites. The method includes: when the vehicle is driving between multiple logistics sites, obtaining a vehicle positioning position sequence; wherein the positioning position sequence includes multiple positioning positions collected by the vehicle within a preset collection period, and the multiple positioning positions are arranged according to the collection time of the multiple positioning positions; for each positioning position in the positioning position sequence, when the current positioning position is the same as the position of any logistics site in the multiple logistics sites, and the number of target positioning positions associated with the current positioning position in the positioning position sequence meets the preset quantity condition, determining the current positioning position as the starting position; wherein the target positioning position is adjacent to the current positioning position and is the same as the position of the current logistics site; according to each starting position in the positioning position sequence, generating one or more vehicle driving trajectories. The embodiment of the present application obtains a vehicle positioning position sequence when the vehicle is traveling between multiple logistics sites. When any positioning position in the positioning position sequence is the same as the position of any logistics site in the multiple logistics sites, and the number of target positioning positions associated with the current positioning position in the positioning position sequence meets a preset quantity condition, the current positioning position is determined to be the starting position, and one or more vehicle driving trajectories are generated according to each starting position in the positioning position sequence. The logistics site and delivery behavior can be identified for each positioning position collected by the vehicle during transportation, and the positioning position that is the same as the position of the logistics site where the vehicle continuously stays is determined as the starting position to generate a segmented vehicle driving trajectory. This allows users to directly obtain key vehicle driving trajectories without relying on order data provided by the logistics distribution system to analyze the delivery behavior of the vehicle when passing through the logistics sites, thereby achieving efficient acquisition of key vehicle driving trajectories during logistics transportation.
[0124] The above embodiments are merely examples. The various embodiments of the present application may be combined or nested with each other, and the present application is not limited thereto.
[0125] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.
[0126] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0127] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0128] The foregoing is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included within the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined or explained in subsequent figures.
[0129] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
[0130] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
Claims
1. A vehicle driving trajectory processing method, characterized in that: Applied to a server, the server storing locations of multiple logistics sites; the method includes: When the vehicle is traveling between the plurality of logistics stations, a positioning position sequence of the vehicle is obtained; wherein the positioning position sequence includes a plurality of positioning positions collected by the vehicle within a preset collection period, and the plurality of positioning positions are arranged according to the collection time of the plurality of positioning positions; For each positioning position in the positioning position sequence, when the current positioning position is the same as the position of any logistics site among the multiple logistics sites, and the number of target positioning positions associated with the current positioning position in the positioning position sequence meets a preset number condition, the current positioning position is determined to be the starting position; wherein the target positioning position is adjacent to the current positioning position and is the same as the position of the current logistics site; the preset number condition includes that the proportion of the number of the target positioning positions in the positioning position sequence is greater than a preset proportion threshold, or the number of the target positioning positions is greater than a preset number threshold; Generate one or more vehicle driving trajectories based on each starting position in the positioning position sequence, including: Using each starting position in the positioning position sequence as a segmentation point, the positioning position sequence is segmented into one or more positioning position subsequences; For each of the one or more positioning position subsequences, searching for trajectory points corresponding to each positioning position in the current positioning position subsequence from the road network where the vehicle is located, and generating a vehicle driving trajectory corresponding to the current positioning position subsequence based on each obtained trajectory point; The one or more segments of vehicle driving trajectories are obtained according to the vehicle driving trajectories corresponding to each positioning position subsequence in the one or more positioning position subsequences.
2. The method according to claim 1, characterized in that After generating one or more vehicle driving trajectories according to each starting position in the positioning position sequence, the method further includes: For each of the one or more vehicle driving trajectories, determining whether a current segment of the vehicle driving trajectory is an erroneous trajectory; In the case that the current segment of the vehicle driving trajectory is an erroneous trajectory, the current segment of the vehicle driving trajectory is deleted.
3. The method according to claim 2, characterized in that The determining whether the current segment of the vehicle driving trajectory is an erroneous trajectory includes: When the track length between two adjacent track points in the current segment of the vehicle driving track meets a preset length condition, the current segment of the vehicle driving track is determined to be an erroneous track.
4. The method according to any one of claims 1 to 3, characterized in that The method further comprises: The one or more vehicle driving trajectories are stored in each of a plurality of databases respectively.
5. The method according to claim 4, characterized in that The multiple databases include a first database, a second database, and a third database; a data cleaning cycle of the second database is greater than a data cleaning cycle of the first database and less than a data cleaning cycle of the third database; the method further includes: Responding to a vehicle driving trajectory query request initiated by a user terminal; wherein the vehicle driving trajectory query request includes a query condition and a query mode input by the user; When the query mode is the first query mode, searching the first database for a first vehicle driving trajectory that meets the query condition; When the query mode is the second query mode, searching the second database for a second vehicle driving trajectory that meets the query condition; When the query mode is the third query mode, a third vehicle driving trajectory that meets the query condition is searched from the third database.
6. A vehicle driving trajectory processing device, characterized in that: Applied to a server storing the locations of multiple logistics sites; the device comprises: a positioning position sequence acquisition module, configured to acquire a positioning position sequence of the vehicle while the vehicle is traveling between the plurality of logistics stations; wherein the positioning position sequence includes a plurality of positioning positions acquired by the vehicle within a preset acquisition period, and the plurality of positioning positions are arranged according to the acquisition time of the plurality of positioning positions; a positioning position sequence processing module, configured to, for each positioning position in the positioning position sequence, determine that the current positioning position is a starting position if the current positioning position is the same as the position of any logistics site among the multiple logistics sites, and the number of target positioning positions associated with the current positioning position in the positioning position sequence meets a preset quantity condition; wherein the target positioning position is adjacent to the current positioning position and is the same as the position of the current logistics site; the preset quantity condition includes that the proportion of the number of the target positioning positions in the positioning position sequence is greater than a preset proportion threshold, or the number of the target positioning positions is greater than a preset quantity threshold; The vehicle driving trajectory generation module is used to generate one or more vehicle driving trajectories according to each starting position in the positioning position sequence, including: Using each starting position in the positioning position sequence as a segmentation point, the positioning position sequence is segmented into one or more positioning position subsequences; For each of the one or more positioning position subsequences, searching for trajectory points corresponding to each positioning position in the current positioning position subsequence from the road network where the vehicle is located, and generating a vehicle driving trajectory corresponding to the current positioning position subsequence based on each obtained trajectory point; The one or more segments of vehicle driving trajectories are obtained according to the vehicle driving trajectories corresponding to each positioning position subsequence in the one or more positioning position subsequences.
7. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor; when the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored computer program; wherein, when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Lane-level road condition acquisition method and device, electronic equipment and storage medium
CN116403415A
Route Computation Based on Route-Oriented Vehicle Trajectories
US20110208429A1