Refined navigation method based on regional traffic plan route planning
By dividing controlled electronic fence areas in traffic navigation and using visual graphics and A* algorithms, optimal navigation routes for different users and vehicles are generated, which solves the problem that existing navigation solutions cannot conduct refined planning based on user identities and vehicle types. question, enabling personalized navigation and navigation prompts within the activity area.
Patent Information
- Application Number
- CN202111037502.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-06
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-09-06
AI Technical Summary
Existing navigation solutions cannot perform refined route planning based on user identity and vehicle type in traffic control areas for large-scale events, resulting in insufficiently personalized navigation.
Adopting a refined navigation method based on the traffic plan route planning in the area, by dividing the controlled electronic fence area, setting the starting point and ending point of multiple user types, using the visual graph method and the A* algorithm to generate the shortest path, based on the user identity and vehicle type Navigation route configuration and tips.
It realizes the independent planning of traffic plan routes in the activity control area, and combines the map merchant navigation with unified display outside the area. Different navigation prompts are played according to different user identities, which improves the personalization and accuracy of navigation.
Smart Images

Figure CN113959442B
Abstract
Description
Technical Field
[0001] The invention relates to the field of computers, and in particular to a refined navigation method based on regional traffic plan route planning. Background Art
[0002] This technology uses visual mapping to generate traffic plan routes within the electronic fences such as control areas and passage areas set up in the activity area, based on the public transportation facilities such as buildings, shuttle buses, buses, parking lots, etc. in the area, matching the identities of different participants, travel methods, and vehicle types, and providing traffic navigation and traffic information release services based on Internet technology, and providing navigation services in different scenarios and methods for different users.
[0003] Although the navigation solutions of various map vendors currently provide traffic control information for large-scale events (such as marathons, exhibitions, concerts, etc.), and will remind and bypass the controlled electronic fence areas during navigation, they do not distinguish between navigation route planning based on user identity, travel mode and vehicle type (such as participants, non-participants, exhibition vehicles, guest vehicles, social vehicles, public transportation vehicles, etc.). Summary of the invention
[0004] The purpose of the present invention is to solve at least one of the technical problems existing in the prior art, and to provide a refined navigation method based on regional traffic plan route planning, thereby solving the shortcomings of the prior art.
[0005] The technical solution of the present invention includes a refined navigation method based on regional traffic plan route planning, which is characterized in that it includes the following steps: S100, dividing a preset area into a controlled electronic fence area; S200, setting the starting point and end point of the plan route of multiple user types in the controlled electronic fence area; S300, using the user's starting point, passing point and target point as similar polygons of buildings in the particle area; S400, using the visual graph method to connect the particle points and the polygons to obtain all passable plan routes; S500, using the A* algorithm to perform the shortest path search to obtain the optimal plan route for each type of user, and setting the navigation configuration of the corresponding route, and performing corresponding navigation for the user according to the navigation configuration.
[0006] According to the refined navigation method based on regional traffic plan route planning, it is characterized in that S100 includes:
[0007] The division and control of the electronic fence area includes setting the core area, the control area and the passage area, and setting the area name, control date, control time, effective priority, control status and remarks.
[0008] According to the refined navigation method based on regional traffic plan route planning, it is characterized in that the S300 includes: taking the starting point for different users and different vehicles to enter the controlled electronic fence area and the buildings and public transportation facilities in the area as a particle and an approximate polygon; using visible line segments to orderly combine and connect the particle points, the target points of users and vehicles, and the vertices of the polygon, wherein the connecting lines cannot pass through the approximate polygon; and performing a search for the shortest line segment set between different users and vehicles from the starting point to the target point.
[0009] According to the refined navigation method based on regional traffic plan route planning, the orderly combination and connection of mass points, target points of users and vehicles, and vertices of polygons are performed using visible line segments, including: constructing a visible graph for the mass points and polygon vertices through a visible graph algorithm and performing line connection processing to obtain multiple feasible routes for users and vehicles.
[0010] According to the refined navigation method based on intra-regional traffic plan route planning, the search for the shortest line segment set between different users and vehicles from the starting point to the target point includes: obtaining the visible graph, and then obtaining multiple feasible routes in the visible graph, and writing the starting point and the end point of the feasible route into the corresponding open list and closed list respectively; initializing the open list and the closed list, adding the extended node information of the starting node to the open list, and saving the vertex information of the polygon into the closed list; executing the A* algorithm, traversing the nodes in the open list, selecting the node with the smallest cost function value f(n) as the current node to be processed, deleting it from the open list, and writing it into the closed list at the same time; judging whether the current node is the target node, if so, jumping to the next step, if not, expanding the current node, for the child nodes already in the open list, calculating the value of the current cost function f(n), comparing it with the original value, and replacing it if the current value is smaller; writing the extended node that is neither in the open list nor in the closed list into the open list, updating the parent node pointer, calculating the value of the cost function and returning to the previous step; returning to the starting point along the target node by backtracking to form the optimal path and outputting it, completing the search;
[0011] Where f(n)=g(n)+h(n), f(n) represents the cost estimation function from the initial node via node n to the target node, g(n) represents the actual cost from the initial node to node n, and h(n) represents the estimated cost from node n to the target node.
[0012] According to the refined navigation method based on regional traffic plan route planning, the method also includes: when the end point of the user and the vehicle is in the controlled electronic fence area, a route splicing process is performed, and the connection splicing includes obtaining a set of boundary points entering the controlled electronic fence area and storing them in a map business database, and performing route calculation through a map business API route planning engine.
[0013] According to the refined navigation method based on intra-regional traffic plan route planning, S200 also includes the setting of the plan, which is characterized by: setting plan rules, including plan name, type, corresponding activity, plan identification method, plan date, plan time, corresponding controlled electronic fence area, execution mode, and execution status; setting plan type, including traffic emergency plan, event emergency plan, and traffic organization plan, and the plan type can be customized; setting plan identification method, including setting user identity, parking lot, and access to third-party system signal trigger; setting plan execution mode, including automatic execution and manual execution.
[0014] According to the refined navigation method based on regional traffic plan route planning, S500 includes: identifying whether the user is driving or taking a bus; if the user is driving and has reserved a designated parking lot, obtaining the user ID, license plate number and parking lot ID of the driving user, and confirming whether the driving user's destination is within the controlled electronic fence area based on the parking lot ID; if the driving user is within the controlled electronic fence area, navigating the driving user according to the planned route, otherwise, navigating through the map provider; if the driving user has not reserved a parking lot, navigating to the parking lot outside the controlled electronic fence area through the map provider and giving a prompt; if the user is taking a bus, obtaining the user's route information, and navigating using the map provider based on the user's route information.
[0015] According to the refined navigation method based on regional traffic plan route planning, identifying the user as driving includes: determining the shortest distance from the user's starting point to the planned route, using map navigation to guide the user to the entrance of the planned route, and then providing navigation to the user's destination within the planned route. The planned route will extract the plan route voice prompt configured in the background, and play the voice prompt when the user coordinate information and the route coordinates are within the set range; if the user's reserved parking lot is not within the controlled electronic fence area, the map navigation is directly called to generate a navigation route based on the user's starting point location and the parking lot end location, and the shuttle bus location is displayed to the user, and a navigation route for walking to the shuttle bus is provided; for users who drive and do not reserve a parking lot, parking lot information outside the controlled electronic fence area is provided, and after the user selects the parking lot, the map navigation is called for guidance based on the user's current location information and the parking lot location, and the shuttle bus location is displayed to the user, and a navigation route for walking to the shuttle bus is provided.
[0016] According to the refined navigation method based on regional traffic plan route planning, taking a bus includes: using map navigation to guide users, adding multiple waypoints at the starting point and end point of the bus through the server background, the background requests the map interface to obtain the information coordinate points of the detailed route, and stores all the coordinate point information in the cache. After starting navigation, the front and back ends communicate through the web client, and the front end sends the user's current location coordinates to the background every 1S; the background compares the user's current coordinate point with the existing coordinate point information to determine whether the user is currently on a certain route. When the user's coordinate point exceeds the route coordinate point by 100 meters, the user deviates from the route and re-plans the route.
[0017] The beneficial effects of the present invention are: autonomously planning traffic plan routes within the activity control area, and uniformly displaying navigation routes outside the activity control area in combination with map navigation; at the same time, when navigating within the activity control area, different navigation prompt voices and navigation guidance can be played according to different user identities. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The present invention is further described below in conjunction with the accompanying drawings and embodiments;
[0019] Figure 1 Shown is a flow chart according to an embodiment of the present invention.
[0020] Figure 2 Shown is a flow chart of the A* algorithm according to an embodiment of the present invention.
[0021] Figure 3 Shown is a navigation flow chart according to an embodiment of the present invention.
[0022] Figure 4 Shown is a diagram of an apparatus according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] This section will describe in detail the specific embodiments of the present invention. The preferred embodiments of the present invention are shown in the accompanying drawings. The purpose of the accompanying drawings is to supplement the description of the text part of the specification with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of the present invention, but it cannot be understood as a limitation on the scope of protection of the present invention.
[0024] In the description of the present invention, “several” means one or more, “more” means more than two, “greater than”, “less than”, “exceed”, etc. are understood as not including the number itself, and “above”, “below”, “within”, etc. are understood as including the number itself.
[0025] In the description of the present invention, the consecutive numbering of the method steps is for the convenience of review and understanding. Combined with the overall technical scheme of the present invention and the logical relationship between the various steps, adjusting the implementation order between the steps will not affect the technical effect achieved by the technical scheme of the present invention.
[0026] In the description of the present invention, unless otherwise clearly defined, words such as "setting" should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meaning of the above words in the present invention in combination with the specific content of the technical solution.
[0027] Figure 1 The flowchart according to the embodiment of the present invention is shown. The process includes: S100, dividing the preset area into a controlled electronic fence area; S200, setting the starting point and end point of the planned routes of multiple user types in the controlled electronic fence area; S300, using the user's starting point, passing point and target point as similar polygons of buildings in the particle area; S400, using the visual graph method to connect the particles and polygons to obtain all accessible planned routes; S500, using the A* algorithm to search for the shortest path, obtain the optimal planned route for each type of user, and set the navigation configuration of the corresponding route, and navigate the user accordingly according to the navigation configuration.
[0028] Among them, the division of the controlled electronic fence area in the preset area mainly involves setting the core area, control area, passage area, etc. in the background, including their names, control date, control time, effective priority, control status, remarks, etc., and using the polygon drawing tool to circle the corresponding electronic fence on the map;
[0029] The user's starting point, waypoints and target point are taken as similar polygon routes of buildings in the particle area, including route ID, route name, route type, data source, and the serial number, coordinates, navigation voice, etc. of each route waypoint, and the corresponding route planning is generated through visual graph method.
[0030] The specific steps of generating the plan route by the visual graph method are as follows: the starting point of different users / vehicles entering the activity control area and the buildings, public transportation facilities, etc. in the activity control area are assumed to be a particle and an approximate polygon, and the particle, user / vehicle target point and each vertex of the polygon are connected in an orderly combination with visible line segments, that is, the connecting line cannot pass through the approximate polygon, and the plan path planning problem is converted into searching for the shortest line segment set between the starting point and the target point of different users / vehicles, and then the A* algorithm is used to search for the shortest path, and the shortest path is used as the plan route for different users / different travel modes.
[0031] The plan rules can be configured, including plan name, type, corresponding activity, plan identification method (identity / parking lot), plan date, plan time, corresponding control area, execution mode (automatic / manual), execution status, etc.
[0032] Type: Traffic emergency plan / incident emergency plan / traffic organization plan, etc., support customization;
[0033] Plan identification method: such as user identity / parking lot / access to third-party system signal trigger, mainly refers to the method of triggering the plan;
[0034] Execution mode: automatic / manual, such as the tidal traffic plan is automatically executed according to a fixed time period during the week, or automatically executed according to the flow of exhibitors during the exhibition period; the administrator can also manually open / close a plan.
[0035] Figure 2 The flowchart of the A* algorithm according to the embodiment of the present invention is shown. The process includes:
[0036] S210, obtaining a visual graph, and then obtaining a plurality of feasible routes in the visual graph, and writing the starting point and the end point of the feasible route into the corresponding open list and closed list respectively;
[0037] S220, initializing an open list and a closed list, adding the extended node information of the start node to the open list, and saving the vertex information of the polygon to the closed list;
[0038] S230, executing A* algorithm processing, traversing the nodes in the open list, selecting the node with the smallest cost function value f(n) as the current node to be processed, deleting it from the open list, and writing it into the closed list;
[0039] S240, determine whether the current node is the target node, if so, jump to the next step, if not, expand the current node, for the child nodes already in the open list, calculate the value of the current cost function f(n), compare it with the original value, and replace it if the current value is smaller; for the expanded node that is neither in the open list nor in the closed list, write it into the open list, update the parent node pointer, calculate the value of the cost function and return to the previous step;
[0040] S250, returning to the starting point by backtracking along the target node to form an optimal path and output it, completing the search;
[0041] Where f(n)=g(n)+h(n), f(n) represents the cost estimation function from the initial node via node n to the target node, g(n) represents the actual cost from the initial node to node n, and h(n) represents the estimated cost from node n to the target node.
[0042] Among them, the open list is used to save the extended nodes to be detected during the path search process, and these nodes are sorted according to the size of the cost value; the closed list is used to record the extended nodes that have been detected during the path search process to avoid repeated searches and increase the workload; the parent node stores the node pointer, which is used to trace back the node during the path search process to form a path.
[0043] Figure 3 The figure shows a navigation flow chart according to an embodiment of the present invention. The overall process is as follows:
[0044] For users who travel by car, if they have reserved an active parking lot, the travel information of the person is obtained, including the user id (user_id), the license plate number (car_number) that the user has reserved, and the reserved parking lot id (parkinglot_id). Based on the parking lot reserved by the user, it is determined whether the parking lot is within the restricted area.
[0045] If the user's reserved parking lot is within the restricted area, navigation will be performed according to the designated route within the restricted area. First, the shortest distance from the user's starting point to the planned route will be determined, and the map navigation will be used to guide the user to the entrance of the planned route. Then, navigation to the destination will be provided within the planned route. The planned route will extract the planned route voice prompt configured in the background, and the voice prompt will be played when the user's coordinate information appears near the voice coordinates.
[0046] If the parking lot reserved by the user is not in the restricted area, the map provider's navigation will be directly called to generate a navigation route based on the user's starting location and the parking lot's end location, and the shuttle bus location will be displayed to the user, providing a navigation route for walking to the shuttle bus.
[0047] For users who drive without making a parking reservation, parking lot information in non-controlled areas is provided. After the user selects a parking lot, the map provider's navigation is used to guide the user based on the user's current location information and the location of the parking lot. The location of the shuttle bus is shown to the user, and a navigation route for walking to the shuttle bus is provided.
[0048] For users who travel by public transportation, obtain public transportation route information, obtain the user's current location coordinate point information to find the nearest public transportation location to the user, and use map navigation to guide the user. First, the background adds multiple waypoints at the starting point and the end point. The background requests the map interface to obtain the detailed route information coordinate points, and stores all coordinate point information in the cache. After starting navigation, the front and back ends communicate through the webscoket. The front end sends the user's current location coordinates to the back end every 1S. The back end compares the user's current coordinate points with the existing coordinate point information to determine whether the user is currently on a certain route. When the user's coordinate point exceeds the route coordinate point by 100 meters, the user deviates from the route and re-plans the route.
[0049] Figure 4 The device diagram according to an embodiment of the present invention is shown. The device includes a memory 100 and a processor 200, wherein the processor 200 stores a computer program, and the computer program is used to execute: dividing a controlled electronic fence area in a preset area; setting the starting point and end point of the planned routes of multiple user types in the controlled electronic fence area; using the user's starting point, passing point and target point as similar polygons of buildings in the particle area; using the visual graph method to connect the particles and polygons to obtain all accessible planned routes; using the A* algorithm to perform the shortest path search to obtain the optimal planned route for each type of user, and setting the navigation configuration of the corresponding route, and navigating the user accordingly according to the navigation configuration.
[0050] The existing map navigation technology in the WeChat applet is currently unable to independently plan the planned route and perform refined navigation for different user identities according to the independently planned planned route. The present invention can realize the autonomous planning of traffic plan routes within the activity control area in the WeChat applet, and combine the navigation routes outside the activity control area with the map navigation for unified display. At the same time, when navigating within the activity control area, different navigation prompt voices and navigation guidance can be played according to different user identities.
[0051] It should be appreciated that the method steps in the embodiments of the present invention can be implemented or implemented by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The method can use standard programming techniques. Each program can be implemented in a high-level process or object-oriented programming language to communicate with a computer system. However, if necessary, the program can be implemented in an assembly or machine language. In any case, the language can be a compiled or interpreted language. In addition, the program can be run on a programmed ASIC for this purpose.
[0052] Furthermore, the operations of the processes described herein may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes described herein (or variations and / or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that is executed collectively on one or more processors, by hardware, or a combination thereof. The computer program includes a plurality of instructions that may be executed by one or more processors.
[0053] Further, the method can be implemented in any type of computing platform that is operably connected to a suitable computer, including but not limited to a personal computer, a minicomputer, a mainframe, a workstation, a network or distributed computing environment, a separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, etc. Various aspects of the present invention can be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, an optical read and / or write storage medium, a RAM, a ROM, etc., so that it can be read by a programmable computer, and when the storage medium or device is read by the computer, it can be used to configure and operate the computer to perform the process described herein. In addition, the machine-readable code, or portions thereof, can be transmitted via a wired or wireless network. When such media includes instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor, the invention described herein includes these and other different types of non-transitory computer-readable storage media. When programmed according to the methods and techniques of the present invention, the present invention also includes the computer itself.
[0054] The computer program can be applied to input data to perform the functions described herein, thereby converting the input data to generate output data stored in a non-volatile memory. The output information can also be applied to one or more output devices such as consumers. In a preferred embodiment of the present invention, the converted data represents physical and tangible objects, including specific visual depictions of physical and tangible objects produced on consumers.
[0055] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the technical field without departing from the purpose of the present invention.
Claims
1. A refined navigation method based on regional traffic plan route planning, characterized in that: The following steps are involved: S100, dividing a controlled electronic fence area in a preset area; S200, setting the starting point and the end point of the planned routes of multiple user types in the controlled electronic fence area; S300, taking the user's starting point, passing points and target point as similar polygons of buildings in the particle area; S400, using a visual graph method to connect the mass points and the polygons to obtain all traversable planned routes; S500, using the A* algorithm to search for the shortest path, obtain the optimal plan route for each type of user, set the navigation configuration of the corresponding route, and perform corresponding navigation for the user according to the navigation configuration; The S300 includes: The starting points of different users and vehicles entering the controlled electronic fence area and the buildings and public transportation facilities in the area are regarded as a mass point and an approximate polygon; Use visible line segments to connect the mass points, the target points of the user and the vehicle, and the vertices of the polygon in an orderly manner, where the connecting lines cannot pass through the approximate polygon; Search for the shortest line segment set between different users and vehicles from the starting point to the target point; The method of orderly combining and connecting the mass points, the target points of the user and the vehicle, and the vertices of the polygon using visible line segments includes: Constructing a visible graph for the mass points and polygon vertices through a visible graph algorithm and performing line processing to obtain multiple feasible routes for the user and the vehicle; The performing of searching for the shortest line segment set between different users and vehicles from the starting point to the target point comprises: Acquire the visual graph, and then acquire multiple feasible routes in the visual graph, and write the starting points and end points of the feasible routes into the corresponding open list and closed list respectively; Initialize the open list and the closed list, add the extended node information of the start node to the open list, and save the vertex information of the polygon to the closed list; Execute the A* algorithm to traverse the nodes in the open list, select the node with the smallest cost function value f(n) as the current node to be processed, delete it from the open list, and write it into the closed list; Determine whether the current node is the target node. If so, jump to the next step. If not, expand the current node. For child nodes that are already in the open list, calculate the value of the current cost function f(n), compare it with the original value, and replace it if the current value is smaller. For expanded nodes that are neither in the open list nor in the closed list, write them into the open list, update the parent node pointer, calculate the value of the cost function and return to the previous step. The search is completed by backtracking back to the starting point along the target node to form the optimal path and output it; Where f(n)=g(n)+h(n), f(n) represents the cost estimation function from the initial node via node n to the target node, g(n) represents the actual cost from the initial node to node n, and h(n) represents the estimated cost from node n to the target node.
2. The refined navigation method based on regional traffic plan route planning according to claim 1 is characterized in that: The S100 includes: The division and control of the electronic fence area includes setting the core area, the control area and the passage area, and setting the area name, control date, control time, effective priority, control status and remarks.
3. The refined navigation method based on regional traffic plan route planning according to claim 1 is characterized in that: The method further includes: When the end point of the user and the vehicle is in the controlled electronic fence area, the route splicing processing is performed. The connection splicing includes obtaining a set of boundary points entering the controlled electronic fence area and storing them in the map business database, and performing route calculation through the map business API route planning engine.
4. According to the refined navigation method based on regional traffic plan route planning in claim 1, the step S200 further includes setting of the plan, characterized in that: Set up plan rules, including plan name, type, corresponding activities, plan identification method, plan date, plan time, corresponding electronic fence area, execution mode, and execution status; Set the plan type, including traffic emergency plan, incident emergency plan, and traffic organization plan. The plan type can be customized. Set up the plan identification method, including setting the user identity, parking lot, and access to third-party system signal triggers; Set the plan execution mode, including automatic execution and manual execution.
5. According to the refined navigation method based on intra-regional traffic plan route planning according to claim 1, the step S500 comprises: Identify the user as driving a car or taking a bus; If the user is a driver and has reserved a designated parking lot, the user ID, license plate number and parking lot ID of the driver are obtained, and whether the destination of the driver is within the controlled electronic fence area is confirmed according to the parking lot ID. If it is within the controlled electronic fence area, the driver is navigated according to the planned route, otherwise, the driver is navigated through the map provider; If the driving user has not reserved a parking lot, the user will be navigated to a parking lot outside the controlled electronic fence area through the map provider and prompted; If the user is taking a bus, the user route information is obtained, and navigation is performed using the map provider based on the user route information.
6. According to the refined navigation method based on intra-regional traffic plan route planning according to claim 5, the identifying that the user is driving comprises: Determine the shortest distance from the user's starting point to the planned route, use map navigation to guide the user to the planned route entrance, and then provide navigation to the user's destination within the planned route. The planned route will extract the planned route voice prompt configured in the background, and play the voice prompt when the user's coordinate information and the route coordinates are within the set range; If the user's reserved parking lot is not within the controlled electronic fence area, the map provider navigation will be directly called to generate a navigation route based on the user's starting location and the parking lot's end location, and the shuttle bus location will be displayed to the user, providing a navigation route to the shuttle bus on foot; For users who drive without making a parking reservation, parking lot information outside the controlled electronic fence area is provided. After the user selects a parking lot, the map provider's navigation is used to guide the user based on the user's current location information and the location of the parking lot. The shuttle bus location is displayed to the user, and a navigation route to the shuttle bus is provided.
7. According to the refined navigation method based on regional traffic plan route planning in claim 5, the taking of a bus comprises: Use map navigation to guide users. Add multiple waypoints at the starting point and end point of the bus through the server background. The background requests the map interface to obtain the coordinate points of the detailed route. All coordinate point information is stored in the cache. After starting navigation, the front and back ends communicate through the web client. The front end sends the user's current location coordinates to the background every 1S. The background compares the user's current coordinate point with the existing coordinate point information to determine whether the user is currently on a certain route. When the user's coordinate point exceeds the route coordinate point by 100 meters, the user deviates from the route and re-route planning is performed.
