CN114184208A - Method, apparatus, electronic device, and medium for providing navigation route for vehicle - Google Patents

Method, apparatus, electronic device, and medium for providing navigation route for vehicle Download PDF

Info

Publication number
CN114184208A
CN114184208A CN202111511939.0A CN202111511939A CN114184208A CN 114184208 A CN114184208 A CN 114184208A CN 202111511939 A CN202111511939 A CN 202111511939A CN 114184208 A CN114184208 A CN 114184208A
Authority
CN
China
Prior art keywords
steering
road section
information
road
detected
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111511939.0A
Other languages
Chinese (zh)
Inventor
陈卓
孙智彬
夏曙东
杨晓明
江天
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Transwiseway Information Technology Co Ltd
Original Assignee
Beijing Transwiseway Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Transwiseway Information Technology Co Ltd filed Critical Beijing Transwiseway Information Technology Co Ltd
Priority to CN202111511939.0A priority Critical patent/CN114184208A/en
Publication of CN114184208A publication Critical patent/CN114184208A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/3407Route searching; Route guidance specially adapted for specific applications
    • G01C21/3415Dynamic re-routing, e.g. recalculating the route when the user deviates from calculated route or after detecting real-time traffic data or accidents
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/3446Details of route searching algorithms, e.g. Dijkstra, A*, arc-flags, using precalculated routes

Abstract

The application discloses a method, a device, electronic equipment and a medium for providing a navigation route for a vehicle. According to the method and the device, all road section information passing through the initial navigation route can be acquired if the navigation task is acquired; traversing a preset road section steering information set to obtain the steering relation between every two adjacent road section information in all road section information, and generating a steering information set; and merging the steering relations meeting the merging conditions in the steering information set to obtain a steering event set and generate a target navigation line containing all road section information and corresponding steering prompts. By applying the technical scheme of the application, the steering relation between each two adjacent road sections can be calculated in advance according to the initial road section data, and the steering prompt required by actual driving in navigation is obtained after merging processing is carried out on one or more steering relations meeting merging conditions. And finally, generating a corresponding navigation route for the user based on the steering prompt and the steering relation of each road section.

Description

Method, apparatus, electronic device, and medium for providing navigation route for vehicle
Technical Field
The present application relates to data processing technologies, and in particular, to a method, an apparatus, an electronic device, and a medium for providing a navigation route for a vehicle.
Background
In the related art, a scene that navigation needs to be provided for a vehicle in real time often exists, wherein a service platform for providing navigation at present generates a corresponding navigation line for a vehicle of a user by adopting massive road test data.
However, in some areas, there may be a situation where the service platform cannot know detailed road data, which may also cause the navigation effect to be seriously affected.
Disclosure of Invention
The embodiment of the application provides a method, a device, electronic equipment and a medium for providing a navigation route for a vehicle. The method and the device are used for solving the problem that the generated navigation route is not accurate enough under the condition that detailed road data cannot be obtained in the related technology.
According to an aspect of the embodiments of the present application, there is provided a method for providing a navigation route for a vehicle, including:
if the navigation task is obtained, obtaining information of all road sections passing by the initial navigation route;
traversing a preset road section steering information set to obtain the steering relation between every two adjacent road section information in all the road section information, and generating a steering information set;
merging the steering relations meeting merging conditions in the steering information set to obtain a steering event set;
and generating a target navigation line containing all the road section information and corresponding steering prompts based on the steering event set.
Optionally, in another embodiment based on the foregoing method of the present application, before the obtaining the navigation task, the method further includes:
acquiring information of a road section to be detected in a target area, wherein the information of the road section to be detected comprises information of all road sections passing through the initial navigation path;
determining a passing rule of each piece of road section information to be detected, wherein the passing rule comprises one of one-way passing and two-way passing; and the number of the first and second groups,
determining a road coordinate point of each piece of road section information to be detected, wherein the road coordinate points comprise a road starting coordinate point and a road ending coordinate point;
determining a road direction angle corresponding to the road section to be detected according to the road coordinate point of each road section information to be detected, wherein the road direction angle is an included angle between the direction of the start coordinate point pointing to the end coordinate point and the due north direction;
and generating the preset road section steering information set based on the passing rule and the road direction angle of each piece of road section information to be detected.
Optionally, in another embodiment based on the above method of the present application, the generating the preset road segment turning information set based on the traffic rule and the road direction angle of each piece of road segment information to be detected includes:
calculating a road direction angle difference value between each first road section to be detected and a second road section to be detected, wherein the second road section to be detected is a road section adjacent to the first road section to be detected;
determining the steering relation between the first road section to be detected and the second road section to be detected according to the direction angle difference and the passing rule of each road section to be detected;
and obtaining the road section steering information set according to the steering relation between the adjacent road sections to be detected.
Optionally, in another embodiment based on the foregoing method of the present application, the determining a steering relationship between the first road section to be detected and the second road section to be detected according to the direction angle difference and the traffic rule of each road section to be detected includes:
acquiring the number of second road sections to be detected adjacent to each first road section to be detected and the road direction angle difference value of each first road section to be detected and the second road section to be detected;
selecting different comparison rules based on different numbers of second road sections to be detected adjacent to each road section to be detected;
and determining the steering relation between the first road section to be detected and the second road section to be detected based on the road direction angle difference between each first road section to be detected and the second road section to be detected according to the corresponding comparison rule.
Optionally, in another embodiment based on the foregoing method of the present application, the traversing a preset road segment steering information set to obtain a steering relationship between every two adjacent road segment information in all the road segment information, and generating a steering information set includes:
acquiring a road section identifier of each road section information in all road section information;
searching a steering direction between every two adjacent road section information and a steering coordinate point from the road section steering information set on the basis of the road section identification;
and obtaining the steering relation between every two adjacent road section information in all the road section information based on the steering direction and the steering coordinate point.
Optionally, in another embodiment of the method according to the present application, after obtaining the turning relationship between every two adjacent road segment information in all the road segment information based on the turning direction and the turning coordinate point, the method further includes:
detecting a coordinate distance difference value and a steering angle difference value between two adjacent steering coordinate points;
and determining whether the two adjacent steering information meet a merging condition or not based on whether the coordinate distance difference value is smaller than a first distance threshold value or not and whether the steering angle difference value is larger than a preset angle threshold value or not.
Optionally, in another embodiment based on the above method of the present application, the generating a target navigation route including all the road segment information and corresponding steering prompts based on the steering event set includes:
traversing the steering event set and determining a coordinate point corresponding to each steering event;
generating a corresponding steering prompt before a second distance threshold before the coordinate point corresponding to each steering event;
and generating a target navigation line containing all the road section information and corresponding steering prompts based on the steering event set and the steering prompts.
According to another aspect of the embodiments of the present application, there is provided an apparatus for providing a navigation route for a vehicle, including:
the acquisition module is configured to acquire all road section information passing through the initial navigation route if the navigation task is acquired;
the detection module is configured to traverse a preset road section steering information set to obtain a steering relationship between every two adjacent road section information in all the road section information, and generate a steering information set;
the merging module is configured to merge steering relations meeting merging conditions in the steering information set to obtain a steering event set;
and the generating module is configured to generate a target navigation line containing all the road section information and corresponding steering prompts based on the steering event set.
According to another aspect of the embodiments of the present application, there is provided an electronic device including:
a memory for storing executable instructions; and
a display for communicating with the memory to execute the executable instructions to perform any of the above-described operations of the method of providing a navigation route for a vehicle.
According to a further aspect of the embodiments of the present application, there is provided a computer-readable storage medium for storing computer-readable instructions, which when executed, perform the operations of any of the above methods for providing a navigation route for a vehicle.
According to the method and the device, all road section information passing through the initial navigation route can be acquired if the navigation task is acquired; traversing a preset road section steering information set to obtain the steering relation between every two adjacent road section information in all road section information, and generating a steering information set; merging the steering relations meeting the merging conditions in the steering information set to obtain a steering event set; and generating a target navigation line containing all road section information and corresponding steering prompts based on the steering event set. By applying the technical scheme of the application, the steering relation between each two adjacent road sections can be calculated in advance according to the initial road section data, and the steering prompt required by actual driving in navigation is obtained after merging processing is carried out on one or more steering relations meeting merging conditions. And finally, generating a corresponding navigation route for the user based on the steering prompt and the steering relation of each road section.
The technical solution of the present application is further described in detail by the accompanying drawings and examples.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
The present application may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
FIG. 1 is a schematic diagram of a method for providing a navigation route for a vehicle according to the present application;
FIG. 2 is a schematic diagram of calculating a road direction angle according to the present application;
3-6 are schematic flow charts illustrating a method for providing a navigation route for a vehicle according to the present application;
fig. 7 is a schematic structural diagram of an electronic device for providing a navigation path for a vehicle according to the present application;
fig. 8 is a schematic structural diagram of an electronic device for providing a navigation path for a vehicle according to the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
In addition, technical solutions between the various embodiments of the present application may be combined with each other, but it must be based on the realization of the technical solutions by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of technical solutions should be considered to be absent and not within the protection scope of the present application.
It should be noted that all the directional indicators (such as upper, lower, left, right, front and rear … …) in the embodiment of the present application are only used to explain the relative position relationship between the components, the motion situation, etc. in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly.
A method for performing providing a navigation route for a vehicle according to an exemplary embodiment of the present application is described below in conjunction with fig. 1-6. It should be noted that the following application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect. Rather, embodiments of the present application may be applied to any scenario where applicable.
The application also provides a method, a device, electronic equipment and a medium for providing the navigation route for the vehicle.
Fig. 1 schematically shows a flow chart of a method for providing a navigation route for a vehicle according to an embodiment of the present application. As shown in fig. 1, the method includes:
s101, if the navigation task is obtained, obtaining information of all road sections passing by the initial navigation route.
S102, traversing a preset road section steering information set to obtain the steering relation between every two adjacent road section information in all road section information, and generating a steering information set.
And S103, combining the steering relations meeting the combination conditions in the steering information set to obtain a steering event set.
And S104, generating a target navigation line containing all road section information and corresponding steering prompts based on the steering event set.
In one mode, the method needs to acquire all road section information to be detected in the target area in advance, so as to determine the steering relationship between every two adjacent pieces of road section information to be detected. It should be noted that the information of the road sections to be detected includes information of all road sections passing through the initial leading route.
Furthermore, according to the method and the device, a road coordinate point according to information of each road section to be detected is acquired, and a road direction angle corresponding to each road section to be detected is determined, wherein the road direction angle is an included angle between a direction of a starting coordinate point pointing to an ending coordinate point and a due north direction, so that a preset road section steering information set is generated based on a subsequent passing rule and the road direction angle of the information of each road section to be detected.
It should be noted that, as shown in fig. 2, the direction angle of each road segment to be detected is calculated as an included angle d between a direction of the road segment from the starting point a (starting node) to the end point B (ending node) and a due north direction.
For example, for the road segment a to be detected, the direction angle difference between each route (for example, the road segment b, the road segment c) to be detected and a, which is adjacent to the road end coordinate point of the road segment a, can be calculated according to the direction angle of the road segment a to be detected.
For example, if the road section information a to b to be detected are adjacent (i.e. the road end coordinate point of a is equal to the road start coordinate point of b), the steering relationship of a- > b is calculated. It should be noted that the present application may also obtain the passing rules of a and b (for example, one-way passing or two-way passing).
It can be understood that if one-way traffic, a- > b ≠ b- > a. And if the 2 pieces of road section information are not adjacent, their relationship is not calculated.
Specifically, the following conditions may be included for calculating the steering relationship from the road section information a to be detected to the road section information b to be detected:
in the first case:
as shown in fig. 3, if only the link b adjacent to the link a and 1 other branch road (both adjacent to the link a) are determined as follows:
step 1: calculating delta d1, namely the road direction angle difference between a and b; and calculating Δ d2, i.e., the difference in the direction angle of a from the other branch. Wherein Δ d1 ≠ Δ d 2.
Step 2: if the absolute values of Δ d1 and Δ d2 are both less than 30 degrees, if Δ d1> Δ d2, the steering relationship in which the vehicle is running to the left can be obtained. On the other hand, if Δ d1< Δ d2, the steering relationship in which the vehicle is traveling to the right can be obtained.
And step 3: if the absolute values of Δ d1 and Δ d2 are not both less than 30 degrees, if Δ d1> Δ d2, the steering relationship in which the vehicle is running with a left turn can be obtained. On the other hand, if Δ d1< Δ d2, the steering relationship for right-turn running of the vehicle can be obtained.
In the second case:
as shown in fig. 4, if there are a link b adjacent to the link a and other 2 branches (both adjacent to the link a), and all 2 branches can pass through, the determination rule is as follows:
step 1: calculating delta d1, namely the road direction angle difference between a and b; and calculating Δ d2, i.e., the difference in the direction angle of a from the other branch. Wherein Δ d1 ≠ Δ d 2.
Step 2: if the absolute values of Δ d1 and Δ d2 are both less than 30 degrees, if Δ d1> Δ d2, the steering relationship in which the vehicle is running to the left can be obtained. On the other hand, if Δ d1< Δ d2, the steering relationship in which the vehicle is traveling to the right can be obtained.
And step 3: if the absolute values of Δ d1 and Δ d2 are not both less than 30 degrees, if Δ d1>150 degrees, the steering relationship in which the vehicle is driven in a u-turn can be obtained.
Otherwise, if Δ d1> Δ d2, the steering relationship for left-turn running of the vehicle can be obtained. On the other hand, if Δ d1< Δ d2, the steering relationship for right-turn running of the vehicle can be obtained.
In the second case:
as shown in fig. 5, if there are a link b adjacent to the link a and other 3 or more branches (m branches are provided and are all adjacent to the link a) that can pass, the determination rule is as follows:
step 1: calculating delta d1, namely the road direction angle difference between a and b; and calculating Δ d2, i.e., the difference in the direction angle of a from the other branch; wherein Δ d1 ≠ Δ d 2.
Step 2: if the delta d1 is larger than 150 degrees, the steering relation of the vehicle in turning around can be obtained; otherwise, if Δ d1 is greater than 0, the steering relationship for driving along the nth left lane may be obtained, otherwise, the steering relationship for driving along the (m-n + 1) th right lane may be obtained.
In summary, after the steering relationship between each adjacent road segment to be detected is calculated, in one way, the plurality of steering relationships may be stored in a (key-value) map structure. For example, the key _ b and the value turn left indicate that the steering relationship is a left turn when the link information a is moved to the link information b. Thereby generating a set of turn information for use with subsequent key value reads.
Furthermore, when the navigation task is obtained, all road section information passing through the initial navigation route can be obtained, a preset road section steering information set is traversed to obtain the steering relation between every two adjacent road section information in all road section information, a steering information set is generated, so that the steering direction and the steering coordinate point between every two adjacent road section information in all road section information are searched from the road section steering information set based on road section identification in the follow-up process, and finally the steering relation between every two adjacent road section information in all road section information is obtained based on the steering direction and the steering coordinate point.
Specifically, according to all road section information and road section steering information sets passing through an initial leading route, an original steering information point (hereinafter, referred to as an original point, including position coordinates of the point, information of a turning-in road section, information of a turning-out road section and turning direction) sequence R is generated:
traversing an initial navigation route, taking continuous 2 adjacent road section information each time, setting the numbers of the nth and the (n + 1) th road section information as a1 and b1 respectively, and according to key: a1_ b1, a steering direction (value) between adjacent link information a1 and b1 and a corresponding steering coordinate point are acquired. For example, it may include [ a0_ a1, straight line ], [ a1_ b1, right turn ], [ b1_ b2, straight line ], [ b2_ b22, left turn ], [ b22_ b23, left turn ], [ b23_ c0, straight line ], and the like.
Furthermore, the method and the device can also detect a coordinate distance difference value and a steering angle difference value between two adjacent steering coordinate points, and determine whether the two adjacent steering information meet a merging condition based on whether the coordinate distance difference value is smaller than a first distance threshold value and whether the steering angle difference value is larger than a preset angle threshold value.
Specifically, for example, if the coordinate distance of 2 consecutive adjacent turning coordinate points r1 and r2 is x, x is greater than the threshold D, and the points are not merged. If x is smaller than the threshold D, merging according to the following rule:
d1 is the direction of the incoming link information of r1, and d2 is the direction of the outgoing link information of r 2. Steering is judged by the change of d1 to d 2. Wherein if Δ d is d 1-d 2, and if | Δ d | is greater than 150 degrees, r1 and r2 are combined as a u-turn event. If Δ d is not greater than 150 degrees, and if Δ d is greater than 0, merging into a right turn event; if Δ d is less than 0, merge into one left turn event.
Furthermore, the method and the device can also traverse the steering event set and determine the corresponding coordinate point of each steering event; and generating a corresponding steering prompt before a second distance threshold before a coordinate point corresponding to each steering event, and generating a target navigation line containing all road section information and the corresponding steering prompt based on the steering event set and the steering prompt.
Specifically, the steering event set can be traversed reversely according to the navigation route sequence, the event point is directly converted into the prompt point from the last event point (end point), and a forward prompt point n meters ahead is generated according to the route distance (the accumulated distance along the navigation route, the nonlinear distance) between 2 continuous event points, namely the vehicle is prompted to turn in advance before driving to a turn. As shown in fig. 6, the vehicle should turn left at point a and then turn right at point B. Wherein M1 and M2 are advance cue points of B.
The manner of calculating the coordinate position of M1 is as follows:
an initial sub-navigation route sS from the point A to the point B is obtained, wherein sS is a sub-route of the initial navigation route (road section information _4, road section information _ 5.,. road section information _ j).
Since the link information data contains the coordinate series of the road in the form of (113.5667622.13635; 113.5675322.13629; 113.567722.13628). The sS can be converted into a coordinate series corresponding to a series of link information, i.e., a coordinate point series P from point a to point B (P0(x0, y0), P1(x1, y1), P2(x2, y2), …, pn (xn, yn)).
pn (xn, yn), i.e. B point coordinates, sequentially accumulate the distances between every 2 points from pn to pn-1(xn-1, yn-1), and accumulate the length sumDis (pn to pn-1) + distance (pn-1 to pn-2) + …. If SumDis exceeds 20 meters when distance (pn-1 to pn-2) is accumulated, M1 is located between 2 points pn-1 and pn-2 of the round accumulation, and
percent ═ SumDis-20)/distance (pn-1 to pn-2)
ym1=yn-2+(yn-1-yn-2)*percent
xm1=xn-2+(xn-1-xn-2)*percent
When the vehicle runs to the point M1, the navigation prompts: turn right at 20 m ahead.
In the manner, according to the preset reminding distance parameter, a prompt can be generated for the front turning once every x distance.
According to the method and the device, all road section information passing through the initial navigation route can be acquired if the navigation task is acquired; traversing a preset road section steering information set to obtain the steering relation between every two adjacent road section information in all road section information, and generating a steering information set; merging the steering relations meeting the merging conditions in the steering information set to obtain a steering event set; and generating a target navigation line containing all road section information and corresponding steering prompts based on the steering event set. By applying the technical scheme of the application, the steering relation between each two adjacent road sections can be calculated in advance according to the initial road section data, and the steering prompt required by actual driving in navigation is obtained after merging processing is carried out on one or more steering relations meeting merging conditions. And finally, generating a corresponding navigation route for the user based on the steering prompt and the steering relation of each road section.
Optionally, in another embodiment based on the foregoing method of the present application, before the obtaining the navigation task, the method further includes:
acquiring information of a road section to be detected in a target area, wherein the information of the road section to be detected comprises information of all road sections passing through the initial navigation path;
determining a passing rule of each piece of road section information to be detected, wherein the passing rule comprises one of one-way passing and two-way passing; and the number of the first and second groups,
determining a road coordinate point of each piece of road section information to be detected, wherein the road coordinate points comprise a road starting coordinate point and a road ending coordinate point;
determining a road direction angle corresponding to the road section to be detected according to the road coordinate point of each road section information to be detected, wherein the road direction angle is an included angle between the direction of the start coordinate point pointing to the end coordinate point and the due north direction;
and generating the preset road section steering information set based on the passing rule and the road direction angle of each piece of road section information to be detected.
Optionally, in another embodiment based on the above method of the present application, the generating the preset road segment turning information set based on the traffic rule and the road direction angle of each piece of road segment information to be detected includes:
calculating a road direction angle difference value between each first road section to be detected and a second road section to be detected, wherein the second road section to be detected is a road section adjacent to the first road section to be detected;
determining the steering relation between the first road section to be detected and the second road section to be detected according to the direction angle difference and the passing rule of each road section to be detected;
and obtaining the road section steering information set according to the steering relation between the adjacent road sections to be detected.
Optionally, in another embodiment based on the foregoing method of the present application, the determining a steering relationship between the first road section to be detected and the second road section to be detected according to the direction angle difference and the traffic rule of each road section to be detected includes:
acquiring the number of second road sections to be detected adjacent to each first road section to be detected and the road direction angle difference value of each first road section to be detected and the second road section to be detected;
selecting different comparison rules based on different numbers of second road sections to be detected adjacent to each road section to be detected;
and determining the steering relation between the first road section to be detected and the second road section to be detected based on the road direction angle difference between each first road section to be detected and the second road section to be detected according to the corresponding comparison rule.
Optionally, in another embodiment based on the foregoing method of the present application, the traversing a preset road segment steering information set to obtain a steering relationship between every two adjacent road segment information in all the road segment information, and generating a steering information set includes:
acquiring a road section identifier of each road section information in all road section information;
searching a steering direction between every two adjacent road section information and a steering coordinate point from the road section steering information set on the basis of the road section identification;
and obtaining the steering relation between every two adjacent road section information in all the road section information based on the steering direction and the steering coordinate point.
Optionally, in another embodiment of the method according to the present application, after obtaining the turning relationship between every two adjacent road segment information in all the road segment information based on the turning direction and the turning coordinate point, the method further includes:
detecting a coordinate distance difference value and a steering angle difference value between two adjacent steering coordinate points;
and determining whether the two adjacent steering information meet a merging condition or not based on whether the coordinate distance difference value is smaller than a first distance threshold value or not and whether the steering angle difference value is larger than a preset angle threshold value or not.
Optionally, in another embodiment based on the above method of the present application, the generating a target navigation route including all the road segment information and corresponding steering prompts based on the steering event set includes:
traversing the steering event set and determining a coordinate point corresponding to each steering event;
generating a corresponding steering prompt before a second distance threshold before the coordinate point corresponding to each steering event;
and generating a target navigation line containing all the road section information and corresponding steering prompts based on the steering event set and the steering prompts.
Further, a method for providing a navigation route for a vehicle proposed by the present application is exemplified herein:
step 1: acquiring an initial navigation route, and reading a road section steering information set S;
step 2: and traversing S, traversing a preset road section steering information set to obtain a steering relation R between every two adjacent road section information in all road section information, such as: [ a0_ a1, straight line ], [ a1_ b1, right turn ], [ b1_ b2, straight line ], [ b2_ b22, left turn ], [ b22_ b23, left turn ], [ b23_ c0, straight line ].
And step 3: traversing R, merging the steering relations meeting merging conditions in the steering information set to obtain a steering event set M
And 4, step 4: according to M, a steering prompt is generated, with position prompts, such as 100 meters, 50 meters, 25 meters, current point. (advance cues are generated intelligently based on the distance by route between consecutive 2 turn events).
By applying the technical scheme of the application, the steering relation between each two adjacent road sections can be calculated in advance according to the initial road section data, and the steering prompt required by actual driving in navigation is obtained after merging processing is carried out on one or more steering relations meeting merging conditions. And finally, generating a corresponding navigation route for the user based on the steering prompt and the steering relation of each road section.
Optionally, in another embodiment of the present application, as shown in fig. 7, the present application further provides an apparatus for providing a navigation route for a vehicle. Which comprises the following steps:
the obtaining module 201 is configured to obtain information of all road sections passing through an initial navigation route if a navigation task is obtained;
the detection module 202 is configured to traverse a preset road segment steering information set, obtain a steering relationship between every two adjacent road segment information in all the road segment information, and generate a steering information set;
a merging module 203, configured to merge steering relations meeting merging conditions in the steering information set to obtain a steering event set;
a generating module 204 configured to generate a target navigation route including the all-segment information and the corresponding steering prompt based on the set of steering events.
According to the method and the device, all road section information passing through the initial navigation route can be acquired if the navigation task is acquired; traversing a preset road section steering information set to obtain the steering relation between every two adjacent road section information in all road section information, and generating a steering information set; merging the steering relations meeting the merging conditions in the steering information set to obtain a steering event set; and generating a target navigation line containing all road section information and corresponding steering prompts based on the steering event set. By applying the technical scheme of the application, the steering relation between each two adjacent road sections can be calculated in advance according to the initial road section data, and the steering prompt required by actual driving in navigation is obtained after merging processing is carried out on one or more steering relations meeting merging conditions. And finally, generating a corresponding navigation route for the user based on the steering prompt and the steering relation of each road section.
In another embodiment of the present application, the obtaining module 201 is configured to perform the steps including:
acquiring information of a road section to be detected in a target area, wherein the information of the road section to be detected comprises information of all road sections passing through the initial navigation path;
determining a passing rule of each piece of road section information to be detected, wherein the passing rule comprises one of one-way passing and two-way passing; and the number of the first and second groups,
determining a road coordinate point of each piece of road section information to be detected, wherein the road coordinate points comprise a road starting coordinate point and a road ending coordinate point;
determining a road direction angle corresponding to the road section to be detected according to the road coordinate point of each road section information to be detected, wherein the road direction angle is an included angle between the direction of the start coordinate point pointing to the end coordinate point and the due north direction;
and generating the preset road section steering information set based on the passing rule and the road direction angle of each piece of road section information to be detected.
In another embodiment of the present application, the obtaining module 201 is configured to perform the steps including:
calculating a road direction angle difference value between each first road section to be detected and a second road section to be detected, wherein the second road section to be detected is a road section adjacent to the first road section to be detected;
determining the steering relation between the first road section to be detected and the second road section to be detected according to the direction angle difference and the passing rule of each road section to be detected;
and obtaining the road section steering information set according to the steering relation between the adjacent road sections to be detected.
In another embodiment of the present application, the obtaining module 201 is configured to perform the steps including:
acquiring the number of second road sections to be detected adjacent to each first road section to be detected and the road direction angle difference value of each first road section to be detected and the second road section to be detected;
selecting different comparison rules based on different numbers of second road sections to be detected adjacent to each road section to be detected;
and determining the steering relation between the first road section to be detected and the second road section to be detected based on the road direction angle difference between each first road section to be detected and the second road section to be detected according to the corresponding comparison rule.
In another embodiment of the present application, the obtaining module 201 is configured to perform the steps including:
acquiring a road section identifier of each road section information in all road section information;
searching a steering direction between every two adjacent road section information and a steering coordinate point from the road section steering information set on the basis of the road section identification;
and obtaining the steering relation between every two adjacent road section information in all the road section information based on the steering direction and the steering coordinate point.
In another embodiment of the present application, the obtaining module 201 is configured to perform the steps including:
detecting a coordinate distance difference value and a steering angle difference value between two adjacent steering coordinate points;
and determining whether the two adjacent steering information meet a merging condition or not based on whether the coordinate distance difference value is smaller than a first distance threshold value or not and whether the steering angle difference value is larger than a preset angle threshold value or not.
In another embodiment of the present application, the obtaining module 201 is configured to perform the steps including:
traversing the steering event set and determining a coordinate point corresponding to each steering event;
generating a corresponding steering prompt before a second distance threshold before the coordinate point corresponding to each steering event;
and generating a target navigation line containing all the road section information and corresponding steering prompts based on the steering event set and the steering prompts.
FIG. 8 is a block diagram illustrating a logical structure of an electronic device in accordance with an exemplary embodiment. For example, the electronic device 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium, such as a memory, including instructions executable by an electronic device processor to perform the method of providing a navigation route for a vehicle, comprising: if the navigation task is obtained, obtaining information of all road sections passing by the initial navigation route; traversing a preset road section steering information set to obtain the steering relation between every two adjacent road section information in all the road section information, and generating a steering information set; merging the steering relations meeting merging conditions in the steering information set to obtain a steering event set; and generating a target navigation line containing all the road section information and corresponding steering prompts based on the steering event set. Optionally, the instructions may also be executable by a processor of the electronic device to perform other steps involved in the exemplary embodiments described above. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided an application/computer program product including one or more instructions executable by a processor of an electronic device to perform the above method of providing a navigation route for a vehicle, the method comprising: if the navigation task is obtained, obtaining information of all road sections passing by the initial navigation route; traversing a preset road section steering information set to obtain the steering relation between every two adjacent road section information in all the road section information, and generating a steering information set; merging the steering relations meeting merging conditions in the steering information set to obtain a steering event set; optionally, the instructions may also be executed by a processor of the electronic device to perform other steps involved in the above exemplary embodiment.
Fig. 8 is an exemplary diagram of the computer device 30. Those skilled in the art will appreciate that the schematic diagram 8 is merely an example of a computer device 30 and is not intended to limit the computer device 30 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the computer device 30 may also include input output devices, network access devices, buses, etc.
The Processor 302 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor 302 may be any conventional processor or the like, the processor 302 being the control center for the computer device 30 and connecting the various parts of the overall computer device 30 using various interfaces and lines.
Memory 301 may be used to store computer readable instructions 303 and processor 302 may implement various functions of computer device 30 by executing or executing computer readable instructions or modules stored within memory 301 and by invoking data stored within memory 301. The memory 301 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the computer device 30, and the like. In addition, the Memory 301 may include a hard disk, a Memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Memory Card (Flash Card), at least one disk storage device, a Flash Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), or other non-volatile/volatile storage devices.
The modules integrated by the computer device 30 may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by hardware related to computer readable instructions, which may be stored in a computer readable storage medium, and when the computer readable instructions are executed by a processor, the steps of the method embodiments may be implemented.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method of providing a navigation route for a vehicle, comprising:
if the navigation task is obtained, obtaining information of all road sections passing by the initial navigation route;
traversing a preset road section steering information set to obtain the steering relation between every two adjacent road section information in all the road section information, and generating a steering information set;
merging the steering relations meeting merging conditions in the steering information set to obtain a steering event set;
and generating a target navigation line containing all the road section information and corresponding steering prompts based on the steering event set.
2. The method of claim 1, prior to said obtaining a navigation task, further comprising:
acquiring information of a road section to be detected in a target area, wherein the information of the road section to be detected comprises information of all road sections passing through the initial navigation path;
determining a passing rule of each piece of road section information to be detected, wherein the passing rule comprises one of one-way passing and two-way passing; and the number of the first and second groups,
determining a road coordinate point of each piece of road section information to be detected, wherein the road coordinate points comprise a road starting coordinate point and a road ending coordinate point;
determining a road direction angle corresponding to the road section to be detected according to the road coordinate point of each road section information to be detected, wherein the road direction angle is an included angle between the direction of the start coordinate point pointing to the end coordinate point and the due north direction;
and generating the preset road section steering information set based on the passing rule and the road direction angle of each piece of road section information to be detected.
3. The method according to claim 2, wherein the generating the preset road segment turning information set based on the traffic rule and the road direction angle of each piece of road segment information to be detected comprises:
calculating a road direction angle difference value between each first road section to be detected and a second road section to be detected, wherein the second road section to be detected is a road section adjacent to the first road section to be detected;
determining the steering relation between the first road section to be detected and the second road section to be detected according to the direction angle difference and the passing rule of each road section to be detected;
and obtaining the road section steering information set according to the steering relation between the adjacent road sections to be detected.
4. The method according to claim 3, wherein the determining the turning relationship between the first road section to be detected and the second road section to be detected according to the direction angle difference and the passing rule of each road section to be detected comprises:
acquiring the number of second road sections to be detected adjacent to each first road section to be detected and the road direction angle difference value of each first road section to be detected and the second road section to be detected;
selecting different comparison rules based on different numbers of second road sections to be detected adjacent to each road section to be detected;
and determining the steering relation between the first road section to be detected and the second road section to be detected based on the road direction angle difference between each first road section to be detected and the second road section to be detected according to the corresponding comparison rule.
5. The method of claim 1, wherein traversing a preset link steering information set to obtain a steering relationship between every two adjacent link information in all the link information, and generating a steering information set comprises:
acquiring a road section identifier of each road section information in all road section information;
searching a steering direction between every two adjacent road section information and a steering coordinate point from the road section steering information set on the basis of the road section identification;
and obtaining the steering relation between every two adjacent road section information in all the road section information based on the steering direction and the steering coordinate point.
6. The method according to claim 5, further comprising, after the obtaining of the turn relation between each adjacent two pieces of the all-pieces of the link information based on the turn direction and the turn coordinate point:
detecting a coordinate distance difference value and a steering angle difference value between two adjacent steering coordinate points;
and determining whether the two adjacent steering information meet a merging condition or not based on whether the coordinate distance difference value is smaller than a first distance threshold value or not and whether the steering angle difference value is larger than a preset angle threshold value or not.
7. The method of claim 1, wherein generating a target navigation route including the all-segment information and corresponding steering tips based on the set of steering events comprises:
traversing the steering event set and determining a coordinate point corresponding to each steering event;
generating a corresponding steering prompt before a second distance threshold before the coordinate point corresponding to each steering event;
and generating a target navigation line containing all the road section information and corresponding steering prompts based on the steering event set and the steering prompts.
8. An apparatus for providing a navigation route for a vehicle, comprising:
the acquisition module is configured to acquire all road section information passing through the initial navigation route if the navigation task is acquired;
the detection module is configured to traverse a preset road section steering information set to obtain a steering relationship between every two adjacent road section information in all the road section information, and generate a steering information set;
the merging module is configured to merge steering relations meeting merging conditions in the steering information set to obtain a steering event set;
and the generating module is configured to generate a target navigation line containing all the road section information and corresponding steering prompts based on the steering event set.
9. An electronic device, comprising:
a memory for storing executable instructions; and the number of the first and second groups,
a processor for executing with the memory the executable instructions to perform the operations of the method of providing a navigation route for a vehicle of any of claims 1-7.
10. A computer-readable storage medium storing computer-readable instructions that, when executed, perform the operations of the method for providing a navigation route for a vehicle of any of claims 1-7.
CN202111511939.0A 2021-12-06 2021-12-06 Method, apparatus, electronic device, and medium for providing navigation route for vehicle Pending CN114184208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111511939.0A CN114184208A (en) 2021-12-06 2021-12-06 Method, apparatus, electronic device, and medium for providing navigation route for vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111511939.0A CN114184208A (en) 2021-12-06 2021-12-06 Method, apparatus, electronic device, and medium for providing navigation route for vehicle

Publications (1)

Publication Number Publication Date
CN114184208A true CN114184208A (en) 2022-03-15

Family

ID=80543263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111511939.0A Pending CN114184208A (en) 2021-12-06 2021-12-06 Method, apparatus, electronic device, and medium for providing navigation route for vehicle

Country Status (1)

Country Link
CN (1) CN114184208A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050251324A1 (en) * 2003-07-17 2005-11-10 Harman Becker Automotive Systems Gmbh Route calculation around traffic obstacles using marked diversions
CN1821719A (en) * 2005-02-16 2006-08-23 Lg电子株式会社 Guiding a drive path of a moving object in a navigation system
CN101290230A (en) * 2008-04-14 2008-10-22 凯立德欣技术(深圳)有限公司 Road crossing navigation method and navigation system using the navigation method
CN101975577A (en) * 2010-09-20 2011-02-16 北京腾瑞万里科技有限公司 Guided system and turn early alarming processing method and equipment therein
CN102636179A (en) * 2012-05-11 2012-08-15 北京赛德斯汽车信息技术有限公司 Vehicle navigation method
CN106323306A (en) * 2015-07-02 2017-01-11 腾讯科技(深圳)有限公司 Navigation information processing method and electronic equipment
CN109141464A (en) * 2018-09-30 2019-01-04 百度在线网络技术(北京)有限公司 Navigate lane change reminding method and device
CN109612482A (en) * 2018-11-27 2019-04-12 文胤杰 Automobile navigation method and Related product
CN109903576A (en) * 2019-04-22 2019-06-18 爱驰汽车有限公司 Vehicle lane change based reminding method, system, equipment and storage medium based on navigation
CN112325889A (en) * 2021-01-04 2021-02-05 腾讯科技(深圳)有限公司 Navigation prompt information determination method and device, storage medium and electronic equipment
CN112815954A (en) * 2021-01-19 2021-05-18 北京中交兴路信息科技有限公司 Method, device, electronic equipment and medium for determining vehicle navigation route
JP2021131895A (en) * 2020-05-28 2021-09-09 ベイジン バイドゥ ネットコム サイエンス アンド テクノロジー カンパニー リミテッド Actual view navigation icon display method, device, equipment, and medium
CN113607182A (en) * 2021-08-05 2021-11-05 北京中交兴路信息科技有限公司 Vehicle driving route navigation method and device, storage medium and terminal

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050251324A1 (en) * 2003-07-17 2005-11-10 Harman Becker Automotive Systems Gmbh Route calculation around traffic obstacles using marked diversions
CN1821719A (en) * 2005-02-16 2006-08-23 Lg电子株式会社 Guiding a drive path of a moving object in a navigation system
CN101290230A (en) * 2008-04-14 2008-10-22 凯立德欣技术(深圳)有限公司 Road crossing navigation method and navigation system using the navigation method
CN101975577A (en) * 2010-09-20 2011-02-16 北京腾瑞万里科技有限公司 Guided system and turn early alarming processing method and equipment therein
CN102636179A (en) * 2012-05-11 2012-08-15 北京赛德斯汽车信息技术有限公司 Vehicle navigation method
CN106323306A (en) * 2015-07-02 2017-01-11 腾讯科技(深圳)有限公司 Navigation information processing method and electronic equipment
CN109141464A (en) * 2018-09-30 2019-01-04 百度在线网络技术(北京)有限公司 Navigate lane change reminding method and device
CN109612482A (en) * 2018-11-27 2019-04-12 文胤杰 Automobile navigation method and Related product
CN109903576A (en) * 2019-04-22 2019-06-18 爱驰汽车有限公司 Vehicle lane change based reminding method, system, equipment and storage medium based on navigation
JP2021131895A (en) * 2020-05-28 2021-09-09 ベイジン バイドゥ ネットコム サイエンス アンド テクノロジー カンパニー リミテッド Actual view navigation icon display method, device, equipment, and medium
CN112325889A (en) * 2021-01-04 2021-02-05 腾讯科技(深圳)有限公司 Navigation prompt information determination method and device, storage medium and electronic equipment
CN112815954A (en) * 2021-01-19 2021-05-18 北京中交兴路信息科技有限公司 Method, device, electronic equipment and medium for determining vehicle navigation route
CN113607182A (en) * 2021-08-05 2021-11-05 北京中交兴路信息科技有限公司 Vehicle driving route navigation method and device, storage medium and terminal

Similar Documents

Publication Publication Date Title
CN109813328B (en) Driving path planning method and device and vehicle
CN112815954B (en) Method, device, electronic equipment and medium for determining vehicle navigation route
US7565241B2 (en) Automobile navigation system and road map update system
CN111158365A (en) Path planning method and device, robot and storage medium
CN102649408A (en) Lane departure warning apparatus and system
US20160039413A1 (en) Method for Determining a Lane Course of a Lane
EP2482036B1 (en) Course guidance system, course guidance method, and course guidance program
US11473926B2 (en) Method and apparatus for displaying road names, and storage medium
CN113741472B (en) Obstacle avoidance method and device based on multi-image acquisition
CN111123934A (en) Trajectory evaluation method, trajectory evaluation device, and mobile robot
CN106441323A (en) Route navigation prompting method and device
CN114184208A (en) Method, apparatus, electronic device, and medium for providing navigation route for vehicle
JP6875057B2 (en) Electronic device, driving lane detection program and driving lane detection method
CN117022249A (en) Parallel parking space automatic parking track planning method, system, medium and equipment
US10371535B1 (en) Automatic map generation
JP2000193470A (en) Route searching device and method and medium storing program for route searching
JP4116681B2 (en) Optimal route search method
JP3333223B2 (en) Roadway recognition device for mobile vehicles
CN114444170A (en) Garage path data determination method and device, electronic equipment and storage medium
JP2022121839A (en) Route guidance program and route guide device
CN114664085A (en) Dangerous road section reminding method and device, electronic equipment and medium
JP6177531B2 (en) In-vehicle device, route interpolation method thereof, and route interpolation program
CN115937007B (en) Wind shear identification method and device, electronic equipment and medium
CN113032500B (en) Vehicle positioning method, device, computer equipment and storage medium
CN111326006B (en) Reminding method, reminding system, storage medium and vehicle-mounted terminal for lane navigation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination