Vehicle driving track processing method, device, equipment and medium

By identifying and generating segmented vehicle driving trajectories, the problem of difficulty in efficiently obtaining key vehicle driving trajectories in the prior art is solved, and the effect of obtaining key trajectories without relying on the logistics distribution system is achieved.

CN119599555AActive Publication Date: 2025-03-11BEIJING WANJIAXIN TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510143279.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-10
Publication Date
2025-03-11
Estimated Expiration
2045-02-10

AI Technical Summary

Technical Problem

It is difficult for the prior art to efficiently obtain the key vehicle driving trajectory during logistics transportation. Users need to rely on the order data provided by the logistics distribution system to analyze the delivery behavior of vehicles at the passing logistics stations.

Method used

By obtaining the positioning position sequence of the vehicle during driving between multiple logistics stations, identifying the same position as the position of the logistics station as the starting point position, and generating a segmented vehicle driving trajectory.

Benefits of technology

It realizes that the key vehicle driving trajectory can be directly obtained without relying on the order data of the logistics distribution system, and improves the efficient acquisition of vehicle driving trajectory during logistics transportation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119599555A_ABST
    Figure CN119599555A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a vehicle driving track processing method and device, equipment and a medium, and relates to the technical field of data processing. According to the method, when a vehicle runs among a plurality of logistics stations, a positioning position sequence of the vehicle is obtained, and any positioning position in the positioning position sequence is the same as the position of any logistics station in the plurality of logistics stations; determining the current positioning position as a starting point position under the condition that the number of target positioning positions associated with the current positioning position in the positioning position sequence meets a preset number condition, and generating one or more sections of vehicle driving tracks according to each starting point position in the positioning position sequence, according to the invention, identification of logistics stations and distribution behaviors can be carried out on each positioning position collected by a vehicle in a transportation process, the positioning position which is the same as the position of the logistics station where the vehicle continuously stops is determined as a starting point position, and a segmented vehicle driving track is generated. Therefore, the key vehicle driving track in the logistics transportation process can be efficiently obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a vehicle driving trajectory processing method, device, equipment and medium. Background Art

[0002] In the process of logistics transportation of oil products, it is mainly the vehicles themselves that record the recent time period, such as the vehicle driving trajectory within a day. With regard to the large number of vehicle driving trajectories recorded by vehicles, users often pay special attention to the key vehicle driving trajectories among these vehicle driving trajectories, such as the vehicle driving trajectory corresponding to the process of the vehicle taking oil from the oil depot and driving to the gas station for refueling, the vehicle driving trajectory corresponding to the process of the vehicle refueling from one gas station and driving to another gas station for refueling, and the vehicle driving trajectory corresponding to the process of the vehicle refueling from the gas station and driving to the oil depot for oil, etc., so as to complete the business needs such as monitoring each transportation link of the vehicle and auditing the quantity / quality issues of oil products based on these key vehicle driving trajectories.

[0003] However, since a large number of vehicle driving trajectories recorded by vehicles can only reflect the logistics sites that the vehicles pass through, but cannot determine the delivery behavior of the vehicles at the logistics sites, 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 sites in order to determine the key vehicle driving trajectories. It is difficult to efficiently obtain the key vehicle driving trajectories in 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, wherein the server stores the locations of multiple logistics sites; the method comprises: When the vehicle is traveling between the 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; 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; One or more vehicle driving trajectories are generated according to each starting point position in the positioning position sequence.

[0006] In the above implementation process, when the vehicle is traveling between multiple logistics sites, a positioning position sequence of the vehicle 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 condition, the current positioning position is determined as the starting position, and one or more vehicle driving trajectories are generated according to each starting position in the positioning position sequence. Logistics sites and distribution behaviors 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, and a segmented vehicle driving trajectory is generated, 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 when passing through the logistics sites, and can also directly obtain key vehicle driving trajectories, thereby realizing efficient acquisition of key vehicle driving trajectories in the logistics transportation process.

[0007] 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.

[0008] 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.

[0009] Furthermore, generating one or more vehicle driving trajectories according to each starting point position in the positioning position sequence includes: Using each starting point in the positioning position sequence as a segmentation point, segmenting the positioning position sequence 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.

[0010] In the above implementation process, the positioning position sequence is divided by using each starting point 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 the obtained trajectory points. Finally, one or more vehicle driving trajectories are obtained, which can provide users with vehicle driving trajectories that fit the actual road structure.

[0011] Furthermore, after generating one or more vehicle driving trajectories according to each starting point 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.

[0012] In the above implementation process, by determining whether the current segment of the vehicle driving trajectory is an erroneous trajectory for each segment of the vehicle driving trajectory, and deleting the current segment of the vehicle driving trajectory if the current segment of the vehicle driving trajectory is an erroneous trajectory, the accuracy of each segment of the vehicle driving trajectory obtained can be ensured, thereby more efficiently obtaining the key vehicle driving trajectories in the logistics transportation process.

[0013] Further, 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, it is determined that the current segment of the vehicle driving track is an erroneous track.

[0014] 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 erroneous trajectory, thereby ensuring the accuracy of each segment of vehicle driving trajectory obtained, thereby more efficiently obtaining the key vehicle driving trajectory in the logistics transportation process.

[0015] Furthermore, the method further comprises: The one or more vehicle driving trajectories are stored in each of a plurality of databases respectively.

[0016] 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.

[0017] Further, 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 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 a 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.

[0018] 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 can not only avoid the problem of slow query speed caused by full storage in a single database, but also avoid the problem of fast data loss caused by high-frequency cleaning in a single database, thereby meeting various business needs of users.

[0019] In a second aspect, an 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, used to acquire the positioning position sequence of the vehicle when the vehicle is traveling between the 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, 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, 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; The vehicle driving trajectory generating module is used to generate one or more vehicle driving trajectories according to each starting point position in the positioning position sequence.

[0020] 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.

[0021] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein 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 described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. 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 related drawings can be obtained based on these drawings without paying creative work.

[0023] Figure 1 A schematic diagram of a process flow of a vehicle driving trajectory processing method provided in the first embodiment of the present application; Figure 2 A schematic diagram of the structure of a vehicle driving trajectory processing device provided in the second embodiment of the present application; Figure 3 A schematic diagram of the structure of an electronic device provided in the third embodiment of the present application. DETAILED DESCRIPTION

[0024] 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 of the embodiments.

[0025] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and 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 cannot be understood as indicating or implying relative importance.

[0026] In the process of logistics transportation of oil products, it is mainly the vehicles themselves that record the recent time period, such as the vehicle driving trajectory within a day. With regard to the large number of vehicle driving trajectories recorded by vehicles, users often pay special attention to the key vehicle driving trajectories among these vehicle driving trajectories, such as the vehicle driving trajectory corresponding to the process of the vehicle taking oil from the oil depot and driving to the gas station for refueling, the vehicle driving trajectory corresponding to the process of the vehicle refueling from one gas station and driving to another gas station for refueling, and the vehicle driving trajectory corresponding to the process of the vehicle refueling from the gas station and driving to the oil depot for oil, etc., so as to complete the business needs such as monitoring each transportation link of the vehicle and auditing the quantity / quality issues of oil products based on these key vehicle driving trajectories.

[0027] However, since a large number of vehicle driving trajectories recorded by vehicles can only reflect the logistics sites that the vehicles pass through, but cannot determine the delivery behavior of the vehicles when passing through the logistics sites, 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 when passing through the logistics sites in order to determine the key vehicle driving trajectories, it is difficult to efficiently obtain the key vehicle driving trajectories in the logistics transportation process.

[0028] 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 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 as 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, and a segmented vehicle driving trajectory is generated, so that the user does not need to rely on the order data provided by the logistics distribution system to analyze the delivery behavior of the vehicle when passing through the logistics site, and can also directly obtain the key vehicle driving trajectory, thereby realizing efficient acquisition of the key vehicle driving trajectory in the logistics transportation process.

[0029] Combine the following 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.

[0030] Please see Figure 1 , Figure 1A flowchart 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, and the server stores the locations of multiple logistics sites; the method includes steps S101 to S103: 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.

[0031] As an example, based on actual business needs, the locations of multiple logistics sites are stored in the server in advance.

[0032] When a vehicle is traveling between multiple logistics sites, it will periodically collect the current location of the vehicle and upload the multiple locations collected by the vehicle to the server one by one, so that the server can receive the multiple locations collected by the vehicle one by one, determine the vehicle 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, such as arranging these locations in order from early to late according to the collection time, thereby obtaining the vehicle's location sequence.

[0033] 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 first locally organize the multiple positioning positions collected by the vehicle within a preset collection period into a positioning position sequence, 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.

[0034] 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.

[0035] As an exemplary 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.

[0036] When the current positioning position is different from the positions of each logistics site in multiple logistics sites, it is considered that the current location of the vehicle 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.

[0037] When the current positioning position is the same as the position of any logistics site among multiple logistics sites, the current location of the vehicle is considered to be the current logistics site, and the target positioning position associated with the current positioning position continues to be 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.

[0038] When the number of target positioning positions does not meet the preset quantity conditions, it is considered that although the current location of the vehicle 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.

[0039] When the number of target positioning positions meets the preset number 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.

[0040] By performing the above judgment on each positioning position in the positioning position sequence, each starting point position in the positioning position sequence can be determined.

[0041] 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.

[0042] S103: Generate one or more vehicle driving trajectories according to each starting point position in the positioning position sequence.

[0043] As an exemplary embodiment, after determining each starting point position in the positioning position sequence, the server generates one or more vehicle driving trajectories according to each starting point position in the positioning position sequence.

[0044] 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.

[0045] The embodiment of the present application obtains a positioning position sequence of the vehicle when the vehicle is traveling between multiple logistics sites, and 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, determines the current positioning position as the starting position, generates one or more vehicle driving trajectories according to each starting position in the positioning position sequence, and is capable of performing logistics site identification and delivery behavior identification on each positioning position collected by the vehicle during transportation, determines the positioning position that is the same as the position of the logistics site where the vehicle continuously stays as the starting position, and generates a segmented vehicle driving trajectory, so that the user does not need to rely on the order data provided by the logistics distribution system to analyze the delivery behavior of the vehicle when passing through the logistics sites, and can also directly obtain the key vehicle driving trajectory, thereby realizing efficient acquisition of the key vehicle driving trajectory in the logistics transportation process.

[0046] 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.

[0047] 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 ratio threshold, such as 80% or 85%.

[0048] 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.

[0049] 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.

[0050] 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.

[0051] When the proportion is greater than the preset ratio threshold, it is considered that the number of target positioning positions meets the preset quantity condition, 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.

[0052] By performing the above judgment on each positioning position in the positioning position sequence, each starting point position in the positioning position sequence can be determined.

[0053] Since the vehicle is traveling between multiple logistics sites, the vehicle is timed, for example, the current location of the vehicle is collected every 15 seconds, and the location sequence includes multiple location locations collected by the vehicle in a preset collection period, such as the last 10 minutes, so the number of multiple location locations in the location sequence is fixed. By determining that the preset quantity condition includes that the number of target location locations in the location sequence accounts for more than a preset ratio threshold, the distribution behavior of the location corresponding to any logistics site in the location sequence can be quickly and accurately identified based on the preset quantity condition.

[0054] In practical applications, the preset quantity condition may also include that the number of target positioning positions is greater than a preset quantity threshold.

[0055] The embodiment of the present application can quickly and accurately identify the delivery behavior of the positioning position corresponding to any logistics site in the positioning position sequence by determining the preset quantity conditions, including that the proportion of the number of target positioning positions in the positioning position sequence is greater than the preset proportion threshold, thereby more efficiently obtaining the key vehicle driving trajectory in the logistics transportation process.

[0056] In an optional embodiment, generating one or more segments of vehicle driving trajectories based on each starting position in a positioning position sequence includes: dividing the positioning position sequence into one or more positioning position sub-sequences using each starting position in the positioning position sequence as a segmentation point; for each positioning position sub-sequence in the one or more positioning position sub-sequences, searching for trajectory points corresponding to each positioning position in the current positioning position sub-sequence from the road network where the vehicle is located, and generating a vehicle driving trajectory corresponding to the current positioning position sub-sequence based on each obtained trajectory point; obtaining one or more segments of vehicle driving trajectories based on the vehicle driving trajectories corresponding to each positioning position sub-sequence in the one or more positioning position sub-sequences.

[0057] 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.

[0058] Since the multiple consecutive positioning positions corresponding to the same logistics site in the positioning position sequence are the starting positions, if there is a starting position in the positioning position sequence, it can be considered that the same starting position appears multiple times in the positioning position sequence. Therefore, when the positioning position sequence is divided using each starting position in the positioning position sequence as a dividing point, some of the one or more positioning position subsequences obtained are meaningless and need to be deleted in practical applications.

[0059] For example, assuming that 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, the 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}, {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.

[0060] In practical applications, one of the starting positions that appear multiple times in a positioning position sequence may be selected and retained to update the positioning position sequence, and then the updated positioning position sequence may be segmented using each starting position in the updated positioning position sequence as a segmentation point to obtain one or more positioning position subsequences.

[0061] For each positioning position subsequence in one or more positioning position subsequences, determine the road network where the vehicle is located, search for trajectory points corresponding to each positioning position in the current positioning position subsequence from the road network where the vehicle is located, and generate a vehicle driving trajectory corresponding to the current positioning position subsequence based on the obtained trajectory points.

[0062] For example, assuming that the current positioning position subsequence is {oil depot position, gas station A position}, in the road network where the vehicle is located, the trajectory point corresponding to the oil depot position is trajectory point 1, and the trajectory point corresponding to the gas station A position is trajectory point 2. Based on the road network where the vehicle is located, one or more planned paths that can reach trajectory point 2 are found starting from trajectory point 1, 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.

[0063] By restoring each positioning position subsequence to the road network where the vehicle is located and inferring the vehicle's driving trajectory under the actual road structure, users can obtain a vehicle driving trajectory that fits the actual road structure.

[0064] Arrange the vehicle driving trajectories corresponding to each positioning position subsequence in the one or more positioning position subsequences to obtain one or more vehicle driving trajectories.

[0065] The embodiment of the present application divides the positioning position sequence by using each starting point 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.

[0066] In an optional embodiment, after generating one or more vehicle driving trajectories according to each starting point position in the positioning position sequence, it also includes: for each of the one or more vehicle driving trajectories, determining whether the current segment of the vehicle driving trajectory is an erroneous trajectory; if the current segment of the vehicle driving trajectory is an erroneous trajectory, deleting the current segment of the vehicle driving trajectory.

[0067] 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 more complex, each segment of the vehicle driving trajectory is inferred in the road network where the vehicle is located based only on at least two positioning positions in the corresponding positioning position subsequence, and it cannot be completely determined that it is the actual driving trajectory of the vehicle. The server can determine whether the vehicle driving trajectory is an erroneous trajectory in order to retain the correct vehicle driving trajectory.

[0068] 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.

[0069] The embodiment of the present application determines whether the current segment of the vehicle driving trajectory is an erroneous 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 erroneous trajectory, thereby ensuring the accuracy of each segment of the vehicle driving trajectory obtained, thereby more efficiently obtaining key vehicle driving trajectories in the logistics transportation process.

[0070] In an optional embodiment, determining whether the current segment of the vehicle's driving trajectory is an erroneous trajectory includes: when a trajectory length between two adjacent trajectory points in the current segment of the vehicle's driving trajectory satisfies a preset length condition, determining that the current segment of the vehicle's driving trajectory is an erroneous trajectory.

[0071] 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, wherein the preset length condition is set by the user.

[0072] When the length of any trajectory meets the preset length condition, it is considered that the vehicle has not collected a 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 segment of the vehicle's driving trajectory. The current segment of the vehicle's driving trajectory is determined to be an incorrect trajectory, and the current segment of the vehicle's driving trajectory is deleted.

[0073] 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.

[0074] The embodiment of the present application determines whether each segment of vehicle driving trajectory is an erroneous trajectory by judging whether the trajectory length between two adjacent trajectory points in each segment of vehicle driving trajectory meets a preset length condition, thereby ensuring the accuracy of each segment of vehicle driving trajectory obtained, thereby more efficiently obtaining key vehicle driving trajectories in the logistics transportation process.

[0075] In an optional embodiment, the method further includes step S104: S104, storing one or more segments of vehicle driving trajectories in each of a plurality of databases.

[0076] As an example, after obtaining one or more segments of vehicle driving trajectories, the server stores the one or more segments of vehicle driving trajectories in each of the multiple databases. For example, a search engine is used to store the one or more segments of vehicle driving trajectories in an ElasticSearch search library, and the one or more segments of vehicle driving trajectories are stored in a traditional relational database.

[0077] 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.

[0078] 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 method further includes steps S105 to S108: S105, responding 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; S106, when the query mode is the first query mode, searching the first vehicle driving trajectory that meets the query condition from the first database; 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; S108. When the query mode is the third query mode, searching the third database for a third vehicle driving trajectory that meets the query condition.

[0079] As an example, according to actual application requirements, three databases, namely a first database, a second database and a third database, are selected, wherein 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.

[0080] For example, assuming that the first database is the main database of the ElasticSearch search library, used to store the vehicle driving trajectories obtained within the last month, the second database is the slave database of the ElasticSearch search library, used to store the vehicle driving trajectories obtained within the last six months, and the third database is a traditional relational database, used to store the acquired vehicle driving trajectories in full. After the server uses the search engine to store one or more segments of vehicle driving trajectories in the main database and slave database of the ElasticSearch search library respectively, and stores one or more segments of vehicle driving trajectories in the traditional relational database, it can wait to receive a vehicle driving trajectory query request initiated by a user terminal.

[0081] 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.

[0082] After receiving the vehicle driving trajectory query request initiated by the 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 the first query mode, searches for the first vehicle driving trajectory that meets the query conditions from the first database; when the query mode is the second query mode, searches for the second vehicle driving trajectory that meets the query conditions from the second database; when the query mode is the third query mode, searches for the third vehicle driving trajectory that meets the query conditions from the third database.

[0083] 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 point position, an end point mark for indicating an end point position, and a time mark for indicating time information of a trajectory point.

[0084] The embodiment of the present application provides three query modes for users by storing one or more vehicle driving trajectories in three databases with different data cleaning cycles. This can not only avoid the problem of slow query speed caused by full storage in a single database, but also avoid the problem of fast data loss caused by high-frequency cleaning in a single database, thereby meeting various business needs of users.

[0085] Please see Figure 2 , Figure 2A structural schematic 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 the vehicle's 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 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 number condition, to determine that the current positioning position is 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; a vehicle driving trajectory generation module 203, which is used to generate one or more segments of vehicle driving trajectories according to each starting position in the positioning position sequence.

[0086] 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.

[0087] In an optional embodiment, generating one or more segments of vehicle driving trajectories based on each starting position in a positioning position sequence includes: dividing the positioning position sequence into one or more positioning position sub-sequences using each starting position in the positioning position sequence as a segmentation point; for each positioning position sub-sequence in the one or more positioning position sub-sequences, searching for trajectory points corresponding to each positioning position in the current positioning position sub-sequence from the road network where the vehicle is located, and generating a vehicle driving trajectory corresponding to the current positioning position sub-sequence based on each obtained trajectory point; obtaining one or more segments of vehicle driving trajectories based on the vehicle driving trajectories corresponding to each positioning position sub-sequence in the one or more positioning position sub-sequences.

[0088] In an optional embodiment, the vehicle driving trajectory generation module 203 is further used to determine whether the current segment of the vehicle driving trajectory is an erroneous trajectory for each segment of the vehicle driving trajectory in the one or more segments of the vehicle driving trajectory after generating one or more segments of the vehicle driving trajectory according to each starting point position in the positioning position sequence; if the current segment of the vehicle driving trajectory is an erroneous trajectory, delete the current segment of the vehicle driving trajectory.

[0089] In an optional embodiment, determining whether the current segment of the vehicle's driving trajectory is an erroneous trajectory includes: when a trajectory length between two adjacent trajectory points in the current segment of the vehicle's driving trajectory satisfies a preset length condition, determining that the current segment of the vehicle's driving trajectory is an erroneous trajectory.

[0090] In an optional embodiment, the device further includes: a vehicle driving trajectory storage module, which is used to store one or more segments of vehicle driving trajectories in each database of the multiple databases.

[0091] 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.

[0092] 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, which will not be repeated here.

[0093] Please see Figure 3 , Figure 3 A 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, including 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, the method described in the first embodiment of the present application is implemented, and the same beneficial effects can be achieved.

[0094] 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.

[0095] Processor 301 can process digital signals and can include various computing structures, such as complex instruction set computer structure, reduced instruction set computer structure, or a structure that implements a combination of multiple instruction sets. In some examples, processor 301 can be a microprocessor.

[0096] The memory 302 may 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 codes for implementing some functions or all functions of one or more modules described in the embodiments of the present application. The processor 301 of this embodiment may be used to execute instructions in the memory 302 to implement the method described in the first embodiment of the present application. The memory 302 includes a dynamic random access memory, a static random access memory, a flash memory, an optical memory, or other memory known to those skilled in the art.

[0097] 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.

[0098] 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 among 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 number condition, determine that the current positioning position is 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, generate one or more vehicle driving trajectories. The embodiment of the present application obtains a positioning position sequence of the vehicle when the vehicle is traveling between multiple logistics sites, and 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, determines the current positioning position as the starting position, generates one or more vehicle driving trajectories according to each starting position in the positioning position sequence, and is capable of performing logistics site identification and delivery behavior identification on each positioning position collected by the vehicle during transportation, determines the positioning position that is the same as the position of the logistics site where the vehicle continuously stays as the starting position, and generates a segmented vehicle driving trajectory, so that the user does not need to rely on the order data provided by the logistics distribution system to analyze the delivery behavior of the vehicle when passing through the logistics sites, and can also directly obtain the key vehicle driving trajectory, thereby realizing efficient acquisition of the key vehicle driving trajectory in the logistics transportation process.

[0099] The above embodiments are only described as examples. The various embodiments of the present application can be combined or nested with each other, and the present application is not limited to this.

[0100] In several embodiments provided in the present 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 schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to 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 a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order 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 with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0101] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0102] If the function is implemented in the form of a software function module 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 application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0103] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0104] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0105] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A vehicle driving trajectory processing method, characterized in that: Applied to a server, the server stores the locations of multiple logistics sites; the method comprises: When the vehicle is traveling between the 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; 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; One or more vehicle driving trajectories are generated according to each starting point position in the positioning position sequence.

2. The method according to claim 1, characterized in that 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.

3. The method according to claim 1, characterized in that The step of generating one or more vehicle driving trajectories according to each starting point position in the positioning position sequence includes: Using each starting point in the positioning position sequence as a segmentation point, segmenting the positioning position sequence 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.

4. The method according to claim 1, characterized in that: After generating one or more vehicle driving trajectories according to each starting point 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.

5. The method according to claim 4, 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, it is determined that the current segment of the vehicle driving track is an erroneous track.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: The one or more vehicle driving trajectories are stored in each of a plurality of databases respectively.

7. The method according to claim 6, characterized in that 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 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 a 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.

8. A vehicle driving trajectory processing device, characterized in that: Applied to a server, the server stores the locations of multiple logistics sites; the device comprises: A positioning position sequence acquisition module, used to acquire the positioning position sequence of the vehicle when the vehicle is traveling between the 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, 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, 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; The vehicle driving trajectory generating module is used to generate one or more vehicle driving trajectories according to each starting point position in the positioning position sequence.

9. 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 7 is implemented.

10. 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 7.

Citation Information

Patent Citations

  • Lane-level road condition acquisition method and device, electronic equipment and storage medium

    CN116403415A

  • Travel trajectory data processing method and device and traffic navigation method

    CN117007062A

  • Vehicle track generation method and device and electronic equipment

    CN118795505A

  • Label data generation method and device, medium, equipment and vehicle

    CN119048316A

  • Route Computation Based on Route-Oriented Vehicle Trajectories

    US20110208429A1