Urban traffic route planning method, device, equipment and medium
By combining map road network data and electric police equipment information, urban traffic path planning is optimized, an initial target navigation path with a small number of sub-paths is selected, and the target navigation path is determined, which solves the problem that existing methods fail to effectively utilize electric police equipment. Improved travel efficiency and route optimization.
Patent Information
- Application Number
- CN202410797454.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-20
AI Technical Summary
Existing urban traffic path planning methods are only based on map road network data and fail to effectively consider and utilize road electric warning equipment, resulting in low path planning efficiency and inability to provide optimal travel solutions.
By receiving the navigation request information, the initial navigation path and sub-paths are determined based on the map road network data, the electric police equipment information is obtained, and the initial target navigation path with a smaller number of sub-paths is selected based on the electric police equipment location and path relationship. The quantity and location determine the target navigation path and realize the combination of path planning and electric police equipment.
It provides a travel plan with the optimal path and the least electric police equipment, improves user travel efficiency, and solves the problem of lack of use of electric police equipment in existing methods.
Smart Images

Figure CN118376257B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic information technology and related technical fields, and in particular to a method, device, equipment and medium suitable for urban traffic path planning. Background Art
[0002] The advancement of urbanization around the world, the continuous growth of urban population and the continuous increase in car ownership have made urban traffic congestion, parking difficulties and other problems increasingly serious. Traditional traffic management models and infrastructure can no longer effectively meet the large-scale and high-density travel needs, and intelligent solutions are urgently needed to optimize the efficiency of urban traffic operations.
[0003] Smart travel technology can improve fuel efficiency and reduce ineffective driving through dynamic path planning, which helps save energy and reduce emissions. At present, existing path planning methods provide intelligent driving solutions for vehicle travel by using path planning methods based on search, sampling, intelligence, etc. However, existing methods only build path planning models based on map road network data, and lack consideration and utilization of road electronic police equipment. Summary of the invention
[0004] The embodiments described herein provide a method, apparatus, device and medium for urban traffic path planning to solve the problems existing in the prior art.
[0005] In a first aspect, according to the content of the present disclosure, a method for urban traffic path planning is provided, comprising:
[0006] In response to the received navigation request information submitted by the target object, a plurality of initial navigation paths and path quantity information of sub-paths included in each of the initial navigation paths and path location information of the sub-paths are determined according to the map road network data, wherein the navigation request information includes starting point location information, ending point location information and navigation path strategy information, and the path location information of the sub-paths includes sub-path starting point location information and sub-path ending point location information;
[0007] Acquire the electric police equipment information from the electric police equipment database, wherein the electric police equipment information includes the electric police equipment location information;
[0008] Determining an initial target navigation path according to path quantity information of sub-paths included in each of the initial navigation paths;
[0009] The target navigation path is determined according to the electronic alarm equipment information and the path position information of each sub-path included in the initial target navigation path.
[0010] In some embodiments of the present disclosure, determining the initial target navigation path according to the path quantity information of the sub-paths included in each of the initial navigation paths includes:
[0011] Obtaining path quantity information of sub-paths included in each of the initial navigation paths;
[0012] Determining a first weight value corresponding to each of the initial navigation paths according to path quantity information of sub-paths included in each of the initial navigation paths;
[0013] The first weight values corresponding to the initial navigation paths are sorted in reverse order, and according to the results of the reverse ordering of the first weight values corresponding to the initial navigation paths, the initial navigation paths corresponding to the first weight values of the first target quantity are selected as the initial target navigation paths.
[0014] In some embodiments of the present disclosure, determining the target navigation path according to the electronic police equipment information and the path position information of each sub-path included in the initial target navigation path includes:
[0015] Determine the quantity information of the target electric police devices included in each of the initial target navigation paths according to the relationship between the electric police device location information and the path location information of each sub-path included in the initial target navigation path;
[0016] The target navigation path is determined according to the quantity information of the target electric police equipment included in each of the initial target navigation paths.
[0017] In some embodiments of the present disclosure, determining the quantity information of target electric police devices included in each initial target navigation path according to the relationship between the electric police device location information and the path location information of each sub-path included in the initial target navigation path includes:
[0018] Determine the positional relationship of the electric police device relative to the sub-path according to the positional information of the electric police device and the sub-path starting point positional information and the sub-path ending point positional information of any sub-path included in the initial target navigation path;
[0019] Determine the vertical distance between each of the electric alarm devices and the sub-path according to the positional relationship of each of the electric alarm devices relative to the sub-path;
[0020] Determining the target electric police devices included in each of the initial target navigation paths in sequence according to the vertical distances between each of the electric police devices and each of the sub-paths included in the initial target navigation path;
[0021] According to the target electric police devices included in each of the initial target navigation paths, the quantity information of the target electric police devices included in each of the initial target navigation paths is determined.
[0022] In some embodiments of the present disclosure, determining the target electric police devices included in each of the initial target navigation paths in sequence according to the vertical distances between each of the electric police devices and each of the sub-paths included in the initial target navigation path includes:
[0023] Comparing in sequence the relationship between the vertical distance between each of the electric alarm devices and each of the sub-paths included in the initial target navigation path and the preset vertical distance;
[0024] The electric police device whose vertical distance to each sub-path included in the initial target navigation path is less than or equal to the preset vertical distance is taken as the target electric police device included in the initial target navigation path.
[0025] In some embodiments of the present disclosure, the electronic police equipment information also includes electronic police equipment status information;
[0026] Before sequentially determining the target electronic police devices included in each of the initial target navigation paths, the method includes:
[0027] The electronic police device status information of the electronic police device whose vertical distance from each of the sub-paths included in the initial target navigation path is less than or equal to a preset vertical distance is obtained.
[0028] In some embodiments of the present disclosure, the electronic police equipment information also includes electronic police equipment quantity information;
[0029] Before determining the target navigation path according to the electronic alarm device information and the path location information of each sub-path included in the initial target navigation path, the method further includes:
[0030] Determine the number of electric police devices and the number of threads corresponding to different threads according to the number of electric police devices and the number of threads;
[0031] The step of determining the target navigation path according to the electronic alarm device information and the path location information of each sub-path included in the initial target navigation path includes:
[0032] The target navigation path is determined according to the electric police equipment information corresponding to the electric police equipment included in each thread and the path position information of each sub-path included in the initial target navigation path.
[0033] In a second aspect, according to the content of the present disclosure, there is provided an urban traffic path planning device, comprising:
[0034] A path information determination module, for determining, in response to the received navigation request information submitted by the target object, a plurality of initial navigation paths and path quantity information of sub-paths included in each of the initial navigation paths and path location information of the sub-paths according to the map road network data, wherein the navigation request information includes starting point location information, ending point location information and navigation path strategy information, and the path location information of the sub-paths includes sub-path starting point location information and sub-path ending point location information;
[0035] An electric police equipment information acquisition module, used to acquire electric police equipment information from an electric police equipment database, wherein the electric police equipment information includes the electric police equipment location information;
[0036] An initial target navigation path determination module, used to determine the initial target navigation path according to the path quantity information of the sub-paths included in each of the initial navigation paths;
[0037] The target navigation path determination module is used to determine the target navigation path according to the electronic alarm equipment information and the path position information of each sub-path included in the initial target navigation path.
[0038] In a third aspect, according to the present disclosure, there is provided a computer device, including:
[0039] one or more processors;
[0040] a storage device for storing one or more programs,
[0041] When the one or more programs are executed by the one or more processors, the one or more processors implement any method as described in the first aspect.
[0042] In a fourth aspect, according to the contents of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.
[0043] The urban traffic path planning method, device, equipment and medium provided by the embodiment of the present disclosure first respond to the navigation request information submitted by the received target object, determine multiple initial navigation paths and the path quantity information and path location information of the sub-paths included in each initial navigation path according to the map road network data; and obtain the electric police equipment information from the electric police equipment database; then determine the initial target navigation path according to the path quantity information of the sub-paths included in each initial navigation path; finally determine the target navigation path according to the electric police equipment information and the path location information of each sub-path included in the initial target navigation path. That is, first select multiple initial target navigation paths with a small number of sub-paths from the initial navigation path, and then determine the target navigation path from the initial target navigation path according to the electric police equipment information included in each initial target navigation path, so as to realize the combination of the path planning method and the road electric police equipment, solve the problem that the existing method only constructs the path planning model according to the map road network data, lacks the consideration and utilization of the road electric police equipment, and provides users with a travel path with the best path and the least electric police equipment, thereby improving the travel efficiency of users.
[0044] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly described below. It should be noted that the drawings described below only relate to some embodiments of the present disclosure, but are not intended to limit the present disclosure, wherein:
[0046] Figure 1 It is a flow chart of a method for urban traffic path planning provided by an embodiment of the present disclosure;
[0047] Figure 2 is a schematic diagram of an electric police device and sub-paths provided by an embodiment of the present disclosure;
[0048] Figure 3 is a flow chart of another urban traffic path planning method provided by an embodiment of the present disclosure;
[0049] Figure 4 It is a structural schematic diagram of a device for planning a city traffic path provided by an embodiment of the present disclosure;
[0050] Figure 5 It is a structural diagram of a computer device provided in an embodiment of the present disclosure.
[0051] In the drawings, reference numerals with the same last two digits correspond to the same elements. It should be noted that the elements in the drawings are schematic and not drawn to scale. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work also fall within the scope of protection of the present disclosure.
[0053] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by a person skilled in the art to which the subject matter of the present disclosure belongs. It will be further understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the specification and the relevant art, and will not be interpreted in an idealized or overly formal form unless otherwise explicitly defined herein. As used herein, a statement that two or more parts are "connected" or "coupled" together shall mean that the parts are joined together directly or through one or more intermediate components.
[0054] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase "embodiments" in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0055] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists, A and B exist at the same time, and B exists. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0056] Furthermore, in all embodiments of the present disclosure, terms such as “first” and “second” are used only to distinguish one component (or a part of a component) from another component (or another part of a component).
[0057] In the description of the present application, unless otherwise specified, “plurality” means more than two (including two), and similarly, “plurality groups” means more than two (including two).
[0058] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0059] Based on the problems existing in the prior art, the present disclosure provides a method for urban traffic path planning. Figure 1 is a flow chart of the urban traffic path planning method provided by the embodiment of the present disclosure, such as Figure 1 As shown in FIG. 1 , the urban traffic path planning method includes:
[0060] S110 , in response to the received navigation request information submitted by the target object, determine a plurality of initial navigation paths and path quantity information and path location information of sub-paths included in each initial navigation path according to the map road network data.
[0061] The navigation request information includes the starting point location information, the ending point location information and the navigation path strategy information, and the path location information of the sub-path includes the sub-path starting point location information and the sub-path ending point location information.
[0062] In a specific implementation, the target object may submit navigation request information, and the terminal device obtains the navigation starting point location information, the navigation ending point location information and the navigation path strategy information from the navigation request information by obtaining the navigation request information submitted by the target object. The navigation path strategy information may be exemplarily a speed priority strategy, a distance priority strategy, a national highway priority strategy, a provincial highway priority strategy or any combination of strategies. Then, according to the navigation request information, multiple initial navigation paths that meet the navigation request information are screened out from the map road network data, and the path quantity information of the sub-paths included in each initial navigation path and the path location information of each sub-path are obtained, wherein the path names corresponding to different sub-paths in the initial navigation path are different, and the path quantity information of the sub-paths included in each initial navigation path can be determined according to the path names included in each initial navigation path. In addition, a sub-path can be represented by a line segment, and the sub-path starting point location information and the sub-path ending point location information of the sub-paths included in each initial navigation path are determined by obtaining the starting point and the ending point of the line segment corresponding to each sub-path from the map road network data.
[0063] As a specific embodiment, the sub-path starting point location information includes the starting point longitude and the starting point latitude, and the sub-path ending point location information includes the ending point longitude and the ending point latitude.
[0064] S120, obtaining electric police equipment information from an electric police equipment database.
[0065] Among them, the electronic police equipment information includes the electronic police equipment location information.
[0066] Electronic police equipment usually refers to electronic equipment systems used for traffic monitoring and violation capture.
[0067] In addition, the urban traffic path planning method provided by the embodiment of the present disclosure can obtain the information of the electric police equipment by networking with the database in the road monitoring center.
[0068] Among them, one electric police equipment tag corresponds to one electric police equipment, and the location information of the electric police equipment includes the longitude and latitude of the electric police equipment.
[0069] S130: Determine an initial target navigation path according to the path quantity information of the sub-paths included in each initial navigation path.
[0070] In a specific implementation, the initial target navigation path is determined based on the path quantity information of the sub-paths included in each initial navigation path, including: obtaining the path quantity information of the sub-paths included in each initial navigation path; determining the first weight value corresponding to each initial navigation path based on the path quantity information of the sub-paths included in each initial navigation path; sorting the first weight values corresponding to each initial navigation path in reverse order, and based on the results of the reverse ordering of the first weight values corresponding to each initial navigation path, selecting the initial navigation path corresponding to the first weight value of the previous target quantity as the initial target navigation path.
[0071] After obtaining the path quantity information of the sub-paths included in each initial navigation path, first assign a weight value to each initial navigation path according to the path quantity information of the sub-paths included in each initial navigation path, and then sort the first weight values corresponding to each initial navigation path in reverse order; and based on the results of the reverse ordering of the first weight values corresponding to each initial navigation path, select the initial navigation path corresponding to the first weight value of the previous target quantity as the initial target navigation path.
[0072] Exemplarily, when the initial navigation paths obtained include 10, the path number information of the sub-paths included in the first initial navigation path is 3, the path number information of the sub-paths included in the second initial navigation path is 3, the path number information of the sub-paths included in the third initial navigation path is 3, the path number information of the sub-paths included in the fourth initial navigation path is 5, the path number information of the sub-paths included in the fifth initial navigation path is 6, the path number information of the sub-paths included in the sixth initial navigation path is 6, the path number information of the sub-paths included in the seventh initial navigation path is 6, the path number information of the sub-paths included in the eighth initial navigation path is 7, and the path number information of the sub-paths included in the ninth initial navigation path is 7, the number of sub-paths included in the tenth initial navigation path is 8, then the first weight value corresponding to the first initial navigation path is 0.3, the first weight value corresponding to the second initial navigation path is 0.3, the first weight value corresponding to the third initial navigation path is 0.3, the first weight value corresponding to the fourth initial navigation path is 0.5, the first weight value corresponding to the fifth initial navigation path is 0.6, the first weight value corresponding to the sixth initial navigation path is 0.6, the first weight value corresponding to the seventh initial navigation path is 0.6, the first weight value corresponding to the eighth initial navigation path is 0.7, the first weight value corresponding to the ninth initial navigation path is 7, and the first weight value corresponding to the tenth initial navigation path is 0.8. That is, the first weight value Z corresponding to each initial navigation path satisfies:
[0073] Wherein, Z is a first weight value corresponding to any initial navigation path, X is the number of determined initial navigation paths, and Y is path number information of sub-paths included in any initial navigation path.
[0074] It should be noted that the number of determined initial target navigation paths is smaller than the number of initial navigation paths, and then the target navigation paths are determined from the initial target navigation paths, thereby improving the efficiency of determining the target navigation paths.
[0075] S150, determining a target navigation path according to the electric police equipment information and the path location information of each sub-path included in the initial target navigation path.
[0076] In a specific implementation, the target navigation path is determined based on the electric police equipment information and the path position information of each sub-path included in the initial target navigation path, including: determining the number information of target electric police equipment included in each initial target navigation path based on the relationship between the electric police equipment position information and the path position information of each sub-path included in the initial target navigation path; determining the target navigation path based on the number information of target electric police equipment included in each initial target navigation path.
[0077] Specifically, after determining each initial target navigation path, the target navigation path is determined by determining the number information of the target electric police equipment included on each initial target navigation path. That is, by determining the number information of the target electric police equipment included on each initial target navigation path in turn, the initial target navigation path with the least number information of the target electric police equipment is selected as the target navigation path.
[0078] In a specific implementation, the number information of target electric police devices included in each initial target navigation path is determined based on the relationship between the position information of the electric police device and the path position information of each sub-path included in the initial target navigation path, including: determining the position relationship of the electric police device relative to the sub-path based on the position information of the electric police device and the sub-path starting point position information and the sub-path ending point position information of any sub-path included in the initial target navigation path; determining the vertical distance between each electric police device and the sub-path based on the position relationship of each electric police device relative to the sub-path; determining the target electric police devices included in each initial target navigation path in turn based on the vertical distance between each electric police device and each sub-path included in the initial target navigation path; determining the number information of the target electric police devices included in each initial target navigation path based on the target electric police devices included in each initial target navigation path.
[0079] Among them, according to the vertical distance between each electric police device and each sub-path included in the initial target navigation path, the target electric police devices included in each initial target navigation path are determined in turn, including: comparing the relationship between the vertical distance between each electric police device and each sub-path included in the initial target navigation path and the preset vertical distance in turn; and taking the electric police devices whose vertical distances with each sub-path included in the initial target navigation path are less than or equal to the preset vertical distance as the target electric police devices included in the initial target navigation path.
[0080] Specifically, first, the path location information of the sub-paths included in each initial target navigation path can be determined based on the path location information of the sub-paths included in each initial navigation path obtained in step S110, and then the electric police equipment location information corresponding to each electric police equipment is obtained in step S120. The path location information of the sub-paths included in each initial target navigation path and the electric police equipment location information corresponding to each electric police equipment are both expressed in longitude and latitude.
[0081] In an exemplary embodiment, the initial target navigation path includes a first initial target navigation path, a second initial target navigation path and a third initial target navigation path, the first initial target navigation path includes a first sub-path, a second sub-path and a third sub-path, the second initial target navigation path includes a first sub-path, a fourth path and a fifth sub-path, and the third initial target navigation path includes a first sub-path, a second sub-path and a sixth sub-path. The following embodiments are illustrated by taking the first initial target navigation path as an example.
[0082] The first initial target navigation path includes the first sub-path whose starting point is point A and whose ending point is point B, the second sub-path whose starting point is point B and whose ending point is point C, the third sub-path whose starting point is point C and whose ending point is point D, the location information of point A is (LonA, LatA), the location information of point B is (LonB, LatB), the location information of point C is (LonC, LatC), the location information of point D is (LonD, LatD), the location information of the electric police equipment P1 is (LonP1, LatP1), the location information of the electric police equipment P2 is (LonP2, LatP2), ..., the location information of the electric police equipment Pn is (LonPn, LatPn).
[0083] First, by comparing the position information of the electric alarm device P1 with the relationship between the starting point A and the ending point B of the first sub-path, the position relationship of the electric alarm device P1 relative to the sub-path can be determined.
[0084] Specifically, when the angle between the electric police equipment P1 and the starting point A and the ending point B satisfies that the angle between AP1 and BP1 is an obtuse angle, such as Figure 2 As shown in 2A, according to Heron's formula, the vertical distance D from the electric alarm device P1 to the first sub-path AB satisfies:
[0085]
[0086] in, , , p is half the perimeter of triangle PAB.
[0087] Specifically, when the angle between the electric police equipment P1 and the starting point A and the ending point B satisfies that the angle between AP1 and AB is an obtuse angle, such as Figure 2 As shown in 2B, or the angle between the electric alarm equipment P1 and the starting point A and the ending point B satisfies that BP1 and BA are obtuse angles, such as Figure 2 As shown in 2C, the vertical distance D from the electric alarm device P1 to the first sub-path AB satisfies:
[0088]
[0089] Among them, a=LatA-LatP is the difference in latitude between the starting point A and the ending point B, b=LonA-LonP is the difference in longitude between the starting point A and the ending point B, and 6378.137 is the equatorial radius of the earth in kilometers.
[0090] After determining the vertical distance between the electric alarm device P1 and the first sub-path, determine whether the electric alarm device P1 is the electric alarm device of the first sub-path in the first initial target navigation path by judging the relationship between the vertical distance between the electric alarm device P1 and the first sub-path and the preset vertical distance. If the vertical distance between the electric alarm device P1 and the first sub-path is less than or equal to the preset vertical distance, the electric alarm device P1 is the electric alarm device of the first sub-path in the first initial target navigation path. If the vertical distance between the electric alarm device P1 and the first sub-path is greater than the preset vertical distance, the electric alarm device P1 does not belong to the electric alarm device of the first sub-path in the first initial target navigation path. Similarly, determine whether the electric alarm device P1 is the electric alarm device of the second sub-path in the first initial target navigation path and the electric alarm device of the third sub-path in the first initial target navigation path in turn, and then determine whether the electric alarm device P1 is the electric alarm device on the first initial target navigation path.
[0091] After determining the electric police device P1, by comparing the vertical distance between the electric police device P2 and the first sub-path, the vertical distance between the second sub-path and the third sub-path, it is determined whether the electric police device P2 is the electric police device on the first initial navigation path. Similarly, by comparing the vertical distance between the electric police device Pn and the first sub-path, the vertical distance between the second sub-path and the third sub-path, it is determined whether the electric police device Pn is the electric police device on the first initial target navigation path.
[0092] After the electric police equipment included in the first initial target navigation path is determined, the electric police equipment included in the second initial target navigation path and the electric police equipment included in the third initial target navigation path are determined according to the method for determining the electric police equipment included in the first initial target navigation path.
[0093] After determining the electronic police equipment included in the first initial target navigation path, the electronic police equipment included in the second initial target navigation path, and the electronic police equipment included in the third initial target navigation path in turn, the quantity information of the electronic police equipment included in the first initial target navigation path, the quantity information of the electronic police equipment included in the second initial target navigation path, and the quantity information of the electronic police equipment included in the third initial target navigation path can be determined. By comparing the quantity information of the electronic police equipment included in the first initial target navigation path, the quantity information of the electronic police equipment included in the second initial target navigation path, and the quantity information of the electronic police equipment included in the third initial target navigation path, the initial target navigation path with the least quantity information of the electronic police equipment is selected as the target navigation path.
[0094] As a preferred implementation, the status information of the electric police equipment is obtained for the electric police equipment whose vertical distance to each sub-path included in the initial target navigation path is less than or equal to the preset vertical distance, the electric police equipment included in each initial target navigation path is screened, and the electric police equipment whose status information is in the off state is removed from the initial target navigation path to ensure the accuracy of the target electric police equipment included in the final determined initial target navigation path.
[0095] The urban traffic path planning method provided by the embodiment of the present disclosure first responds to the navigation request information submitted by the received target object, determines multiple initial navigation paths and the path quantity information and path location information of the sub-paths included in each initial navigation path according to the map road network data; and obtains the electric police equipment information from the electric police equipment database; then determines the initial target navigation path according to the path quantity information of the sub-paths included in each initial navigation path; and finally determines the target navigation path according to the electric police equipment information and the path location information of each sub-path included in the initial target navigation path. That is, firstly select multiple initial target navigation paths with a small number of sub-paths from the initial navigation path, and then determine the target navigation path from the initial target navigation path according to the electric police equipment information included in each initial target navigation path, so as to realize the combination of the path planning method and the road electric police equipment, solve the problem that the existing method only constructs the path planning model according to the map road network data, lacks the consideration and utilization of the road electric police equipment, and provides users with a travel path with the best path and the least electric police equipment, thereby improving the travel efficiency of users.
[0096] Based on the above embodiments, Figure 3 Another urban traffic path planning method provided by the embodiment of the present disclosure is as follows: Figure 3 As shown, before executing step S150, the process further includes:
[0097] S140. Determine the number of electric police devices and the electric police devices corresponding to different threads according to the number of electric police devices and the number of threads.
[0098] At this time, the specific implementation process of step S150 is:
[0099] S151, determining a target navigation path according to the electric police equipment information corresponding to the electric police equipment included in each thread and the path position information of each sub-path included in the initial target navigation path.
[0100] In a specific implementation, the number of acquired electric police devices is very large. By setting the number of threads, the electric police devices are divided based on the number of threads. For example, if the number of electric police devices is 40,000 and the number of threads is set to 20, the number of electric police devices processed by one thread is 2,000. When comparing the vertical distance between each electric police device and each sub-path included in the initial target navigation path with the relationship between the preset vertical distance, multiple threads are executed simultaneously to improve the efficiency of determining the target electric police devices included in the initial target navigation path.
[0101] The urban traffic path planning method provided by the embodiment of the present disclosure divides the electric police equipment into different threads respectively. When comparing the vertical distance between each electric police equipment and each sub-path included in the initial target navigation path with the relationship between the preset vertical distance, multiple threads are performed simultaneously, thereby improving the efficiency of determining the target electric police equipment included in the initial target navigation path.
[0102] Based on the above embodiments, the present disclosure also provides a device for planning urban traffic paths. Figure 4 is a schematic diagram of the structure of the urban traffic path planning device provided by the embodiment of the present disclosure, such as Figure 4 As shown, the urban traffic path planning device includes:
[0103] The path information determination module 410 is used to determine, in response to the received navigation request information submitted by the target object, a plurality of initial navigation paths and the path quantity information of the sub-paths included in each initial navigation path and the path position information of the sub-paths according to the map road network data, wherein the navigation request information includes the starting point position information, the ending point position information and the navigation path strategy information, and the path position information of the sub-path includes the sub-path starting point position information and the sub-path ending point position information;
[0104] The electric police equipment information acquisition module 420 is used to acquire the electric police equipment information from the electric police equipment database, wherein the electric police equipment information includes the electric police equipment location information;
[0105] The initial target navigation path determining module 430 is used to determine the initial target navigation path according to the path quantity information of the sub-paths included in each initial navigation path;
[0106] The target navigation path determination module 440 is used to determine the target navigation path according to the electronic alarm equipment information and the path position information of each sub-path included in the initial target navigation path.
[0107] The urban traffic path planning device provided by the embodiment of the present disclosure comprises: first, the path information determination module responds to the navigation request information submitted by the received target object, determines multiple initial navigation paths and the path quantity information and path location information of the sub-paths included in each initial navigation path according to the map road network data; and the electric police equipment information acquisition module acquires the electric police equipment information from the electric police equipment database; then the initial target navigation path determination module determines the initial target navigation path according to the path quantity information of the sub-paths included in each initial navigation path; and finally, the target navigation path determination module determines the target navigation path according to the electric police equipment information and the path location information of each sub-path included in the initial target navigation path. That is, first, multiple initial target navigation paths with a small number of sub-paths are selected from the initial navigation path, and then the target navigation path is determined from the initial target navigation path according to the electric police equipment information included in each initial target navigation path, so as to realize the combination of the path planning method and the road electric police equipment, solve the problem that the existing method only constructs the path planning model according to the map road network data, lacks the consideration and utilization of the road electric police equipment, and provides users with a travel path with the best path and the least electric police equipment, thereby improving the travel efficiency of users.
[0108] In a specific implementation, the initial target navigation path determination module includes: a path quantity information acquisition unit, a first weight value determination unit and an initial target navigation path determination unit;
[0109] A path quantity information acquisition unit, used to acquire path quantity information of sub-paths included in each initial navigation path;
[0110] A first weight value determining unit, configured to determine a first weight value corresponding to each initial navigation path according to path quantity information of sub-paths included in each initial navigation path;
[0111] The initial target navigation path determination unit is used to sort the first weight values corresponding to each initial navigation path in reverse order, and select the initial navigation path corresponding to the first weight value of the previous target quantity as the initial target navigation path according to the reverse order result of the first weight values corresponding to each initial navigation path.
[0112] In a specific implementation, the target navigation path determination module includes: an electric police equipment quantity information determination unit and a target navigation path determination unit;
[0113] An electric police equipment quantity information determination unit, used to determine the quantity information of target electric police equipment included in each initial target navigation path according to the relationship between the electric police equipment position information and the path position information of each sub-path included in the initial target navigation path;
[0114] The target navigation path determination unit is used to determine the target navigation path according to the quantity information of the target electric alarm devices included in each initial target navigation path.
[0115] In a specific implementation, the specific implementation process of the electronic police equipment quantity information determination unit includes:
[0116] Determine the position relationship of the electric police device relative to the sub-path according to the position information of the electric police device and the sub-path starting point position information and the sub-path ending point position information of any sub-path included in the initial target navigation path;
[0117] According to the positional relationship of each electric police device relative to the sub-path, determine the vertical distance between each electric police device and the sub-path;
[0118] According to the vertical distance between each electric police device and each sub-path included in the initial target navigation path, the target electric police device included in each initial target navigation path is determined in sequence;
[0119] According to the target electric police devices included in each initial target navigation path, the quantity information of the target electric police devices included in each initial target navigation path is determined.
[0120] In a specific implementation, the target electric police devices included in each initial target navigation path are determined in sequence according to the vertical distance between each electric police device and each sub-path included in the initial target navigation path, including:
[0121] Compare in sequence the relationship between the vertical distance between each electric police device and each sub-path included in the initial target navigation path and the preset vertical distance;
[0122] The electric police equipment whose vertical distance to each sub-path included in the initial target navigation path is less than or equal to the preset vertical distance is taken as the target electric police equipment included in the initial target navigation path.
[0123] In a specific implementation manner, before sequentially determining the target electronic police equipment included in each initial target navigation path, the method further includes:
[0124] The electronic police device status information of the electronic police device whose vertical distance from each sub-path included in the initial target navigation path is less than or equal to the preset vertical distance is obtained.
[0125] In a specific implementation, the urban traffic path planning device further includes: an electric police equipment thread division module;
[0126] The electric police equipment thread division module is used to determine the target navigation path according to the electric police equipment information corresponding to the electric police equipment included in each thread and the path position information of each sub-path included in the initial target navigation path.
[0127] The present application also provides a computer device. Figure 5 , Figure 5 This is a basic structural block diagram of the computer device in this embodiment.
[0128] The computer device includes a memory 510 and a processor 520 that are connected to each other through a system bus. It should be noted that the figure only shows a computer device with components 510-520, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA), digital signal processors (Digital Signal Processor, DSP), embedded devices, etc.
[0129] Computer devices can be computing devices such as desktop computers, notebooks, PDAs, and cloud servers. Computer devices can interact with users through keyboards, mice, remote controls, touch pads, or voice control devices.
[0130] The memory 510 includes at least one type of readable storage medium, and the readable storage medium includes a non-volatile memory or a volatile memory, such as a flash memory, a hard disk, a multimedia card, a card-type memory (such as an SD or DX memory, etc.), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc., and the RAM may include a static RAM or a dynamic RAM. In some embodiments, the memory 510 may be an internal storage unit of a computer device, such as a hard disk or a memory of the computer device. In other embodiments, the memory 510 may also be an external storage device of a computer device, such as a plug-in hard disk, a smart memory card (SMC), a secure digital (SD) card, or a flash card (Flash Card), etc., equipped on the computer device. Of course, the memory 510 may also include both an internal storage unit of the computer device and an external storage device thereof. In this embodiment, the memory 510 is generally used to store an operating system and various application software installed on the computer device, such as the program code of the above method, etc. In addition, the memory 510 may also be used to temporarily store various data that have been output or are to be output.
[0131] The processor 520 is generally used to perform the overall operation of the computer device. In this embodiment, the memory 510 is used to store program codes or instructions, the program code includes computer operation instructions, and the processor 520 is used to execute the program codes or instructions stored in the memory 510 or process data, such as running the program code of the above method.
[0132] In this article, the bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus system can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0133] Another embodiment of the present application also provides a computer-readable medium, which may be a computer-readable signal medium or a computer-readable medium. A processor in a computer reads a computer-readable program code stored in the computer-readable medium, so that the processor can execute the functional actions specified in each step or a combination of steps in the above method; and generate a device for implementing the functional actions specified in each block or a combination of blocks in the block diagram.
[0134] Computer-readable media include but are not limited to electronic, magnetic, optical, electromagnetic, infrared memory or semiconductor systems, devices or apparatuses, or any appropriate combination of the foregoing, the memory is used to store program codes or instructions, the program codes include computer operating instructions, and the processor is used to execute the program codes or instructions of the above methods stored in the memory.
[0135] For the definitions of memory and processor, please refer to the description of the aforementioned computer device embodiment and will not be repeated here.
[0136] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0137] Each functional unit or module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0138] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., and other media that can store program codes.
[0139] Unless the context clearly indicates otherwise, the singular form of the words used herein and in the appended claims includes the plural and vice versa. Thus, when referring to the singular, the plural form of the corresponding term is generally included. Similarly, the words "comprise" and "include" are to be interpreted as inclusive rather than exclusive. Likewise, the terms "include" and "or" should be interpreted as inclusive unless such interpretation is expressly prohibited herein. Where the term "example" is used herein, particularly when it is located after a group of terms, the "example" is merely exemplary and illustrative and should not be considered exclusive or comprehensive.
[0140] Further aspects and scopes of adaptability become apparent from the description provided herein. It should be understood that various aspects of the present application can be implemented individually or in combination with one or more other aspects. It should also be understood that the description and specific embodiments herein are intended for purposes of illustration only and are not intended to limit the scope of the present application.
[0141] Several embodiments of the present disclosure are described in detail above, but it is obvious that those skilled in the art can make various modifications and variations to the embodiments of the present disclosure without departing from the spirit and scope of the present disclosure. The protection scope of the present disclosure is defined by the attached claims.
Claims
1. A method for urban traffic path planning, characterized in that: include: In response to the received navigation request information submitted by the target object, a plurality of initial navigation paths and path quantity information of sub-paths included in each of the initial navigation paths and path location information of the sub-paths are determined according to the map road network data, wherein the navigation request information includes starting point location information, ending point location information and navigation path strategy information, and the path location information of the sub-paths includes sub-path starting point location information and sub-path ending point location information; Acquire the electric police equipment information from the electric police equipment database, wherein the electric police equipment information includes the electric police equipment location information; Determining an initial target navigation path according to path quantity information of sub-paths included in each of the initial navigation paths; Determine the target navigation path according to the electronic alarm equipment information and the path position information of each sub-path included in the initial target navigation path; Wherein, determining the target navigation path according to the electronic police equipment information and the path position information of each sub-path included in the initial target navigation path includes: Determine the quantity information of the target electric police devices included in each of the initial target navigation paths according to the relationship between the electric police device location information and the path location information of each sub-path included in the initial target navigation path; Determining a target navigation path according to the quantity information of the target electronic alarm devices included in each of the initial target navigation paths; The determining the initial target navigation path according to the path quantity information of the sub-paths included in each of the initial navigation paths includes: Obtaining path quantity information of sub-paths included in each of the initial navigation paths; Determining a first weight value corresponding to each of the initial navigation paths according to path quantity information of sub-paths included in each of the initial navigation paths; The first weight values corresponding to the initial navigation paths are sorted in reverse order, and according to the results of the reverse order of the first weight values corresponding to the initial navigation paths, the initial navigation paths corresponding to the first weight values of the previous target quantity are selected as the initial target navigation paths; The determining, based on the relationship between the electric police equipment location information and the path location information of each sub-path included in the initial target navigation path, the quantity information of the target electric police equipment included in each of the initial target navigation paths includes: Determine the positional relationship of the electric police device relative to the sub-path according to the positional information of the electric police device and the sub-path starting point positional information and the sub-path ending point positional information of any sub-path included in the initial target navigation path; Determine the vertical distance between each of the electric alarm devices and the sub-path according to the positional relationship of each of the electric alarm devices relative to the sub-path; Determining the target electric police devices included in each of the initial target navigation paths in sequence according to the vertical distances between each of the electric police devices and each of the sub-paths included in the initial target navigation path; According to the target electric police devices included in each of the initial target navigation paths, the quantity information of the target electric police devices included in each of the initial target navigation paths is determined.
2. The method according to claim 1, characterized in that The step of sequentially determining the target electric police devices included in each of the initial target navigation paths according to the vertical distances between each of the electric police devices and each of the sub-paths included in the initial target navigation path comprises: Comparing in sequence the relationship between the vertical distance between each of the electric alarm devices and each of the sub-paths included in the initial target navigation path and the preset vertical distance; The electric police device whose vertical distance to each sub-path included in the initial target navigation path is less than or equal to the preset vertical distance is taken as the target electric police device included in the initial target navigation path.
3. The method according to claim 1, characterized in that The electric police equipment information also includes electric police equipment status information; Before sequentially determining the target electronic police devices included in each of the initial target navigation paths, the method includes: The electronic police device status information of the electronic police device whose vertical distance from each of the sub-paths included in the initial target navigation path is less than or equal to a preset vertical distance is obtained.
4. The method according to claim 1, characterized in that: The electronic police equipment information also includes the quantity information of the electronic police equipment; Before determining the target navigation path according to the electronic alarm device information and the path location information of each sub-path included in the initial target navigation path, the method further includes: Determine the number of electric police devices and the number of threads corresponding to different threads according to the number of electric police devices and the number of threads; The step of determining the target navigation path according to the electronic alarm device information and the path location information of each sub-path included in the initial target navigation path includes: The target navigation path is determined according to the electric police equipment information corresponding to the electric police equipment included in each thread and the path position information of each sub-path included in the initial target navigation path.
5. A computer device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
