Prompt information acquisition method and electronic equipment

By automatically obtaining lane-level prompts through lane codes, the problem of low generation efficiency and high maintenance costs in existing technologies is solved, achieving efficient and accurate lane-level navigation prompts.

CN121916944APending Publication Date: 2026-04-24BEIJING AUTONAVI YUNMAP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411441441.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-15
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

In existing technologies, lane-level navigation prompts are generated inefficiently, are costly to maintain, and are prone to errors, mainly because developers need to manually configure and maintain a large number of configuration files.

Method used

By obtaining the lane code corresponding to the target road and navigation actions, lane-level prompts are automatically obtained based on the lane code. The lane code is used to represent the traffic status of the lane, reducing manual configuration and maintenance.

Benefits of technology

It improves the efficiency and accuracy of lane-level warning information generation, reduces maintenance costs, and ensures the accuracy and coverage of warning information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121916944A_ABST
    Figure CN121916944A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of navigation, in particular to a prompt information acquisition method and electronic equipment, and the method comprises the following steps: acquiring a lane code, corresponding to a navigation action, of a target road; and according to the lane code, obtaining prompt information of a lane level, corresponding to the navigation action, of the target road. According to the scheme, the lane-level prompt information, corresponding to the navigation action, of the target road can be obtained without manual configuration and maintenance of developers, the generation efficiency of the lane-level prompt information is improved, and the cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of navigation technology, specifically to a method for obtaining prompt information and an electronic device. Background Technology

[0002] When traveling, especially by car, people increasingly rely on navigation apps to plan routes and follow them to their destinations. With technological advancements, navigation has evolved from road-level to lane-level navigation. Current lane-level navigation provides lane-specific prompts via voice guidance to help users choose the correct lane.

[0003] In related technologies, developers use configuration files (such as XML) to configure lane-level prompts for different lane-level navigation scenarios. As a result, developers need to manually configure and maintain a large amount of prompt information, which leads to problems such as low generation efficiency, high maintenance cost, and susceptibility to errors in lane-level prompts. Summary of the Invention

[0004] To address the problems in the related technologies, this disclosure provides a method for obtaining prompt information and an electronic device.

[0005] In a first aspect, this disclosure provides a method for obtaining prompt information, including: Obtain the lane code corresponding to the target road and navigation actions; Based on the lane code, obtain lane-level prompts for the target road and the corresponding navigation actions.

[0006] In one implementation of this disclosure, a coded bit of the lane code represents the traffic status of a lane of the target road corresponding to the navigation action. The traffic status includes at least "passable" and "impassable". Based on the lane code, lane-level prompt information corresponding to the target road and the navigation action is obtained, including: Traverse the lane codes to obtain the passable lane data corresponding to the target road and navigation actions; Based on the passable lane data, obtain lane-level prompts for the target road and the corresponding navigation actions.

[0007] In one implementation of this disclosure, the lane codes are traversed to obtain the passable lane data corresponding to the target road and the navigation action, including: Starting from the first digit of the lane code, traverse the lane codes to obtain the number of passable lanes corresponding to the target road and the navigation action, and the passable lane data from left to right. Starting from the last digit of the lane code, traverse the lane codes to obtain the rightmost passable lane data corresponding to the target road and navigation actions; Based on the passable lane data, obtain lane-level prompts for the target road and the corresponding navigation actions, specifically including: Based on at least one of the following: the number of passable lanes corresponding to the target lane and the navigation action, the data of passable lanes from the left and the data of passable lanes from the right, obtain lane-level prompt information corresponding to the target road and the navigation action.

[0008] In one implementation of this disclosure, lane-level prompt information corresponding to the target road and the navigation action is obtained based on at least one of the number of passable lanes corresponding to the target lane and the navigation action, the data of passable lanes from the left, and the data of passable lanes from the right. Specifically, this includes: The number of passable lanes corresponding to the target lane and the navigation action is compared with the total number of coding bits of the lane code. If they are equal, the condition that all lanes are passable is met, and a prompt message indicating that all lanes are passable is generated. If they are not equal, then based on at least one of the following: left-hand passable lane data, right-hand passable lane data, and number of passable lanes corresponding to the target lane and navigation action, lane-level prompt information corresponding to the target road and navigation action is generated.

[0009] In one implementation of this disclosure, the left-hand passable lane data includes the last passable lane code from the left, and the right-hand passable lane data includes the last passable lane code from the right. Based on at least one of the left-hand passable lane data, the right-hand passable lane data, and the number of passable lanes corresponding to the target lane and the navigation action, lane-level prompt information corresponding to the target road and the navigation action is generated, specifically including: If the last passable lane code from the left is the same as the number of passable lanes, then the condition of continuous passability of the left lanes is met, and a lane-level prompt message is generated indicating to go left and corresponding to the number of passable lanes. If the last passable lane code from the right is the same as the number of passable lanes, then the condition of continuous passability of the right lanes is met, and a lane-level prompt message is generated indicating to go to the right and the number of passable lanes corresponding to the lane.

[0010] In one implementation of this disclosure, the left-hand passable lane data includes: the first left-hand passable lane code and the last left-hand passable lane code; the right-hand passable lane data includes: the first right-hand passable lane code and the last right-hand passable lane code. Based on at least one of the left-hand passable lane data, the right-hand passable lane data, and the number of passable lanes corresponding to the target lane and the navigation action, lane-level prompt information corresponding to the target road and the navigation action is generated, specifically including: If the first passable lane code from the left is different from the first lane code from the left of the lane code, and the first passable lane code from the right is different from the first lane code from the right of the lane code, then when it is determined that the condition of continuous passage in the middle lane is met, a lane-level prompt message is generated indicating to take the middle lane and the number of passable lanes corresponds to the lane. Determining whether the conditions for continuous traffic in the middle lane are met includes: Determine the first sum value obtained by subtracting the code of the first passable lane from the last passable lane from the left and adding 1 to it; The first difference is obtained by subtracting the last passable lane code from the total number of code bits for the lane code; Determine the second difference obtained by subtracting 1 from the code of the first passable lane from the left; Determine the third difference obtained by subtracting the second difference from the first difference; If the first sum is equal to the number of passable lanes, the third difference is less than or equal to 1, and the total number of code bits of the lane code is greater than the preset number of lanes, then the condition that the middle lanes are continuously passable is met. or Determine the second sum by subtracting the code of the first passable lane from the last passable lane from the right, and adding 1 to the difference. The fourth difference is obtained by subtracting the last passable lane code from the total number of code bits for the lane code; Determine the fifth difference obtained by subtracting 1 from the code of the first passable lane from the right; Determine the sixth difference obtained by subtracting the fifth difference from the fourth difference; If the second sum equals the number of passable lanes, the sixth difference is less than or equal to 1, and the total number of coded bits of the lane code is greater than the preset number of lanes, then the condition that the middle lanes are continuously passable is met.

[0011] In one implementation of this disclosure, if the conditions for all lanes to be passable, the conditions for continuous passage of the middle lane, the conditions for continuous passage of the left lane, and the conditions for continuous passage of the right lane are not met, the method further includes: Determine the type of navigation action and the passable lane code bit in the lane code; If the navigation action is a left-hand action, then a lane-level prompt message is generated indicating the lane corresponding to the left-hand passable lane code. If the navigation action is a right-hand action, then a lane-level prompt message is generated indicating the lane corresponding to the right-hand passable lane code. If the navigation action is no action or straight action, the cost of the left-hand passable lane and the cost of the right-hand passable lane of the target road are obtained based on the lane code. If the cost of the passable lane from the left is less than the cost of the passable lane from the right, then a lane-level prompt message is generated indicating to take the lane corresponding to the left-hand passable lane code. If the cost of the right-hand passable lane is less than or equal to the cost of the left-hand lane, then a lane-level prompt message is generated indicating the lane corresponding to the right-hand passable lane code.

[0012] In one implementation of this disclosure, the lane's traffic status includes tidal flow lanes or reversible lanes. Based on the passable lane data, lane-level prompt information corresponding to the target road and navigation actions is obtained, specifically including: If the passable lane data only includes passable lane data for reversible lanes or tidal flow lanes, then generate lane-level prompts indicating reversible lanes and corresponding navigation actions; or generate lane-level prompts indicating tidal flow lanes.

[0013] In one implementation of this disclosure, the method further includes: Based on lane coding and navigation actions, it is determined whether the warning prompt conditions are met. If they are met, a warning prompt message is generated.

[0014] Secondly, this disclosure provides a device for obtaining prompt information, including: The code acquisition module is configured to acquire the lane codes corresponding to the target road and navigation actions; The prompt information acquisition module is configured to acquire lane-level prompt information corresponding to the target road and navigation actions based on the lane code.

[0015] Thirdly, embodiments of this disclosure provide an electronic device including a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method as described in the first aspect.

[0016] Fourthly, this disclosure provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the method described in the first aspect.

[0017] The technical solution provided in this disclosure obtains the lane code corresponding to the target road and the navigation action; based on the lane code, it obtains lane-level prompt information corresponding to the target road and the navigation action. Since the lane code in this disclosure represents the passability status of the target road lane corresponding to the navigation action, this disclosure can obtain lane-level prompt information corresponding to the target road and the navigation action through the lane code corresponding to the target road and the navigation action. This solves the problems of low generation efficiency, high maintenance cost, and easy error caused by the existing technology of configuring lane-level prompt information using configuration files, which requires developers to manually configure and maintain a large amount of prompt information. This improves the generation efficiency and accuracy of lane-level prompt information and reduces costs.

[0018] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0019] Other features, objects, and advantages of this disclosure will become more apparent from the following detailed description of non-limiting embodiments, taken in conjunction with the accompanying drawings. In the drawings:

[0020] Figure 1 A flowchart illustrating a method for obtaining prompt information according to an embodiment of this disclosure is shown.

[0021] Figure 2 A structural block diagram of a prompt information acquisition device according to an embodiment of the present disclosure is shown.

[0022] Figure 3 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0023] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing the method according to embodiments of the present disclosure is shown. Detailed Implementation

[0024] In the following, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings to enable those skilled in the art to readily implement them. Furthermore, for clarity, portions unrelated to the description of exemplary embodiments have been omitted from the drawings.

[0025] In this disclosure, it should be understood that terms such as “comprising” or “having” are intended to indicate the presence of features, figures, steps, behaviors, components, parts or combinations thereof disclosed in this specification, and are not intended to exclude the possibility of the presence or addition of one or more other features, figures, steps, behaviors, components, parts or combinations thereof.

[0026] It should also be noted that, unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other. This disclosure will now be described in detail with reference to the accompanying drawings and embodiments.

[0027] In this disclosure, any operation involving the acquisition of user information or user data, or the display of user information or user data to others, is an operation authorized or confirmed by the user, or actively selected by the user.

[0028] In related technologies, developers use configuration files (such as XML) to configure lane-level prompts for different lane-level navigation scenarios. When there are many lane-level navigation scenarios, the number of lane-level prompts that need to be maintained in the configuration file usually exceeds several thousand. Furthermore, the lane-level prompts in the configuration file need to be manually configured and maintained by developers according to the iterative needs of the scenario. This results in the existing lane-level prompts having problems such as low generation efficiency, high maintenance costs, and susceptibility to errors.

[0029] To address the aforementioned technical problems, the technical solution provided in this disclosure involves obtaining the lane code corresponding to the target road and the navigation action; and then obtaining lane-level prompt information corresponding to the target road and the navigation action based on the lane code. Since the lane code in this disclosure represents the passability status of the target road's lane corresponding to the navigation action, this disclosure can obtain lane-level prompt information corresponding to the target road and the navigation action simply by using the lane code. This solves the problems of low generation efficiency, high maintenance costs, and susceptibility to errors associated with the prior art's method of configuring lane-level prompt information using configuration files, which requires developers to manually configure and maintain a large amount of prompt information. This improves the generation efficiency and accuracy of lane-level prompt information and reduces costs.

[0030] Figure 1 A flowchart illustrating a method for obtaining prompt information according to an embodiment of this disclosure is shown. Figure 1 As shown, the method for obtaining the prompt information includes the following steps S101-S102:

[0031] In step S101, the lane code corresponding to the target road and the navigation action is obtained; In step S102, lane-level prompt information corresponding to the target road and navigation action is obtained based on the lane code.

[0032] In one embodiment of this disclosure, the lane code corresponding to the target road and the navigation action can be understood as representing the passability status of the lanes on the target road corresponding to the navigation action. Specifically, the value of each bit of the lane code can be a number or a letter.

[0033] For example, the value of the lane code can generally be 0 or 1. 0 indicates that the lane corresponding to the code does not support passage according to the above navigation action, and 1 indicates that the lane corresponding to the code supports passage according to the above navigation action. For example, if the navigation action is to go straight, then the lane corresponding to the code with a value of 0 does not support going straight, and the lane corresponding to the code with a value of 1 supports going straight, and vice versa. When the target road also includes reversible lanes or tidal lanes, the value of the lane code can be further expressed as a letter, such as z indicating that the lane corresponding to the code is a reversible lane, and c indicating that the lane corresponding to the code is a tidal lane. Since the direction of travel supported by reversible lanes or tidal lanes changes over time, to reduce the complexity of real-time generation of lane-level prompts, the value of the code corresponding to tidal lanes or reversible lanes can be defaulted to 0. That is, regardless of the navigation action, tidal lanes or reversible lanes are defaulted to being impassable. For example, if the lane code is 01100 and the navigation action is a left turn, then in countries where the driver's seat is on the left side of the vehicle, this lane code indicates that the second and third lanes from left to right on the target road support left turns; in countries where the driver's seat is on the right side of the vehicle, this lane code indicates that the third and fourth lanes from right to left on the target road support left turns. The following examples use countries where the driver's seat is on the left side of the vehicle as examples. The execution method in countries where the driver's seat is on the right side of the vehicle, which is directly inferred from this disclosure, also falls within the scope of this disclosure.

[0034] In one embodiment of this disclosure, the lane code of the target road can be pre-generated based on the travel directions supported by the lanes of the target road. These travel directions generally include: straight, left turn, right turn, and U-turn. Since navigation actions and lane travel directions correspond, and map data typically contains information on the travel directions supported by each lane of the target road, specifically, the lane code can be pre-generated based on the lane travel directions recorded in the map data. For example, if the target road has four lanes, and the supported travel directions from left to right are: left turn, straight, straight, straight, and right turn, then when the navigation action is straight, the generated lane code is 0111. Therefore, since navigation actions and lane travel directions correspond, this disclosure can pre-generate lane codes corresponding to navigation actions based on the lane travel directions recorded in the map data, thus eliminating the need for manual maintenance of configuration tables and improving the efficiency of generating lane-level prompt information.

[0035] In one embodiment of this disclosure, lane-level prompts can be understood as information used to prompt or guide the driver to drive the vehicle in a lane on the target road that supports the corresponding navigation action, thus avoiding deviation or violations due to driving in the wrong lane. While the driver is driving, the lane-level prompts can be broadcast via voice to remind the driver.

[0036] In one embodiment of this disclosure, the lane-level prompt information corresponding to the target road and the navigation action is obtained according to the lane code. This can be understood as determining the passable lane in the target road that supports the navigation action according to the lane code, and generating prompt information to indicate the navigation action and the passable lane.

[0037] Example 1: If the lane code is 1010 and the navigation action is a left turn, the lane-level prompt message can be "Turn left ahead, please use the first or third lane on the left".

[0038] Example 2: If the lane code is 0100 and the navigation action is to go straight, the lane-level prompt message can be "Keep going straight, please take the second lane from the left".

[0039] According to the technical solution provided in this disclosure, the lane code corresponding to the target road and the navigation action is obtained; based on the lane code, lane-level prompt information corresponding to the target road and the navigation action is obtained. Since the lane code in this disclosure represents the passability status of the target road lane corresponding to the navigation action, this disclosure can obtain lane-level prompt information corresponding to the target road and the navigation action through the lane code. This solves the problems of low generation efficiency, high maintenance cost, and susceptibility to errors caused by the prior art's use of configuration files to configure lane-level prompt information, which requires developers to manually configure and maintain a large amount of prompt information. This improves the generation efficiency and accuracy of lane-level prompt information and reduces costs.

[0040] Based on the above examples and explanations, it can be seen that one coded bit of the lane code in this disclosure represents the traffic status of a lane of the target road corresponding to the navigation action. The traffic status includes at least two conditions: passable and impassable. Therefore, this disclosure provides a method for obtaining lane-level prompt information corresponding to the target road and the navigation action based on the lane code. Specific implementation methods include: Traverse the lane codes to obtain the passable lane data corresponding to the target road and navigation actions; Based on the passable lane data, obtain lane-level prompts for the target road and the corresponding navigation actions.

[0041] In one embodiment of this disclosure, passable lane data can be understood as data used to indicate passable lanes in a target road when driving based on navigation actions.

[0042] For example, the passable lane data may include the sequence number (number) of the passable lanes in the target road from left to right when driving based on navigation actions, or the passable lane data may also include the sequence number of the passable lanes in the target road from right to left when driving based on navigation actions.

[0043] In one implementation of this disclosure, the lane codes are traversed to obtain the passable lane data corresponding to the target road and the navigation action, including: Starting from the first digit of the lane code, traverse the lane codes to obtain the number of passable lanes corresponding to the target road and the navigation action, and the passable lane data from left to right. Starting from the last digit of the lane code, traverse the lane codes to obtain the rightmost passable lane data corresponding to the target road and navigation actions; Based on the passable lane data, obtain lane-level prompts for the target road and the corresponding navigation actions, specifically including: Based on at least one of the following: the number of passable lanes corresponding to the target lane and the navigation action, the data of passable lanes from the left and the data of passable lanes from the right, obtain lane-level prompt information corresponding to the target road and the navigation action.

[0044] According to the technical solution provided in the above embodiments, since the left-hand passable lane data and the right-hand passable lane data corresponding to the target road and the navigation action respectively represent the lanes of the target road that support the navigation action from the left or right, and the number of passable lanes corresponding to the target road and the navigation action indicates the total number of lanes in the target road that support the navigation action, therefore, by obtaining at least one of the number of passable lanes corresponding to the target road and the navigation action, the left-hand passable lane data, and the right-hand passable lane data, the lane-level prompt information corresponding to the target road and the navigation action can be obtained, which can ensure the accuracy of the lane-level prompt information obtained in this disclosure.

[0045] In one implementation of this disclosure, lane-level prompt information corresponding to the target road and the navigation action is obtained based on at least one of the number of passable lanes corresponding to the target lane and the navigation action, the data of passable lanes from the left, and the data of passable lanes from the right. Specifically, this includes: The number of passable lanes corresponding to the target lane and the navigation action is compared with the total number of coding bits of the lane code. If they are equal, the condition that all lanes are passable is met, and a prompt message indicating that all lanes are passable is generated. If they are not equal, then based on at least one of the following: left-hand passable lane data, right-hand passable lane data, and number of passable lanes corresponding to the target lane and navigation action, lane-level prompt information corresponding to the target road and navigation action is generated.

[0046] Since the total number of coded bits in the lane code represents the number of lanes on the road, if the number of passable lanes corresponding to the target lane and the navigation action is equal to the total number of coded bits in the lane code, it means that all lanes on the target road support the navigation action, that is, the condition that all lanes are passable is met.

[0047] According to the technical solution provided in this disclosure, the number of passable lanes corresponding to the target lane and the navigation action is compared with the total number of coded bits of the lane code. If they are equal, the condition that all lanes are passable is met, and a prompt message indicating that all lanes are passable is generated. If they are not equal, lane-level prompt information corresponding to the target road and the navigation action is generated based on at least one of the left-hand passable lane data, the right-hand passable lane data, and the number of passable lanes corresponding to the target lane and the navigation action. This can minimize the amount of computation and improve the efficiency of obtaining lane-level prompt information without affecting the accuracy of the lane-level prompt information.

[0048] In one implementation of this disclosure, the passable lane data from the left includes: the last passable lane code bit from the left, and the passable lane data from the right includes: the last passable lane code bit from the right. Based on at least one of the following: left-hand passable lane data, right-hand passable lane data, and the number of passable lanes corresponding to the target lane and the navigation action, generate lane-level prompt information corresponding to the target road and the navigation action, specifically including: If the last passable lane code from the left is the same as the number of passable lanes, then the condition of continuous passability of the left lanes is met, and a lane-level prompt message is generated indicating to go left and corresponding to the number of passable lanes. If the last passable lane code from the right is the same as the number of passable lanes, then the condition of continuous passability of the right lanes is met, and a lane-level prompt message is generated indicating to go to the right and the number of passable lanes corresponding to the lane.

[0049] For example, if the navigation action is a left turn, the last passable lane from the left is coded as the second digit, and the number of passable lanes is also 2. This means that the first and second lanes from the left on the target road both support left turns, satisfying the condition that the left lanes are continuously passable.

[0050] Similarly, if the navigation action is to go straight, and the last passable lane from the right is the third digit in the code, and the number of passable lanes is also 3, it means that the first to third lanes from the right on the target road all support going straight, satisfying the condition that the right lanes are continuously passable.

[0051] According to the technical solution provided in this disclosure, if the last passable lane code from the left is the same as the number of passable lanes, the condition for continuous passability of the left lane is met, and lane-level prompt information indicating to go left and corresponding to the number of passable lanes is generated; if the last passable lane code from the right is the same as the number of passable lanes, the condition for continuous passability of the right lane is met, and lane-level prompt information indicating to go right and corresponding to the number of passable lanes is generated. Accurate lane-level prompt information can be generated when either the condition for continuous passability of the left lane or the condition for continuous passability of the right lane is met.

[0052] In one implementation of this disclosure, the left-hand passable lane data includes: the first left-hand passable lane code and the last left-hand passable lane code; the right-hand passable lane data includes: the first right-hand passable lane code and the last right-hand passable lane code. Based on at least one of the left-hand passable lane data, the right-hand passable lane data, and the number of passable lanes corresponding to the target lane and the navigation action, lane-level prompt information corresponding to the target road and the navigation action is generated, specifically including: If the first passable lane code from the left is different from the first lane code from the left of the lane code, and the first passable lane code from the right is different from the first lane code from the right of the lane code, then when it is determined that the condition of continuous passage in the middle lane is met, a lane-level prompt message is generated indicating to take the middle lane and the number of passable lanes corresponds to the lane. In implementation, determining whether the conditions for continuous passage in the middle lane are met can specifically include: Determine the first sum value obtained by subtracting the code of the first passable lane from the last passable lane from the left and adding 1 to it; The first difference is obtained by subtracting the last passable lane code from the total number of code bits for the lane code; Determine the second difference obtained by subtracting 1 from the code of the first passable lane from the left; Determine the third difference obtained by subtracting the second difference from the first difference; If the first sum is equal to the number of passable lanes, the third difference is less than or equal to 1, and the total number of code bits of the lane code is greater than the preset number of lanes, then the condition that the middle lanes are continuously passable is met. or Determine the second sum by subtracting the code of the first passable lane from the last passable lane from the right, and adding 1 to the difference. The fourth difference is obtained by subtracting the last passable lane code from the total number of code bits for the lane code; Determine the fifth difference obtained by subtracting 1 from the code of the first passable lane from the right; Determine the sixth difference obtained by subtracting the fifth difference from the fourth difference; If the second sum equals the number of passable lanes, the sixth difference is less than or equal to 1, and the total number of coded bits of the lane code is greater than the preset number of lanes, then the condition that the middle lanes are continuously passable is met.

[0053] In this embodiment, the first passable lane code from the left is different from the first lane code from the left in the lane code, meaning that the first lane from left to right on the target road is a lane that does not support passage according to navigation actions. Similarly, the first passable lane code from the right is different from the first lane code from the right in the lane code, meaning that the first lane from right to left on the target road is a lane that does not support passage according to navigation actions.

[0054] For example, if the lane code is 001110, where the first passable lane code from the left is the third digit and the first lane code from the left is the first digit, and the two are different, then it is determined whether the condition of continuous passage of the middle lane is met. Specifically, the first sum is 3, which is obtained by subtracting the first passable lane code from the last passable lane code (5) from the left and adding 1. The first difference is 1, which is obtained by subtracting the last passable lane code (5) from the total number of lane codes (6). The second difference is 2, which is obtained by subtracting 1 from the first passable lane code (3). The third difference is -1, which is obtained by subtracting the second difference from the first difference. Since the first sum (3) is equal to the number of passable lanes (3), the third difference (-1) is less than or equal to 1, and the total number of lane codes is greater than the preset number of lanes, then it is determined that the condition of continuous passage of the middle lane is met.

[0055] Alternatively, if the lane code is 0011100, where the first passable lane code from the right is 3 and the first lane code from the right is 1, and the two are different, then it is determined whether the condition of continuous passage of the middle lane is met. Specifically, the second sum is 3, obtained by subtracting the first passable lane code from the last passable lane code (3) from the last passable lane code (5) from the right plus 1; the fourth difference is 2, obtained by subtracting the last passable lane code (5) from the total number of lane codes (7); the fifth difference is 2, obtained by subtracting 1 from the first passable lane code (3) from the right; and the sixth difference is 0, obtained by subtracting the fifth difference (2) from the fourth difference (2). Since the second sum (3) is equal to the number of passable lanes (3), the sixth difference (0) is less than or equal to 1, and the total number of lane codes (7) is greater than the preset number of lanes, then it is determined that the condition of continuous passage of the middle lane is met.

[0056] According to the technical solution provided in this disclosure, when the code of the first passable lane from the left is different from the code of the first lane from the left of the lane code, and the code of the first passable lane from the right is different from the code of the first lane from the right of the lane code, by further determining that the continuous passage condition of the middle lane is met, lane-level prompt information indicating to take the middle lane and the number of passable lanes corresponding to the lane is generated. When the continuous passage condition of the middle lane is met, accurate lane-level prompt information can be generated.

[0057] In one implementation of this disclosure, if after executing the aforementioned method steps, the lane coding of the target road does not meet the conditions that all lanes are passable, the conditions that the middle lane is continuously passable, the conditions that the left lane is continuously passable, and the conditions that the right lane is continuously passable, then the method further includes: Determine the type of navigation action and the passable lane code bit in the lane code; If the navigation action is a left-hand action, then a lane-level prompt message is generated indicating that the lane corresponding to the left-hand lane code is accessible; for example, if the navigation action is a left turn and the lane code is 10101, then a lane-level prompt message is generated indicating that the first, third, or fifth lane on the left is to be used. If the navigation action is a right-hand action, then a lane-level prompt message is generated indicating that the right-hand lane is the lane corresponding to the lane code. For example, if the navigation action is a right turn and the lane code is 10101, then a lane-level prompt message is generated indicating that the first, third, or fifth lane on the right should be used. If the navigation action is no action or straight action, then based on the lane code, obtain the cost of the passable lane from the left and the cost of the passable lane from the right of the target road. If the cost of the passable lane from the left is less than the cost of the passable lane from the right, then a lane-level prompt message is generated indicating to take the lane corresponding to the left-hand passable lane code. If the cost of traveling in the leftmost lane is greater than or equal to the cost of traveling in the rightmost available lane, then generate a lane-level prompt message indicating the lane corresponding to the encoded bit for traveling in the right available lane.

[0058] In one embodiment of the present disclosure, the cost of traveling in the leftmost available lane can be understood as the difficulty level of traveling according to the navigation action in the available lanes on the left side of the target road; similarly, the cost of traveling in the rightmost available lane can be understood as the difficulty level of traveling according to the navigation action in the available lanes on the right side of the target road.

[0059] Exemplarily, based on the lane encoding, obtaining the cost of traveling in the leftmost available lane and the cost of traveling in the rightmost available lane of the target road can be calculated by the following method: cntLeft1 represents the number of available lanes in the lanes on the left half of the target road, leftCost represents the cost of traveling in the leftmost available lane, and cntRight1 represents the number of available lanes in the lanes on the right half of the target road; If cntLeft1 > cntRight1, then set leftCost to the preset first-generation value, 1, and rightCost to the preset second-generation value, where the first-generation value is less than the second-generation value. For example, the first-generation value is set to 1 and the second-generation value is set to 2; If cntLeft1 < cntRight1, then set leftCost to the second-generation value and rightCost to the first-generation value; If cntLeft1 = cntRight1, then set leftCost and rightCost to the same generation value, such as the first-generation value.

[0060] For example, if the navigation action is going straight and the lane encoding of the target road is 011010, then cntLeft1 is 2 and cntRight1 is 1. Since cntLeft1 > cntRight1, set leftCost to 1 and rightCost to 2. Since leftCost < rightCost, it means that the driving difficulty of the lanes on the left side of the target road is lower than that of the lanes on the right side, so a lane-level prompt message indicating traveling in the second and third lanes on the left side is generated.

[0061] According to the technical solution provided in this disclosure, the type of navigation action and the passable lane code position in the lane code are determined; if the navigation action is a left-type action, lane-level prompt information indicating to take the lane corresponding to the left-hand passable lane code position is generated; if the navigation action is a right-type action, lane-level prompt information indicating to take the lane corresponding to the right-hand passable lane code position is generated; if the navigation action is no action or a straight action, the left-hand passable lane cost and right-hand passable lane cost of the target road are obtained based on the lane code; if the left-hand passable lane cost is less than the right-hand passable lane cost, a prompt information indicating to take the lane corresponding to the left-hand passable lane code position is generated. The system provides lane-level prompts; if the cost of the right-hand passable lane is less than or equal to the cost of the left-hand lane, it generates lane-level prompts indicating the lane corresponding to the right-hand passable lane code. This ensures that the technical solution can obtain lane-level prompts even when the conditions of all lanes being passable, the middle lane being continuously passable, the left lane being continuously passable, and the right lane being continuously passable are not met. In other words, it obtains corresponding lane-level prompts for different road scenarios, ensuring that the lane-level prompts provided by this disclosure can cover a sufficient number of road scenarios and guarantee user experience.

[0062] As mentioned earlier, in actual road scenarios, in order to improve road traffic efficiency, some roads include tidal lanes or reversible lanes. Therefore, the lane traffic status of this disclosure may also include tidal lanes or reversible lanes. As mentioned earlier, tidal lanes or reversible lanes can be represented by letters in the lane code. If the target road has both tidal lanes or reversible lanes and ordinary lanes whose traffic direction does not change over time, the traffic status of tidal lanes or reversible lanes in the lane code can be defaulted to 0, that is, defaulted to being impassable, in order to reduce the complexity of generating lane-level navigation prompts. In this case, when the client executing the technical solution provided by this disclosure obtains the lane code of the target road, it can execute the process provided by the aforementioned method of this disclosure without distinguishing whether there is a traffic status corresponding to a reversible lane or tidal lane in the lane code. If the lane code of the target road is only a letter for a variable lane, it means that the target road only includes variable lanes, and lane-level prompts are generated to indicate the variable lanes and the corresponding action messages for navigation actions. If the lane code of the target road is only a letter for tidal flow lanes, it means that the target road only includes tidal flow lanes, and lane-level prompts are generated to indicate the tidal flow lanes and the corresponding action messages for navigation actions.

[0063] For example, if the lane code of the target road is only code c, it can be assumed that the target road has only tidal lanes; or, if the lane code is only code z, it can be assumed that the target road has only reversible lanes.

[0064] According to the technical solutions provided in this disclosure, for situations where there are reversible lanes or tidal flow lanes on roads in the real world, the above embodiments are provided. This can reduce the complexity of generating lane-level prompt information for reversible lanes or tidal flow lanes, and also ensure that lane-level prompt information indicating reversible lanes or reversible lanes can be generated when only tidal flow lanes or reversible lanes are available. This avoids users from accidentally entering the wrong reversible lane or tidal flow lane and improves the user experience.

[0065] In one implementation of this disclosure, the method further includes: Based on lane coding and navigation actions, it is determined whether the warning prompt conditions are met. If they are met, a warning prompt message is generated.

[0066] In one embodiment of this disclosure, a warning prompt condition is determined based on lane coding and navigation actions. If the condition is met, a warning prompt message is generated. This can be implemented in the following way: If the navigation action is a left-hand action (such as a left turn) and the leftmost lane of the target road is determined to be a non-passing lane according to the lane code, then the warning prompt condition is met, and a warning prompt message indicating that the leftmost lane of the target road is non-passing is generated; Alternatively, if the navigation action is a right-hand type action (such as a right turn), and the rightmost lane of the target road is determined to be a non-passable lane based on the lane code, then the warning prompt conditions are met, and a warning prompt message indicating that the rightmost lane of the target road is non-passable is generated; Alternatively, if the navigation action is a left-hand type action, and the leftmost lane of the target road is determined to be a passable lane, the second lane from the left to the right of the target road is a non-passable lane, and the third lane from the left to the right of the target road is a passable lane, then the warning prompt conditions are met, and a warning prompt message is generated indicating that the left lanes of the target road are not consecutively passable. Alternatively, if the navigation action is a right-hand action, and the rightmost lane of the target road is determined to be a passable lane, the second lane from the right is a non-passable lane, and the third lane from the right is a passable lane based on the lane code, then the warning prompt conditions are met, and a warning message is generated indicating that the right lanes of the target road are not consecutively passable.

[0067] According to the technical solution provided in this disclosure, whether the warning prompt conditions are met is determined based on lane coding and navigation actions. If the conditions are met, a warning prompt message is generated, which can further prompt the road scenarios that need attention in the target road, avoid driving the vehicle into the wrong lane, and help improve the user experience.

[0068] In one implementation of this disclosure, the method further includes: Obtain traffic light information corresponding to the target road, where the traffic light information is used to indicate the location of traffic lights on the target road; If the effective location of the navigation action matches the location of the traffic light indicated by the traffic light information, a prompt message containing the navigation action and the traffic light will be generated.

[0069] For example, the effective location corresponding to the navigation action is the target intersection. Based on the traffic light information, it can be determined that the location of the target intersection matches the location of the traffic lights, that is, there are traffic lights at the target intersection. Therefore, the guidance information generated for the navigation action can indicate that there are traffic lights at the target intersection.

[0070] According to the technical solution provided in this disclosure, by obtaining traffic light information corresponding to the target road, if the effective location of the navigation action matches the location of the traffic light indicated by the traffic light information, a prompt message containing the navigation action and the traffic light is generated. This can effectively indicate whether there is a traffic light at the effective location of the navigation action on the target road, which helps to improve the user experience.

[0071] The above are embodiments of the method provided in this disclosure. The method provided in this disclosure can be applied to the navigation process. Specifically, when a user is driving along a pre-planned navigation route, the client (such as an application with map navigation function) obtains the lane code corresponding to the target road and the navigation action. Based on the lane code, the client obtains the lane-level prompt information corresponding to the target road and the navigation action. When the client determines that the vehicle is approaching the broadcast point corresponding to the navigation action on the target road, the client broadcasts the lane-level prompt information corresponding to the navigation action via voice. Here, the target road is any road included in the navigation route, and the navigation action is a driving action that the user needs to perform on the target road, which can be going straight, turning left, turning right, making a U-turn, etc.

[0072] The method provided in this disclosure can be applied to the process of pre-generating lane-level prompt information. Specifically, any device with computing capabilities (such as a server) can obtain the lane code corresponding to any target road in the map data and the navigation action. Based on the lane code, it can obtain and save the lane-level prompt information corresponding to the target road and the navigation action. Here, the navigation action includes all traffic directions supported by the target road. For example, if the target road supports left turns and right turns, lane-level prompt information is generated for left turns and right turns respectively. Subsequently, if the navigation service plans a navigation route for the user, which includes the target road, and the planned navigation action on the target road is a left turn, the pre-generated lane-level prompt information corresponding to the left turn for the target road is obtained, and this prompt information is sent to the client along with the navigation route. When the client determines that the vehicle is approaching the broadcast point corresponding to the left turn on the target road, it will verbally broadcast the lane-level prompt information corresponding to the left turn. Please note that the target road is only an example and not a specific one; any road in the navigation route can obtain lane-level prompt information in the same way as the target road.

[0073] The above are the method embodiments provided in this disclosure. The following describes the related embodiments of the device provided in this disclosure in conjunction with the accompanying drawings.

[0074] Figure 2 A structural block diagram of a prompt information acquisition device according to an embodiment of the present disclosure is shown. This device can be implemented as part or all of an electronic device through software, hardware, or a combination of both.

[0075] like Figure 2 As shown, the prompt information acquisition device 200 includes: The encoding acquisition module 201 is configured to acquire the lane codes corresponding to the target road and navigation actions. The prompt information acquisition module 202 is configured to acquire lane-level prompt information corresponding to the target road and navigation action based on the lane code.

[0076] According to the technical solution provided in this disclosure, the lane code corresponding to the target road and the navigation action is obtained; based on the lane code, lane-level prompt information corresponding to the target road and the navigation action is obtained. Since the lane code in this disclosure represents the passability status of the target road lane corresponding to the navigation action, this disclosure can obtain lane-level prompt information corresponding to the target road and the navigation action through the lane code. This solves the problems of low generation efficiency, high maintenance cost, and susceptibility to errors caused by the prior art's use of configuration files to configure lane-level prompt information, which requires developers to manually configure and maintain a large amount of prompt information. This improves the generation efficiency and accuracy of lane-level prompt information and reduces costs.

[0077] This disclosure also discloses an electronic device. Figure 3 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0078] like Figure 3 As shown, the electronic device includes a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to the embodiments of this disclosure. The method provided by the embodiments of this disclosure can be found in the relevant sections above, and will not be repeated here.

[0079] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing the method according to embodiments of the present disclosure is shown.

[0080] like Figure 4 As shown, the computer system includes a processing unit that can execute various methods described above based on a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM). The RAM also stores various programs and data required for the operation of the computer system. The processing unit, ROM, and RAM are interconnected via a bus. Input / output (I / O) interfaces are also connected to the bus.

[0081] The following components are connected to the I / O interface: input sections including keyboards, mice, etc.; output sections including cathode ray tubes (CRTs), liquid crystal displays (LCDs), and speakers; storage sections including hard disks; and communication sections including network interface cards such as LAN cards and modems. The communication section performs communication processes via a network such as the Internet. Drives are also connected to the I / O interface as needed. Removable media, such as disks, optical disks, magneto-optical disks, semiconductor memories, etc., are installed on the drive as needed so that computer programs read from them can be installed into the storage section as required. The processing unit can be implemented as a CPU, GPU, TPU, FPGA, NPU, etc.

[0082] In particular, according to embodiments of this disclosure, the methods described above can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program containing program code for performing the methods described above. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium.

[0083] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0084] The units or modules described in the embodiments of this disclosure can be implemented in software or programmable hardware. The described units or modules can also be located in a processor, and the names of these units or modules do not necessarily constitute a limitation on the unit or module itself.

[0085] In another aspect, this disclosure also provides a computer-readable storage medium, which may be a computer-readable storage medium included in the electronic device or computer system described above; or it may be a standalone computer-readable storage medium not assembled into a device. The computer-readable storage medium stores one or more programs, which are used by one or more processors to perform the methods described in this disclosure.

[0086] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

Claims

1. A method for obtaining prompt information, wherein, include: Obtain the lane code corresponding to the target road and navigation actions; Based on the lane code, obtain lane-level prompt information corresponding to the target road and the navigation action.

2. The method for obtaining prompt information according to claim 1, wherein, One coded bit of the lane code represents the traffic status of a lane of the target road corresponding to the navigation action. The traffic status includes at least two conditions: passable and impassable. Obtaining lane-level prompt information corresponding to the target road and the navigation action based on the lane code includes: Traverse the lane codes to obtain the passable lane data corresponding to the target road and the navigation action; Based on the passable lane data, obtain lane-level prompt information corresponding to the target road and the navigation action.

3. The method for obtaining prompt information according to claim 2, wherein, The step of traversing the lane codes to obtain the passable lane data corresponding to the target road and the navigation action includes: Starting from the first digit of the lane code, traverse the lane code to obtain the number of passable lanes corresponding to the target road and the navigation action, and the passable lane data from left to right; Starting from the last digit of the lane code, traverse the lane codes to obtain the rightmost passable lane data corresponding to the target road and the navigation action; The step of obtaining lane-level prompt information corresponding to the target road and the navigation action based on the passable lane data specifically includes: Based on at least one of the number of passable lanes corresponding to the target lane and the navigation action, the data of passable lanes from the left and the data of passable lanes from the right, lane-level prompt information corresponding to the target road and the navigation action is obtained.

4. The method for obtaining prompt information according to claim 3, wherein, The step of obtaining lane-level prompt information corresponding to the target road and the navigation action based on at least one of the number of passable lanes corresponding to the target lane and the navigation action, the data of passable lanes from the left, and the data of passable lanes from the right, specifically includes: The number of passable lanes corresponding to the target lane and the navigation action is compared with the total number of coding bits of the lane code. If they are equal, the condition that all lanes are passable is met, and a prompt message indicating that all lanes are passable is generated. If they are not equal, then based on at least one of the left-hand passable lane data, the right-hand passable lane data, and the number of passable lanes corresponding to the target lane and the navigation action, lane-level prompt information corresponding to the target road and the navigation action is generated.

5. The method for obtaining prompt information according to claim 4, wherein, The left-hand passable lane data includes the last passable lane code from the left, and the right-hand passable lane data includes the last passable lane code from the right. The process of generating lane-level prompt information corresponding to the target road and the navigation action based on at least one of the left-hand passable lane data, the right-hand passable lane data, and the number of passable lanes, specifically includes: If the last passable lane code from the left is the same as the number of passable lanes, then the condition of continuous passability of the left lane is met, and a lane-level prompt message indicating to go left and corresponding to the number of passable lanes is generated. If the last passable lane code from the right is the same as the number of passable lanes, then the condition of continuous passability of the right lanes is met, and a lane-level prompt message indicating to go to the right and the lane corresponding to the number of passable lanes is generated.

6. The method for obtaining prompt information according to claim 4, wherein, The left-hand passable lane data includes: the code bit of the first passable lane from the left and the code bit of the last passable lane from the left. The right-hand passable lane data includes: the code bit of the first passable lane from the right and the code bit of the last passable lane from the right. The step of generating lane-level prompt information corresponding to the target road and the navigation action based on at least one of the left-hand passable lane data, the right-hand passable lane data, and the number of passable lanes, specifically includes: If the first passable lane code from the left is different from the first lane code from the left of the lane code, and the first passable lane code from the right is different from the first lane code from the right of the lane code, then when it is determined that the continuous passage condition of the middle lane is met, a lane-level prompt message indicating to take the middle lane and the lane corresponding to the number of passable lanes is generated. The determination that the conditions for continuous passage in the middle lane are met specifically includes: Determine the first sum value obtained by subtracting the code of the first passable lane from the last passable lane from the left and adding 1 to it; The first difference is obtained by subtracting the last passable lane code from the total number of code bits for the lane code; Determine the second difference obtained by subtracting 1 from the code of the first passable lane from the left; Determine the third difference obtained by subtracting the second difference from the first difference; If the first sum is equal to the number of passable lanes, the third difference is less than or equal to 1, and the total number of coding bits of the lane code is greater than the preset number of lanes, then the condition that the middle lanes are continuously passable is met. or Determine the second sum by subtracting the code of the first passable lane from the last passable lane from the right, and adding 1 to the difference. The fourth difference is obtained by subtracting the last passable lane code from the total number of code bits for the lane code; Determine the fifth difference obtained by subtracting 1 from the code of the first passable lane from the right; Determine the sixth difference obtained by subtracting the fifth difference from the fourth difference; If the second sum is equal to the number of passable lanes, the sixth difference is less than or equal to 1, and the total number of coded bits of the lane code is greater than the preset number of lanes, then the condition that the middle lanes are continuously passable is met.

7. The method according to any one of claims 4-6, wherein, If the conditions for all lanes to be passable, the conditions for continuous passage in the middle lane, the conditions for continuous passage in the left lane, and the conditions for continuous passage in the right lane are not met, then the method further includes: Determine the type of the navigation action and the passable lane code bit in the lane code; If the navigation action is a left-hand action, then a lane-level prompt message is generated indicating to take the lane corresponding to the left-hand passable lane code. If the navigation action is a right-hand action, then a lane-level prompt message is generated indicating to take the right-hand lane corresponding to the lane coded bit of the passable lane. If the navigation action is no action or a straight action, then the left-hand passable lane cost and the right-hand passable lane cost of the target road are obtained based on the lane code. If the cost of the left-hand passable lane is less than the cost of the right-hand passable lane, then a lane-level prompt message is generated indicating to take the lane corresponding to the left-hand passable lane code. If the toll cost of the right-hand passable lane is less than or equal to the toll cost of the left-hand lane, then a lane-level prompt message is generated indicating to take the lane corresponding to the right-hand passable lane code.

8. The method for obtaining prompt information according to claim 2, wherein, The lane's traffic status includes tidal flow lanes or reversible lanes. The step of obtaining lane-level prompt information corresponding to the target road and the navigation action based on the passable lane data specifically includes: If the passable lane data only includes the passable lane data of the variable lane or the tidal flow lane, then a lane-level prompt message is generated indicating the variable lane and the corresponding action message of the navigation action, or a lane-level prompt message is generated indicating the tidal flow lane.

9. The method for obtaining prompt information according to any one of claims 1-6 and 8, wherein, The method further includes: Based on the lane code and the navigation action, determine whether the warning prompt conditions are met. If they are met, generate a warning prompt message.

10. An electronic device, characterized in that, It includes a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method steps of any one of claims 1-9.