A method, device, storage medium and terminal for planning a vehicle transportation route

By adopting the loop traversal search method of the route planning queue in truck navigation, the accuracy and timeliness problems of the existing navigation algorithm are solved, and efficient and accurate route planning is achieved.

CN113607183BActive Publication Date: 2024-08-23BEIJING ZHONGJIAOXING ROAD INTERNET OF VEHICLES TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110897475.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-05
Publication Date
2024-08-23
Estimated Expiration
2041-08-05

AI Technical Summary

Technical Problem

Existing Internet truck navigation solutions have accuracy and timeliness issues in route planning algorithms. Dijkstra's algorithm is accurate in calculation but slow, the hierarchical reduction method has poor timeliness, and the A-star algorithm is fast but may have calculation errors.

Method used

The route planning queue is used to perform cyclic traversal search of queue entry and exit. By determining the starting point and end point location, initializing the search unit deduplication set, querying the target road segment and generating a weight value, and the dequeue operation generates a transportation route.

Benefits of technology

Efficiently plan the route with the minimum weight within a short range, providing more accurate and reasonable navigation routes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113607183B
    Figure CN113607183B
Patent Text Reader

Abstract

The present invention discloses a method, device, storage medium and terminal for planning a transportation route of a vehicle. The method includes: determining a starting position and an end position, searching for a starting section and an end section of the starting position and the end position; initializing a search unit deduplication set when the section identifiers are different; determining a search node according to the starting section, and determining an end node according to the end section; querying a target section connected to the search node, and generating a first search unit, a first weight value and a second weight value based on the target section; when the first search unit does not exist in the deduplication set, placing the first search unit and the previous search unit in a route planning queue, and recording them in the search unit deduplication set; executing the dequeueing of the route planning queue based on the first and second weight values ​​to generate a second search unit; when the rear node of the section corresponding to the second search unit is an end node, generating a transportation route of the vehicle according to the second search unit. The present application can improve the accuracy of route planning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent transportation technology, and in particular to a vehicle transportation route planning method, device, storage medium and terminal. Background Art

[0002] The current mainstream Internet truck navigation solution generates routes through route planning algorithms by collecting information such as road height limits, weight limits, and time limits, combined with route connectivity, route speed limits, and other data. Common navigation route planning algorithms include Dijkstra, A-star, and hierarchical reduction algorithms. The Dijkstra algorithm can accurately calculate the minimum weight, but it runs slowly. The hierarchical reduction method runs very fast, but after the data weight rules change, a long period of data compilation is required, and the timeliness is poor. Although the A-star algorithm is much faster than Dijkstra, errors may occur when calculating the minimum weight, and it cannot accurately meet the user's route requirements. Summary of the invention

[0003] The embodiments of the present application provide a method, device, storage medium and terminal for planning a transportation route of a vehicle. In order to have a basic understanding of some aspects of the disclosed embodiments, a simple summary is given below. This summary is not a general review, nor is it intended to identify key / important components or describe the scope of protection of these embodiments. Its only purpose is to present some concepts in a simple form as a preface to the detailed description that follows.

[0004] In a first aspect, an embodiment of the present application provides a method for planning a transportation route for a vehicle, the method comprising:

[0005] Determine the starting point location and the end point location, and search the starting point road section and the end point road section corresponding to the starting point location and the end point location in the road section identification database;

[0006] When the identifier of the starting section is different from the identifier of the end section, initializing the search unit to remove duplicate sets;

[0007] Determine the current search node according to the starting section, and determine the end node according to the end section;

[0008] Querying a target road section connected to the current search node from the node map, and generating a first search unit, a first weight value, and a second weight value based on the target road section;

[0009] When the first search unit does not exist in the search unit deduplication set, placing the first search unit and a previous search unit of the first search unit in a route planning queue, and recording the first search unit and the previous search unit in the search unit deduplication set;

[0010] Execute a dequeue operation of the route planning queue based on the first weight value and the second weight value to generate a second search unit;

[0011] When the rear node of the road section corresponding to the second search unit is the end node, the transportation route of the vehicle is generated according to the second search unit.

[0012] Optionally, determine the starting point and the end point, including:

[0013] Display the starting point position input box and the end point position input box;

[0014] Receive the start position description text and the end position description text input into the start position input box and the end position input box;

[0015] When a submit text instruction is received, the start position description text is converted into the start position, and the end position description text is converted into the end position.

[0016] Optionally, the starting section or the ending section includes a front node and a rear node; the front node is the node at the starting end of the section; the rear node is the node at the end of the section;

[0017] The search node is determined according to the starting section, and the end node is determined according to the end section, including:

[0018] Determine the rear node of the starting section as the starting node;

[0019] Determine the start node as the current search node;

[0020] The previous node of the terminal segment is determined as the end node.

[0021] Optionally, generating a first search unit, a first weight value, and a second weight value based on the target road segment includes:

[0022] Obtain the identifier of the target road section, and query the road map for the current road section information corresponding to the identifier of the target road section;

[0023] Generate a first search unit based on current road section information;

[0024] Determine a first weight of the first search unit according to the current road section information;

[0025] The straight-line distance between the rear node and the end node of the target road segment is determined as the second weight of the first search unit.

[0026] Optionally, determining the first weight of the first search unit according to the current road section information includes:

[0027] Determine whether there is a preceding road section corresponding to the current road section according to the current road section information;

[0028] If not, calculating the length of the current section, and determining the length of the current section as the first weight of the first search unit;

[0029] If yes, calculate the length of the previous section and the length of the current section;

[0030] The length of the previous section is added to the length of the current section to generate a first weight of the first search unit.

[0031] Optionally, performing a dequeue operation of the route planning queue based on the first weight value and the second weight value to generate a second search unit includes:

[0032] Get two weight values ​​for each search unit in the route planning queue;

[0033] The target weight of each search unit is generated by summing the two weight values ​​of each search unit;

[0034] After sorting each search unit based on the target weight of each search unit, a sorted search unit is generated;

[0035] Sequentially intercepting a preset number of search units from the sorted search units;

[0036] The first weight value of each search unit is obtained from a preset number of search units, and the search unit corresponding to the smallest first weight value is dequeued to generate a second search unit.

[0037] Optionally, generating a transportation route of the vehicle according to the second search unit includes:

[0038] Using a second search unit to search for a preceding road segment in a search unit deduplication set;

[0039] Determine whether the previous road segment of the previous road segment can be queried in the search unit deduplication set;

[0040] If not, all the queried road sections are spliced ​​together to generate the vehicle's transportation route.

[0041] In a second aspect, an embodiment of the present application provides a vehicle transportation route planning device, the device comprising:

[0042] A road segment search module is used to determine the starting point position and the end point position, and search the starting point road segment and the end point road segment corresponding to the starting point position and the end point position respectively in the road segment identification database;

[0043] An initialization module, used for initializing the search unit deduplication set when the identifier of the starting section is different from the identifier of the end section;

[0044] A node determination module is used to determine the current search node according to the starting section, and determine the end node according to the end section;

[0045] A weight value generating module, used to query a target road section connected to a current search node from a node map, and generate a first search unit, a first weight value and a second weight value based on the target road section;

[0046] a placement record module, configured to place the first search unit and a previous search unit of the first search unit in a route planning queue when the first search unit does not exist in the search unit deduplication set, and record the first search unit and the previous search unit in the search unit deduplication set;

[0047] A search unit generation module, configured to perform a dequeue operation of the route planning queue based on the first weight value and the second weight value to generate a second search unit;

[0048] The route generation module is used to generate a transportation route for the vehicle according to the second search unit when the rear node of the road section corresponding to the second search unit is an end node.

[0049] In a third aspect, an embodiment of the present application provides a computer storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.

[0050] In a fourth aspect, an embodiment of the present application provides a terminal, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.

[0051] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0052] In an embodiment of the present application, the vehicle's transport route planning device first determines the starting position and the end position, searches for the starting section and the end section of the starting position and the end position, and then initializes the search unit deduplication set when the section identifiers are different and the position is unreachable, and then determines the search node according to the starting section, determines the end node according to the end section, and queries the target section connected to the search node, and generates the first search unit, the first and second weight values ​​based on the target section, and then when the first search unit does not exist in the deduplication set, the first search unit and the previous search unit are placed in the route planning queue, recorded in the search unit deduplication set, and then the route planning queue is dequeued based on the first and second weight values ​​to generate the second search unit, and finally when the rear node of the section corresponding to the second search unit is the end node, the vehicle's transport route is generated according to the second search unit. Since the present application uses the route planning queue for cyclic traversal search of entry and exit, the final section is more accurate, so that the route with the minimum weight can be efficiently planned within a shorter range, thereby providing a reasonable navigation route for the user.

[0053] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0055] Figure 1 It is a flow chart of a method for planning a vehicle transportation route provided in an embodiment of the present application;

[0056] Figure 2 is a schematic diagram of a location input box provided in an embodiment of the present application;

[0057] Figure 3 It is a schematic block diagram of a process of vehicle transportation route planning provided by an embodiment of the present application;

[0058] Figure 4 It is a structural schematic diagram of a vehicle transportation route planning device provided in an embodiment of the present application;

[0059] Figure 5 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] The following description and the drawings sufficiently illustrate specific embodiments of the invention to enable those skilled in the art to practice them.

[0061] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0062] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are only examples of devices and methods consistent with some aspects of the present invention as detailed in the attached claims.

[0063] In the description of the present invention, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. In addition, in the description of the present invention, unless otherwise specified, "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previously associated objects are in an "or" relationship.

[0064] The present application provides a method, device, storage medium and terminal for planning a transportation route of a vehicle to solve the problems existing in the above-mentioned related technical problems. In the technical solution provided by the present application, since the present application adopts a route planning queue to perform a cyclic traversal search for entering and exiting the queue, the final road section is more accurate, so that the route with the minimum weight is efficiently planned within a shorter range, thereby providing a reasonable navigation route for the user, which is described in detail using an exemplary embodiment below.

[0065] The following will be combined with the attached Figure 1 -Attached Figure 3 , the method for planning the transportation route of the vehicle provided in the embodiment of the present application is introduced in detail. The method can be implemented by a computer program and can be run on a transportation route planning device for a vehicle based on the von Neumann system. The computer program can be integrated in an application or run as an independent tool application. Among them, the transportation route planning device for the vehicle in the embodiment of the present application can be a user terminal, including but not limited to: a personal computer, a tablet computer, a handheld device, a vehicle-mounted device, a wearable device, a computing device or other processing devices connected to a wireless modem, etc. In different networks, the user terminal can be called by different names, for example: user equipment, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, cellular phone, cordless phone, personal digital assistant (PDA), 5G network or terminal equipment in future evolution network, etc.

[0066] See also Figure 1 , is a flow chart of a method for planning a vehicle transportation route according to an embodiment of the present application. Figure 1 As shown, the method of the embodiment of the present application may include the following steps:

[0067] S101, determining a starting point position and an end point position, and searching a road segment identification database for a starting point road segment and an end point road segment corresponding to the starting point position and the end point position respectively;

[0068] The starting point can be regarded as the location of the user, or the starting point the user wants to start from. The end point is the location the user arrives at, or the destination the user wants to arrive at.

[0069] Generally, the road segment identification database can be recorded as STRTree, which is an R-tree spatial index created in advance using the location information of all road segments. The index is used to query road segments according to location.

[0070] In an embodiment of the present application, when determining the starting position and the end position, the starting position input box and the end position input box are first displayed, and then the starting position description text and the end position description text entered into the starting position input box and the end position input box are received, and finally when a submit text instruction is received, the starting position description text is converted into the starting position, and the end position description text is converted into the end position.

[0071] For example, the user first starts the transportation route planning software on the client, and then the client displays the starting location input box and the end location input box, such as Figure 2 As shown, the user enters the starting position description text and the end position description text into the starting position input box and the end position input box, then clicks the OK command, and finally matches the starting position from the database based on the starting position description text and the fuzzy matching algorithm, and matches the end position from the database based on the end position description text and the fuzzy matching algorithm.

[0072] Furthermore, after the starting point position and the end point position are obtained, the STRTree is connected, and the starting point road segment and the end point road segment corresponding to the starting point position and the end point position are searched from the STRTree.

[0073] S102, when the identifier of the starting section is different from the identifier of the end section, initializing the search unit to remove duplicate sets;

[0074] Usually, the search unit deduplication set can be recorded as a closeset set, which is created in advance and stores a search unit array. The first value of the array is a search unit, and the second value is the preceding search unit of the search unit, that is, from which road section this road section is entered.

[0075] In one possible implementation, after searching for the starting section and the end section, the identifiers corresponding to the starting section and the end section are obtained, and the starting section identifier and the end section identifier are obtained, and it is determined whether the starting section identifier and the end section identifier are the same; if they are the same, it is determined whether the starting point to the end point is reachable on the section, if it is reachable, the route planning ends, if it is not reachable, a search unit de-duplication set is initialized; if the starting section identifier and the end section identifier are different, a search unit de-duplication set is directly initialized.

[0076] S103, determining a current search node according to the starting section, and determining an end node according to the end section;

[0077] The starting point section or the ending point section includes a front node and a rear node; the front node is the node at the starting end of the section; and the rear node is the node at the end of the section.

[0078] In a possible implementation, firstly, the rear node of the starting segment is determined as the starting node, then the starting node is determined as the current search node curnode, and finally, the front node of the terminal segment is determined as the ending node.

[0079] S104, searching the node map for a target road section connected to the current search node, and generating a first search unit, a first weight value, and a second weight value based on the target road section;

[0080] Usually, a node map can be recorded as nodemap, which is pre-established and used to query detailed information of each road section connected at the node according to the node ID.

[0081] In an embodiment of the present application, the target road section connected to the current search node is first queried from the nodemap, the identifier of the target road section is obtained, and the current road section information corresponding to the identifier of the target road section is queried in the road map. Then, the first search unit is generated with the current road section information, and then the first weight of the first search unit is determined based on the current road section information. Finally, the straight-line distance between the rear node and the end node of the target road section is determined as the second weight of the first search unit.

[0082] In one possible implementation, in the nodemap, a road section connected to the curnode is queried, and the section ID is used to query the section information from the roadmap to generate a search unit. The first weight is generated based on the current section information and the preceding section, and the sum is used as the first weight of the search unit (in this case, the length of the route and the total length of the preceding section. If it is the first road, there is no preceding section), and the straight line information from the rear node to the end node of the section is used to generate the second weight (in this case, the straight line distance from the rear node to the end node).

[0083] It should be noted that the road map can be recorded as roadmap, and the detailed information of the road section can be queried according to the road section ID.

[0084] Furthermore, when determining the first weight of the first search unit based on the current road section information, it can be determined based on the current road section information whether there is a preceding road section corresponding to the current road section; if not, calculate the length of the current road section, and determine the length of the current road section as the first weight of the first search unit; if so, calculate the length of the preceding road section, and calculate the length of the current road section; sum the length of the preceding road section with the length of the current road section to generate the first weight of the first search unit.

[0085] S105, when the first search unit does not exist in the search unit deduplication set, placing the first search unit and the previous search unit of the first search unit in a route planning queue, and recording the first search unit and the previous search unit in the search unit deduplication set;

[0086] In an embodiment of the present application, it is first determined whether the first search unit exists in the search unit deduplication set; if not, the first search unit and the previous search unit of the first search unit are placed in the route planning queue, and the first search unit and the previous search unit are recorded in the search unit deduplication set; if so, step S104 of querying the target road section connected to the current search node from the node map is continued.

[0087] In a possible implementation, check whether the current search unit is in the closeset. If not, put the search unit and the search unit of the previous section into the route planning queue, and then perform a dequeue operation. If not, use curnode to search for another connected section from the nodemap, and re-execute step S104.

[0088] S106, performing a dequeue operation of the route planning queue based on the first weight value and the second weight value to generate a second search unit;

[0089] Usually, the route planning queue is a pre-set route planning queue, which stores search unit objects and has a search threshold K. The queue can perform dequeue and enqueue operations. For this queue, when enqueuing, the search unit is directly placed at the end of the queue. For this queue, when dequeuing, all search units in the queue are sorted first, and the sum of the first weight + the second weight is small. Then, the first K search units after sorting are traversed, and the one with the smallest first weight is selected for dequeue.

[0090] In one possible implementation, when performing a dequeue operation, first obtain two weight values ​​of each search unit in the route planning queue, then add the two weight values ​​of each search unit to generate a target weight for each search unit, then sort each search unit based on the target weight of each search unit to generate a sorted search unit, then intercept a preset number of search units from the sorted search units in turn, finally obtain the first weight value of each search unit from the preset number of search units, and dequeue the search unit corresponding to the smallest first weight value to generate a second search unit.

[0091] S107: When the rear node of the road segment corresponding to the second search unit is an end node, a transportation route of the vehicle is generated according to the second search unit.

[0092] In a possible implementation, after the second search unit is generated, it is determined whether the rear node of the road section corresponding to the second search unit is the end node; if so, the transportation route of the vehicle is generated according to the second search unit. If not, the rear node of the second search unit is determined as the current search node curdnode, and the step S104 of querying the target road section connected to the current search node from the node map is continued; or, when the number of routes in the search unit deduplication set exceeds a preset value, the transportation route of the vehicle is generated according to the second search unit.

[0093] Specifically, when generating the vehicle's transportation route based on the second search unit, the second search unit is first used to query the preceding road segment in the search unit deduplication set, and then it is determined whether the preceding road segment can be queried in the search unit deduplication set; if not, all the queried road segments are spliced ​​together to generate the vehicle's transportation route; if so, the query is continued until the preceding road segment cannot be found.

[0094] For example, when generating a transportation route for a vehicle based on the second search unit, the search unit is used to search for a preceding road segment in the closeset, and then the preceding road segment is used to cyclically search for the preceding road segment in the closeset until no preceding road segment is found, and then the routes composed of these road segments are spliced ​​into the final planned path.

[0095] For example Figure 3 As shown, Figure 3This is a schematic diagram of the process of the transportation route planning process of the vehicle of the present application. First, two maps are established, one is a roadmap, which can query the detailed information of the road section according to the road section id, and the other is a nodemap, which is used to query the detailed information of each road section connected to the node according to the node id. Then, a search unit object is designed, and each search unit contains a road section id, the previous node id of the road section, the next node id of the road section, the first weight (current route weight), the second weight (the weight from the next node to the destination) and other five fields. Then, a route planning queue is set, and the search unit objects are stored in the queue. The queue has a search threshold K, and the queue can perform queue entry and queue exit operations. When starting route planning, the nearest road section id is searched from the STRTree according to the starting point position, and the nearest road section id is searched according to the end point position. The next node of the starting section is used as the starting node. Take the previous node of the end segment as the end node, and the start node as the current search node curnode. When the start segment ID is different from the end segment ID, initialize a closeset, take the next node of the start segment as the start node, take the previous node of the end segment as the end node, and take the start node as the current search node curnode. In the nodemap, query a segment connected to curnode, use the id of the segment, query the segment information from the roadmap, generate a search unit, and add the first weight generated according to the current segment information and the previous segment as the first weight of the search unit (in this case, it is the total length of the route and the previous segment. If it is the first road, there is no previous segment). Use the straight line information from the next node to the end node of the segment to generate the second weight (in this case, it is the straight line distance from the next node to the end node). Check whether the search unit is in the closeset. If not, put the search unit and the search unit of the previous segment into the route planning queue, and then perform the dequeue operation. When dequeuing, execute the route planning queue dequeue rules, and then check whether the back point of the dequeue search unit is equal to the end node. If it is equal, the end point is found and the loop ends.

[0096] In an embodiment of the present application, the vehicle's transport route planning device first determines the starting position and the end position, searches for the starting section and the end section of the starting position and the end position, and then initializes the search unit deduplication set when the section identifiers are different and the position is unreachable, and then determines the search node according to the starting section, determines the end node according to the end section, and queries the target section connected to the search node, and generates the first search unit, the first and second weight values ​​based on the target section, and then when the first search unit does not exist in the deduplication set, the first search unit and the previous search unit are placed in the route planning queue, recorded in the search unit deduplication set, and then the route planning queue is dequeued based on the first and second weight values ​​to generate the second search unit, and finally when the rear node of the section corresponding to the second search unit is the end node, the vehicle's transport route is generated according to the second search unit. Since the present application uses the route planning queue for cyclic traversal search of entry and exit, the final section is more accurate, so that the route with the minimum weight can be efficiently planned within a shorter range, thereby providing a reasonable navigation route for the user.

[0097] The following are embodiments of the device of the present invention, which can be used to implement the method embodiments of the present invention. For details not disclosed in the device embodiments of the present invention, please refer to the method embodiments of the present invention.

[0098] See also Figure 4 , which shows a schematic diagram of the structure of a vehicle transportation route planning device provided by an exemplary embodiment of the present invention. The vehicle transportation route planning device can be implemented as all or part of a terminal through software, hardware or a combination of both. The device 1 includes a road segment search module 10, an initialization module 20, a node determination module 30, a weight value generation module 40, a placement record module 50, a search unit generation module 60, and a route generation module 70.

[0099] The road segment search module 10 is used to determine the starting point position and the end point position, and search the starting point road segment and the end point road segment corresponding to the starting point position and the end point position respectively in the road segment identification database;

[0100] An initialization module 20, used for initializing the search unit deduplication set when the identifier of the starting section is different from the identifier of the end section;

[0101] A node determination module 30, for determining a current search node according to a starting section, and determining an end node according to an end section;

[0102] A weight value generating module 40 is used to query a target road section connected to the current search node from the node map, and generate a first search unit, a first weight value and a second weight value based on the target road section;

[0103] a placement record module 50, configured to place the first search unit and a previous search unit of the first search unit in a route planning queue when the first search unit does not exist in the search unit deduplication set, and record the first search unit and the previous search unit in the search unit deduplication set;

[0104] A search unit generating module 60, configured to perform a dequeue operation of the route planning queue based on the first weight value and the second weight value, and generate a second search unit;

[0105] The route generating module 70 is used to generate a transport route of the vehicle according to the second search unit when the rear node of the road section corresponding to the second search unit is an end node.

[0106] It should be noted that the vehicle transport route planning device provided in the above embodiment only uses the division of the above functional modules as an example when executing the vehicle transport route planning method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the vehicle transport route planning device provided in the above embodiment and the vehicle transport route planning method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0107] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0108] In an embodiment of the present application, the vehicle's transport route planning device first determines the starting position and the end position, searches for the starting section and the end section of the starting position and the end position, and then initializes the search unit deduplication set when the section identifiers are different and the position is unreachable, and then determines the search node according to the starting section, determines the end node according to the end section, and queries the target section connected to the search node, and generates the first search unit, the first and second weight values ​​based on the target section, and then when the first search unit does not exist in the deduplication set, the first search unit and the previous search unit are placed in the route planning queue, recorded in the search unit deduplication set, and then the route planning queue is dequeued based on the first and second weight values ​​to generate the second search unit, and finally when the rear node of the section corresponding to the second search unit is the end node, the vehicle's transport route is generated according to the second search unit. Since the present application uses the route planning queue for cyclic traversal search of entry and exit, the final section is more accurate, so that the route with the minimum weight can be efficiently planned within a shorter range, thereby providing a reasonable navigation route for the user.

[0109] The present invention also provides a computer readable medium having program instructions stored thereon, which, when executed by a processor, implements the vehicle transportation route planning method provided by each of the above method embodiments. The present invention also provides a computer program product containing instructions, which, when executed on a computer, enables the computer to execute the vehicle transportation route planning method of each of the above method embodiments.

[0110] See also Figure 5 , which is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. Figure 5 As shown, the terminal 1000 may include: at least one processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , and at least one communication bus 1002 .

[0111] The communication bus 1002 is used to realize the connection and communication between these components.

[0112] The user interface 1003 may include a display screen (Display) and a camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.

[0113] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0114] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts of the entire electronic device 1000, and executes various functions and processes data of the electronic device 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the processor 1001 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1001 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, and it can be implemented separately through a chip.

[0115] Among them, the memory 1005 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1005 may optionally be at least one storage device located away from the aforementioned processor 1001. As Figure 5 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a vehicle transportation route planning application.

[0116] exist Figure 5 In the terminal 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 1001 can be used to call the vehicle transportation route planning application stored in the memory 1005, and specifically perform the following operations:

[0117] Determine the starting point location and the end point location, and search the starting point road section and the end point road section corresponding to the starting point location and the end point location in the road section identification database;

[0118] When the identifier of the starting section is different from the identifier of the end section, initializing the search unit to remove duplicate sets;

[0119] Determine the current search node according to the starting section, and determine the end node according to the end section;

[0120] Querying a target road section connected to the current search node from the node map, and generating a first search unit, a first weight value, and a second weight value based on the target road section;

[0121] When the first search unit does not exist in the search unit deduplication set, placing the first search unit and a previous search unit of the first search unit in a route planning queue, and recording the first search unit and the previous search unit in the search unit deduplication set;

[0122] Execute a dequeue operation of the route planning queue based on the first weight value and the second weight value to generate a second search unit;

[0123] When the rear node of the road section corresponding to the second search unit is the end node, the transportation route of the vehicle is generated according to the second search unit.

[0124] In one embodiment, the processor 1001 performs the following operations when determining the starting position and the ending position:

[0125] Display the starting point position input box and the end point position input box;

[0126] Receive the start position description text and the end position description text input into the start position input box and the end position input box;

[0127] When a submit text instruction is received, the start position description text is converted into the start position, and the end position description text is converted into the end position.

[0128] In one embodiment, when the processor 1001 determines the search node according to the starting section and determines the end node according to the end section, the processor 1001 specifically performs the following operations:

[0129] Determine the rear node of the starting section as the starting node;

[0130] Determine the start node as the current search node;

[0131] The previous node of the terminal segment is determined as the end node.

[0132] In one embodiment, when the processor 1001 generates the first search unit, the first weight value, and the second weight value based on the target road segment, the processor 1001 specifically performs the following operations:

[0133] Obtain the identifier of the target road section, and query the road map for the current road section information corresponding to the identifier of the target road section;

[0134] Generate a first search unit based on current road section information;

[0135] Determine a first weight of the first search unit according to the current road section information;

[0136] The straight-line distance between the rear node and the end node of the target road segment is determined as the second weight of the first search unit.

[0137] In one embodiment, when the processor 1001 determines the first weight of the first search unit according to the current road section information, the processor 1001 specifically performs the following operations:

[0138] Determine whether there is a preceding road section corresponding to the current road section according to the current road section information;

[0139] If not, calculating the length of the current section, and determining the length of the current section as the first weight of the first search unit;

[0140] If yes, calculate the length of the previous section and the length of the current section;

[0141] The length of the previous section is added to the length of the current section to generate a first weight of the first search unit.

[0142] In one embodiment, when the processor 1001 performs a dequeue operation of the route planning queue based on the first weight value and the second weight value to generate the second search unit, the processor 1001 specifically performs the following operations:

[0143] Get two weight values ​​for each search unit in the route planning queue;

[0144] The target weight of each search unit is generated by summing the two weight values ​​of each search unit;

[0145] After sorting each search unit based on the target weight of each search unit, a sorted search unit is generated;

[0146] Sequentially intercepting a preset number of search units from the sorted search units;

[0147] The first weight value of each search unit is obtained from a preset number of search units, and the search unit corresponding to the smallest first weight value is dequeued to generate a second search unit.

[0148] In one embodiment, when the processor 1001 generates a transportation route for the vehicle according to the second search unit, the processor 1001 specifically performs the following operations:

[0149] Using a second search unit to search for a preceding road segment in a search unit deduplication set;

[0150] Determine whether the previous road segment of the previous road segment can be queried in the search unit deduplication set;

[0151] If not, all the queried road sections are spliced ​​together to generate the vehicle's transportation route.

[0152] In an embodiment of the present application, the vehicle's transport route planning device first determines the starting position and the end position, searches for the starting section and the end section of the starting position and the end position, and then initializes the search unit deduplication set when the section identifiers are different and the position is unreachable, and then determines the search node according to the starting section, determines the end node according to the end section, and queries the target section connected to the search node, and generates the first search unit, the first and second weight values ​​based on the target section, and then when the first search unit does not exist in the deduplication set, the first search unit and the previous search unit are placed in the route planning queue, recorded in the search unit deduplication set, and then the route planning queue is dequeued based on the first and second weight values ​​to generate the second search unit, and finally when the rear node of the section corresponding to the second search unit is the end node, the vehicle's transport route is generated according to the second search unit. Since the present application uses the route planning queue for cyclic traversal search of entry and exit, the final section is more accurate, so that the route with the minimum weight can be efficiently planned within a shorter range, thereby providing a reasonable navigation route for the user.

[0153] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the vehicle transportation route planning program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0154] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A method for planning a vehicle transportation route, It is characterized in that The method comprises: Determine a starting point position and an end point position, and search a road segment identification database for a starting point road segment and an end point road segment corresponding to the starting point position and the end point position, respectively; When the identifier of the starting section is different from the identifier of the end section, initializing the search unit to remove duplicate sets; Determine a current search node according to the starting section, and determine an end node according to the end section; A target road segment connected to the current search node is searched from the node map, and a first search unit, a first weight value and a second weight value are generated based on the target road segment; wherein, The generating of the first search unit, the first weight value and the second weight value based on the target road section includes: Obtaining the identifier of the target road section, and querying the road map for current road section information corresponding to the identifier of the target road section; generating a first search unit based on the current road section information; Determine a first weight of the first search unit according to the current road section information; Determine the straight-line distance between the rear node of the target road section and the end node as the second weight of the first search unit; When the first search unit does not exist in the search unit deduplication set, the first search unit and the previous search unit of the first search unit are placed in the route planning queue, and the first search unit and the previous search unit are recorded in the search unit deduplication set; when the first search unit exists in the search unit deduplication set, the step of querying the target road segment connected to the current search node from the node map is continued; Execute a dequeue operation of the route planning queue based on the first weight value and the second weight value to generate a second search unit; When the rear node of the road segment corresponding to the second search unit is the end node, a transportation route of the vehicle is generated according to the second search unit.

2. The method according to claim 1, It is characterized in that The step of determining the starting point and the end point comprises: Display the starting point position input box and the end point position input box; Receiving a starting point position description text and an end point position description text input into the starting point position input box and the end point position input box; When a text submission instruction is received, the start position description text is converted into the start position, and the end position description text is converted into the end position.

3. The method according to claim 1, It is characterized in that The starting point section or the end point section includes a front node and a rear node; the front node is the node at the starting end of the section; The latter node is the node at the end of the road section; The step of determining the search node according to the starting section and determining the end node according to the end section includes: Determine the rear node of the starting point section as the starting node; Determine the starting node as the current search node; The previous node of the terminal section is determined as the end node.

4. The method according to claim 1, It is characterized in that The determining the first weight of the first search unit according to the current road section information includes: Determine whether there is a preceding road section corresponding to the current road section according to the current road section information; If not, calculating the length of the current section, and determining the length of the current section as the first weight of the first search unit; If yes, calculate the length of the preceding section and calculate the length of the current section; The length of the preceding section is added to the length of the current section to generate a first weight of the first search unit.

5. The method according to claim 1, It is characterized in that The step of performing a dequeue operation of the route planning queue based on the first weight value and the second weight value to generate a second search unit includes: Obtain two weight values ​​of each search unit in the route planning queue; After summing the two weight values ​​of each search unit, a target weight of each search unit is generated; After sorting each of the search units based on the target weight of each of the search units, generating sorted search units; Sequentially intercepting a preset number of search units from the sorted search units; The first weight value of each search unit is obtained from the preset number of search units, and the search unit corresponding to the smallest first weight value is dequeued to generate a second search unit.

6. The method according to claim 1, It is characterized in that The generating of the transportation route of the vehicle according to the second search unit comprises: Using the second search unit to search for a preceding road segment in the search unit deduplication set; Determine whether the preceding road segment of the preceding road segment can be found in the search unit de-duplication set; If not, all the queried road sections are spliced ​​together to generate the vehicle's transportation route.

7. A vehicle transportation route planning device, It is characterized in that The device comprises: A road segment search module, used to determine a starting point position and an end point position, and search a road segment identification database for a starting point road segment and an end point road segment corresponding to the starting point position and the end point position respectively; An initialization module, used for initializing a search unit deduplication set when the identifier of the starting section is different from the identifier of the end section; A node determination module, used to determine a current search node according to the starting section, and to determine an end node according to the end section; A weight value generating module, used for querying a target road section connected to the current search node from a node map, and generating a first search unit, a first weight value and a second weight value based on the target road section; The step of generating a first search unit, a first weight value and a second weight value based on the target road section includes: Obtaining the identifier of the target road section, and querying the road map for current road section information corresponding to the identifier of the target road section; generating a first search unit based on the current road section information; Determine a first weight of the first search unit according to the current road section information; Determine the straight-line distance between the rear node of the target road section and the end node as the second weight of the first search unit; a placement record module, configured to place the first search unit and a previous search unit of the first search unit in a route planning queue when the first search unit does not exist in the search unit deduplication set, and record the first search unit and the previous search unit in the search unit deduplication set; and when the first search unit exists in the search unit deduplication set, continue to execute the step of querying a target road segment connected to the current search node from a node map; A search unit generation module, configured to perform a dequeue operation of the route planning queue based on the first weight value and the second weight value, and generate a second search unit; A route generation module is used to generate a transportation route for the vehicle according to the second search unit when the rear node of the road section corresponding to the second search unit is the end node.

8. A computer storage medium, It is characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method according to any one of claims 1 to 6.

9. A terminal, It is characterized in that include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method according to any one of claims 1 to 6.