High-speed drainage method, high-speed drainage device, electronic equipment and storage medium
By acquiring and grouping route data, traffic diversion routes are generated, which solves the congestion problem of low-speed road sections caused by long-distance trucks avoiding high-speed sections, enables trucks to safely enter high-speed sections, and reduces traffic safety risks.
Patent Information
- Application Number
- CN202310227538.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-09-10
AI Technical Summary
Long-distance trucks avoid high-speed sections, causing traffic congestion on low-speed sections and increasing traffic safety risks.
By obtaining the route data of the target province and neighboring provinces, grouping and generating diversion routes to ensure that trucks can safely drive into high-speed sections and avoid congestion on low-speed sections.
Effectively guide trucks into high-speed sections and reduce traffic congestion and safety risks in low-speed sections.
Smart Images

Figure CN118629236A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of intelligent transportation technology, and in particular relates to a high-speed diversion method, a high-speed diversion device, an electronic device and a storage medium. Background Art
[0002] With the development and prosperity of the market economy, the logistics cost of freight transportation has accounted for an increasingly higher proportion in the overall economic operation. In order to save road and bridge fees, long-distance truck drivers often avoid driving on toll highways and choose to drive on free low-speed roads instead.
[0003] However, when a large number of long-distance trucks pour into a low-speed road section in a certain place, it is easy to cause traffic congestion on the local low-speed road section, leading to increased local traffic safety risks. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a high-speed drainage method, a high-speed drainage device, an electronic device and a storage medium to overcome or at least partially solve the above problems of the prior art.
[0005] In a first aspect, an embodiment of the present application provides a high-speed diversion method, including: obtaining a target province route corresponding to the target province and a neighboring province route corresponding to the neighboring province, the target province being adjacent to the neighboring province; grouping the target province route and the neighboring province route to obtain corresponding multiple route groups, the multiple route starting points corresponding to each route group belong to the same starting point position range, and the multiple route end points corresponding to each route group belong to the same end point position range; receiving a planning request, the planning request carries a target route starting point and a target route end point, the target route starting point and the target route end point are included in the target route group, and the connecting route between the target route starting point and the target route end point passes through at least the target province; in response to the planning request, generating a corresponding diversion route, the diversion route includes the target province high-speed section corresponding to the target province.
[0006] In the second aspect, the embodiment of the present application provides a high-speed drainage device, including a route acquisition module, a grouping module, a receiving module and a response module. The route acquisition module is used to obtain the target province route corresponding to the target province and the neighboring province route corresponding to the neighboring province, and the target province is adjacent to the neighboring province; the grouping module is used to group the target province route and the neighboring province route to obtain a corresponding plurality of route groups, and the plurality of route starting points corresponding to each route group belong to the same starting point position range, and the plurality of route end points corresponding to each route group belong to the same end point position range; the receiving module is used to receive a planning request, and the planning request carries the target route starting point and the target route end point, and the target route starting point and the target route end point are included in the target route group, and the connecting route of the target route starting point and the target route end point passes through at least the target province; the response module is used to respond to the planning request and generate a corresponding drainage route, and the drainage route includes the target province high-speed route corresponding to the target province.
[0007] In a third aspect, an embodiment of the present application provides an electronic device comprising a memory; one or more processors coupled to the memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the high-speed drainage method provided in the first aspect above.
[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the high-speed drainage method provided in the first aspect above.
[0009] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a computer device, it enables the computer device to execute the high-speed drainage method provided in the first aspect above.
[0010] The solution provided in the present application obtains the target province route corresponding to the target province and the neighboring province route corresponding to the neighboring province, the target province is adjacent to the neighboring province, and the target province route and the neighboring province route are grouped to obtain corresponding multiple route groups, the multiple route starting points corresponding to each route group belong to the same starting point position range, and the multiple route end points corresponding to each route group belong to the same end point position range, and receives a planning request, the planning request carries the target route starting point and the target route end point, the target route starting point and the target route end point are included in the target route group, and the connecting route of the target route starting point and the target route end point passes through at least the target province, and responds to the planning request to generate a corresponding diversion route, the diversion route includes the target province expressway section corresponding to the target province, and realizes the generation of a diversion route including the target province expressway section corresponding to the target province according to the planning request, which is conducive to guiding trucks passing through the target province to enter the target province expressway section, avoiding a large number of trucks from pouring into the target province low-speed section, and reducing the traffic safety risk of the target province. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0012] Figure 1 A schematic diagram of a scenario of a high-speed drainage system provided in an embodiment of the present application is shown.
[0013] Figure 2 A schematic flow chart of a high-speed drainage method provided in an embodiment of the present application is shown.
[0014] Figure 3 Another schematic flow chart of the high-speed drainage method provided in an embodiment of the present application is shown.
[0015] Figure 4 A structural block diagram of a high-speed drainage device provided in an embodiment of the present application is shown.
[0016] Figure 5 A functional block diagram of an electronic device provided in an embodiment of the present application is shown.
[0017] Figure 6 A computer-readable storage medium provided in an embodiment of the present application for storing or carrying program code for implementing the high-speed drainage method provided in an embodiment of the present application is shown.
[0018] Figure 7A computer program product provided in an embodiment of the present application and used for storing or carrying program codes for implementing the high-speed drainage method provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0019] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0020] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0021] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0022] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0023] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0024] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0025] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0026] See also Figure 1, which shows a schematic diagram of an application scenario of the high-speed drainage system provided in an embodiment of the present application, which may include a client 100 and a server 200. The client 100 is connected to the server 200 via a network and exchanges data with the server 200 via the network.
[0027] Among them, the client 100 can be a mobile client (for example, a mobile phone, a personal digital assistant (PDA), a tablet computer (Tablet Personal Computer, Tablet PC), a laptop computer, a smart watch, a smart bracelet, etc.) and a fixed client (for example, a desktop computer, a smart panel, etc.). The type of the client 100 is not limited here and can be set according to actual needs.
[0028] Server 200 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), big data, and artificial intelligence platforms.
[0029] The network may be any one of a ZigBee network, a Bluetooth (BT) network, a Wireless Fidelity (Wi-Fi) network, a Thread network, a Long Range Radio (LoRa) network, a Low-Power Wide-Area Network (LPWAN), an infrared network, a Narrow Band Internet of Things (NB-IoT), a Controller Area Network (CAN), a Digital Living Network Alliance (DLNA) network, a Wide Area Network (WAN), a Local Area Network (LAN), a Metropolitan Area Network (MAN), or a Wireless Personal Area Network (WPAN), etc., without limitation here.
[0030] See also Figure 2, which shows a flow chart of a high-speed drainage method provided by an embodiment of the present application. In a specific embodiment, the high-speed drainage method can be applied to Figure 1 The client 100 in the high-speed traffic diversion system shown in FIG. 1 is taken as an example below. Figure 2 The process shown is described in detail, and the high-speed drainage method may include the following steps S110 to S140.
[0031] Step S110: Obtain the target province route corresponding to the target province and the neighboring province route corresponding to the neighboring province.
[0032] In an embodiment of the present application, the server pre-stores route data of provincial routes of trucks passing through various provinces across the country. When a user needs to divert traffic to the expressway section of a target province, the user can send the target province information to the client. The client receives and responds to the target province information, and sends a first acquisition instruction carrying the target province information to the server via the network. The server receives and responds to the first acquisition instruction, and sends the target province route data of the corresponding target province route and the neighboring province route data of the neighboring province route to the client via the network. The client receives the target province route data and the neighboring province route data returned by the server.
[0033] Among them, the target province route is the driving route of the truck in the target province, the neighboring province route is the driving route of the truck in the neighboring province, the target province is adjacent to the neighboring province, and the route data may include route number (routeid), route time, route frequency, section of the route (link, for example, high-speed link and low-speed link, etc.), the province code (adcode) of each link, and link shape, etc.
[0034] The target province route may include the target province high-speed route and the target province low-speed route. The target province route data may include the target province routeid, the target province route time, the target province route frequency, the link passed by the target province route (for example, the target province high-speed link and the target province low-speed link, etc.), the target province adcode and the target province link shape, etc.
[0035] Neighboring province routes may include neighboring province high-speed routes and neighboring province low-speed routes. Neighboring province route data may include neighboring province routeid, neighboring province route time, neighboring province route frequency, links passed by the neighboring province route (for example, neighboring province high-speed links and neighboring province low-speed links, etc.), neighboring province adcode, and neighboring province link shape, etc.
[0036] In some embodiments, the client may include an input panel, which can be used to receive target province information input by a user. For example, the input panel can be used to receive target province information input by a user using keystrokes, or the input panel can be used to receive target province information input by a user using handwriting, etc., which is not limited here.
[0037] When the user needs to divert traffic to the expressway section of the target province, the user can input the corresponding target province information in the input panel, and the client receives the target province information input by the user through the input panel.
[0038] In some embodiments, the client may include a voice collection module. When a user needs to divert traffic to a highway section in a target province, the user can send voice information carrying the target province information to the voice collection module within the collection range of the voice collection module. The client receives the voice information through the voice collection module, performs voice recognition on the voice information, and obtains the corresponding target province information.
[0039] Step S120: Group the target province routes and the neighboring province routes to obtain corresponding multiple route groups.
[0040] In an embodiment of the present application, after obtaining the target province route corresponding to the target province and the neighboring province route corresponding to the neighboring province, the client can group the target province route and the neighboring province route to obtain multiple corresponding route groups. Among them, the multiple route starting points corresponding to each route group belong to the same starting point position range, and the multiple route end points corresponding to each route group belong to the same end point position range.
[0041] Specifically, after obtaining the target province route corresponding to the target province and the neighboring province route corresponding to the neighboring province, the client can obtain the route starting point coordinates and route ending point coordinates of each initial route in the target province route and the neighboring province route, and divide the initial routes whose route starting point coordinates belong to the same starting point position range and whose route ending point coordinates belong to the same ending point position range into a group to obtain corresponding multiple route groups.
[0042] In some embodiments, the starting coordinates of the route may be the longitude and latitude coordinates of the starting point of the route, and the ending coordinates of the route may be the longitude and latitude coordinates of the ending point of the route. After obtaining the target province route corresponding to the target province and the neighboring province route corresponding to the neighboring province, the client may obtain the starting longitude and latitude coordinates of the route and the ending longitude and latitude coordinates of each initial route in the target province route and the neighboring province route, and intercept the coordinate string of the starting longitude and latitude coordinates of the route and the ending longitude and latitude coordinates of each initial route according to a preset rule to obtain the corresponding starting coordinate string and ending coordinate string, and generate the route group name corresponding to the initial route according to the starting coordinate string and the ending coordinate string, and divide the initial routes with the same route group name into one group to obtain corresponding multiple route groups.
[0043] Among them, the preset rules can be used to characterize the string truncation rules for truncating the length of the string of longitude and latitude coordinates. For example, the actual distance corresponding to the two decimal places of the longitude and latitude coordinates is about 10 kilometers (km). The preset rules can be to truncate the length of the longitude and latitude coordinates to the two decimal places of the longitude and latitude coordinates, which can ensure that the starting positions of any two routes in the same route group after grouping are close, thereby improving the grouping credibility of the route grouping.
[0044] The preset rule can also be to cut off the length of the longitude and latitude coordinates to three decimal places. The preset rule can also be to cut off the length of the longitude and latitude coordinates to one decimal place, etc. The type of preset rules is not limited here and can be set according to actual needs.
[0045] The preset rules may be string interception rules pre-set by the user, or may be string interception rules automatically generated by the client based on a grouping process of grouping target province routes and neighboring province routes multiple times, and are not limited here.
[0046] In an application scenario, the preset rule is to cut off the length of the longitude and latitude coordinates to two decimal places. The target province route and the neighboring province route can include route 1, route 2, route 3, route 4 and route 5. The starting longitude and latitude coordinates of route 1 are coordinates 11 (120.826718, 30.992417) and the end longitude and latitude coordinates are coordinates 12 (120.769594, 32.294920). The starting longitude and latitude coordinates of route 2 are coordinates 21 (120.823738, 30.993326) and the end longitude and latitude coordinates are coordinates 22 (122.352679, 35.369582). The starting point longitude and latitude coordinates of route 3 are coordinates 31 (120.825967, 30.991689) and the end point longitude and latitude coordinates are coordinates 32 (120.768562, 32.293685), the starting point longitude and latitude coordinates of route 4 are coordinates 41 (120.824695, 30.992956) and the end point longitude and latitude coordinates are coordinates 42 (122.353957, 35.368579), and the starting point longitude and latitude coordinates of route 5 are coordinates 51 (126.856739, 32.993568) and the end point longitude and latitude coordinates are coordinates 52 (124.532689, 35.659365).
[0047] According to the preset rules, the coordinates 11 (120.826718, 30.992417) and 12 (120.769594, 32.294920) of route 1 are intercepted, and the corresponding route group name is 120.83_30.99|120.77_32.29; according to the preset rules, the coordinates 21 (120.823738, 30.993326) and 22 (122.352679, 35.369582) of route 2 are intercepted, and the corresponding route group name is 120.82_30.99|122.35_35.37; according to the preset rules, the coordinates 31 (120.825967, 30.991689) and 32 (120.768 562, 32.293685), and the corresponding route group name is 120.83_30.99|120.77_32.29; according to the preset rule, the coordinates 41 (120.824695, 30.992956) and coordinates 42 (122.353957, 35.368579) of route 4 are intercepted, and the corresponding route group name is 120.82_30.99|122.35_35.37; according to the preset rule, the coordinates 51 (126.856739, 32.993568) and coordinates 52 (124.532689, 35.659365) of route 5 are intercepted, and the corresponding route group name is 126.86_32.99|124.53_35.66.
[0048] The routes 1 and 3 corresponding to the route group name 120.83_30.99|120.77_32.29 are divided into a group to obtain the corresponding route group 1; the routes 2 and 4 corresponding to the route group name 120.82_30.99|122.35_35.37 are divided into a group to obtain the corresponding route group 2; the route 5 corresponding to the route group name 126.86_32.99|124.53_35.66 is divided into a group to obtain the corresponding route group 3.
[0049] Step S130: receiving a planning request.
[0050] In an embodiment of the present application, after the client groups the target province routes and the neighboring province routes and obtains the corresponding multiple route groups, it can receive a planning request sent by the user. The planning request carries the target route starting point and the target route end point, and the planning request is used to instruct the client to perform route planning according to the target route starting point and the target route end point, the target route starting point and the target route end point are included in the target route group, and the connecting route of the target route starting point and the target route end point passes through at least the target province.
[0051] In some embodiments, the client may include an input panel, and the input panel can also be used to receive a planning request input by a user that carries a target route starting point and a target route end point. For example, the input panel can be used to receive a planning request input by a user using keystrokes, and the input panel can also be used to receive a planning request input by a user using handwriting, etc., which is not limited here.
[0052] After the client groups the routes of the target province and the routes of the neighboring provinces and obtains the corresponding multiple route groups, the user can input a planning request carrying the starting point and the end point of the target route in the input panel, and the client receives the planning request input by the user through the input panel.
[0053] In some embodiments, the client may include a voice collection module. After the client groups the routes of the target province and the routes of the neighboring provinces to obtain the corresponding multiple route groups, the user can send a planning request carrying the starting point and the end point of the target route to the voice collection module within the collection range of the voice collection module, and the client receives the planning request through the voice collection module.
[0054] Step S140: Respond to the planning request and generate a corresponding diversion route.
[0055] In an embodiment of the present application, after receiving a planning request, the client can respond to the planning request and generate a corresponding diversion route. The diversion route can include the target province's highway section corresponding to the target province, thereby generating a diversion route including the target province's highway section corresponding to the target province according to the planning request. This is beneficial for guiding trucks passing through the target province to enter the target province's highway section, avoiding a large number of trucks from pouring into the target province's low-speed section, and reducing traffic safety risks in the target province.
[0056] In some embodiments, the connecting route between the starting point of the target route and the end point of the target route passes through the target province and the neighboring province. After receiving the planning request, the client can respond to the planning request, obtain the target province highway section corresponding to the target province, and obtain the target neighboring province section corresponding to the neighboring province, as well as the connecting target province highway section and the target neighboring province section to obtain the corresponding diversion route.
[0057] The target route group includes multiple target grouping routes, each of which includes a target province expressway section and a neighboring province section. The client can obtain multiple target grouping routes in the target route group, calculate the target grouping route cost of each target grouping route, and sort the multiple target grouping routes in order of target grouping route costs from small to large, and obtain the neighboring province section of the first-ranked target grouping route as the target neighboring province section corresponding to the neighboring province.
[0058] In some embodiments, the connecting route between the starting point of the target route and the end point of the target route passes through the target province. After receiving the planning request, the client can respond to the planning request, obtain the target province's highway section corresponding to the target province, and use the target province's highway section as the corresponding diversion route, which is conducive to guiding vehicles traveling in the target province to the target province's highway section first, reducing the number of vehicles traveling on low-speed sections in the target province, and reducing traffic safety risks in the target province.
[0059] The solution provided in this embodiment obtains the target province route corresponding to the target province and the neighboring province route corresponding to the neighboring province, the target province is adjacent to the neighboring province, and the target province route and the neighboring province route are grouped to obtain corresponding multiple route groups, the multiple route starting points corresponding to each route group belong to the same starting point position range, and the multiple route end points corresponding to each route group belong to the same end point position range, and receives a planning request, the planning request carries the target route starting point and the target route end point, the target route starting point and the target route end point are included in the target route group, and the connecting route of the target route starting point and the target route end point passes through at least the target province, and responds to the planning request to generate a corresponding diversion route, the diversion route includes the target province high-speed section corresponding to the target province, and realizes the generation of a diversion route including the target province high-speed section corresponding to the target province according to the planning request, which is conducive to guiding trucks passing through the target province to enter the target province high-speed section, avoiding a large number of trucks from pouring into the target province low-speed section, and reducing the traffic safety risk of the target province.
[0060] See also Figure 3 , which shows a flow chart of a high-speed drainage method provided by another embodiment of the present application. In a specific embodiment, the high-speed drainage method can be applied to Figure 1 The client 100 in the high-speed traffic diversion system shown in FIG. 1 is taken as an example below. Figure 3 The process shown is described in detail, and the high-speed drainage method may include the following steps S210 to S260.
[0061] Step S210: Obtain the target province route corresponding to the target province and the neighboring province route corresponding to the neighboring province.
[0062] Step S220: Group the target province routes and the neighboring province routes to obtain corresponding multiple route groups.
[0063] Step S230: receiving a planning request.
[0064] Step S240: Respond to the planning request and generate a corresponding diversion route.
[0065] In this embodiment, step S210, step S220, step S230 and step S240 may refer to the contents of the corresponding steps in the aforementioned embodiments, which will not be described in detail here.
[0066] Step S250: Obtain the target route cost corresponding to each target route in the target route group.
[0067] In this embodiment, the target route group corresponding to the diversion route may include multiple target routes. After the client responds to the planning request and generates the corresponding diversion route, it can obtain the target route fee corresponding to each target route in the target route group.
[0068] In some embodiments, the server pre-stores the route fee corresponding to each route. After the client responds to the planning request and generates the corresponding diversion route, it can send a second acquisition instruction carrying the identifier of each target route to the server via the network. The server receives and responds to the second acquisition instruction, and sends the target route fee corresponding to each target route to the client via the network. The client receives the target route fee corresponding to each target route returned by the server.
[0069] In some embodiments, the high-speed traffic diversion system may further include a route fee service platform, which may be connected to a client via a network and perform data exchange with the client via the network. The route fee service platform may pre-store route fees corresponding to each route.
[0070] After responding to the planning request and generating the corresponding diversion route, the client can send a third acquisition instruction carrying the identifier of each target route to the route fee service platform through the network. The route fee service platform receives and responds to the third acquisition instruction, and sends the target route fee corresponding to each target route to the client through the network. The client receives the target route fee corresponding to each target route returned by the route fee service platform.
[0071] Among them, the route fee service platform can be an independent route fee physical service platform, or a route fee service platform cluster or a route fee distributed system composed of multiple route fee physical service platforms. It can also be a route fee cloud service platform that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), big data and artificial intelligence platforms, etc. The type of route fee service platform is not limited here, and it can be set according to actual needs.
[0072] Step S260: Determine the target province highway section diversion fee corresponding to the target province highway section based on the target route fee.
[0073] In this embodiment, after obtaining the target route fee corresponding to each target route in the target route group, the client can determine the target province highway section diversion fee corresponding to the target province highway section based on the target route fee corresponding to each target route, so that the current diversion route fee of the diversion route is less than the target route fee, which is more conducive to guiding trucks in the target province into the target province highway section.
[0074] In an application scenario, the target route group includes three target routes, namely target route 1, target route 2 and target route 3. The target route fee 1 corresponding to target route 1 is 200 yuan, the target route fee 2 corresponding to target route 2 is 100 yuan, and the target route fee corresponding to target route 3 is 150 yuan.
[0075] If the target neighboring province section fee of the target neighboring province section corresponding to the diversion route is 70 yuan, then it can be determined that the target province highway section diversion fee is <100 yuan-70 yuan=30 yuan, that is, when the target province highway section diversion fee is set less than 30 yuan, trucks traveling in the target province can be guided to travel on the target province highway section.
[0076] In some embodiments, after the client determines the drainage fee of the target province highway section corresponding to the target province highway section according to the target route fee, it can calculate the drainage route initial fee of the drainage route according to the target province highway section initial fee, and determine the to-be-eliminated routes to be eliminated in the target route group according to the drainage route initial fee, and eliminate the to-be-eliminated routes from the target route group to obtain the target updated route group, thereby realizing the real-time update of the grouped routes, reducing the amount of calculation in the subsequent route planning process, and improving the planning efficiency of the route planning. Among them, the to-be-eliminated route fee corresponding to the to-be-eliminated route is less than the drainage route initial fee.
[0077] In an application scenario, the target route group includes 5 target routes, namely target route 1, target route 2, target route 3, target route 4 and target route 5. The target route fee 1 corresponding to target route 1 is 200 yuan, the target route fee 2 corresponding to target route 2 is 100 yuan, the target route fee corresponding to target route 3 is 150 yuan, the target route fee corresponding to target route 4 is 180 yuan, and the target route fee 5 corresponding to target route 5 is 170 yuan.
[0078] The initial cost of the target province's expressway section is 50 yuan, and the target neighboring province section cost of the target neighboring province section corresponding to the diversion route is 100 yuan. The initial cost of the diversion route = the initial cost of the target province's expressway section + the target neighboring province section cost = 70 yuan + 50 yuan = 120 yuan. The target route cost 2 corresponding to target route 2 is less than the initial cost of the diversion route. Then, target route 2 is determined as the route to be eliminated, and target route 2 in the target route group is eliminated to obtain the corresponding target updated route group.
[0079] The solution provided in this embodiment obtains the target province route corresponding to the target province and the neighboring province route corresponding to the neighboring province, and groups the target province route and the neighboring province route to obtain corresponding multiple route groups, and receives a planning request, and responds to the planning request to generate a corresponding diversion route, and obtains the target route fee corresponding to each target route in the target route group, and determines the target province highway section diversion fee corresponding to the target province highway section according to the target route fee, thereby generating a diversion route including the target province highway section corresponding to the target province according to the planning request, which is conducive to guiding trucks passing through the target province to enter the target province highway section, avoiding a large number of trucks from pouring into the target province low-speed section, and reducing the traffic safety risk in the target province.
[0080] Furthermore, the target province highway section diversion fee corresponding to the target province highway section is determined based on the target route fee, which is more conducive to guiding trucks in the target province to enter the target province highway section.
[0081] See also Figure 4 , which shows a high-speed drainage device 300 provided by an embodiment of the present application. The high-speed drainage device 300 can be applied to Figure 1 The client 100 in the high-speed traffic diversion system shown in FIG. 1 is taken as an example below. Figure 4 The high-speed flow diversion device 300 shown is described in detail. The high-speed flow diversion device 300 may include a route acquisition module 310, a grouping module 320, a receiving module 330 and a responding module 340.
[0082] The route acquisition module 310 can be used to obtain the target province route corresponding to the target province and the neighboring province route corresponding to the neighboring province, where the target province is adjacent to the neighboring province; the grouping module 320 can be used to group the target province route and the neighboring province route to obtain corresponding multiple route groups, where the multiple route starting points corresponding to each route group belong to the same starting point position range, and the multiple route end points corresponding to each route group belong to the same end point position range; the receiving module 330 can be used to receive a planning request, where the planning request carries the target route starting point and the target route end point, where the target route starting point and the target route end point are included in the target route group, and the connecting route between the target route starting point and the target route end point passes through at least the target province; the response module 340 can be used to respond to the planning request and generate a corresponding drainage route, where the drainage route includes the target province high-speed route corresponding to the target province.
[0083] In some implementations, the grouping module 320 may include a first acquiring unit and a dividing unit.
[0084] The first acquisition unit can be used to obtain the route starting point coordinates and the route end point coordinates of each initial route in the target province route and the neighboring province route; the division unit can be used to divide the initial routes whose route starting point coordinates belong to the same starting point position range and whose route end point coordinates belong to the same end point position range into a group to obtain corresponding multiple route groups.
[0085] In some embodiments, the route starting point coordinates may be the longitude and latitude coordinates of the route starting point, the route ending point coordinates may be the longitude and latitude coordinates of the route ending point, and the division unit may include an interception subunit, a generation subunit, and a division subunit.
[0086] The interception subunit can be used to intercept the coordinate character string of the starting point longitude and latitude coordinates and the end point longitude and latitude coordinates of each initial route according to preset rules to obtain the corresponding starting point coordinate character string and end point coordinate character string; the generation subunit can be used to generate the route group name corresponding to the initial route based on the starting point coordinate character string and the end point coordinate character string; the division subunit can be used to divide the initial routes with the same route group name into a group to obtain corresponding multiple route groups.
[0087] In some embodiments, the connecting route between the target route starting point and the target route end point may pass through the target province and a neighboring province, and the response module 340 may include a response unit, a second acquisition unit, and a connecting unit.
[0088] The response unit can be used to respond to the planning request and obtain the target province highway section corresponding to the target province; the second acquisition unit can be used to obtain the target neighboring province section corresponding to the neighboring province; the connection unit can be used to connect the target province highway section and the target neighboring province section to obtain the corresponding diversion route.
[0089] In some implementations, the second acquiring unit may include a first acquiring subunit, a calculating subunit, a sorting subunit, and a second acquiring subunit.
[0090] The first acquisition subunit can be used to acquire multiple neighboring province road sections in the target route group; the calculation subunit can be used to calculate the neighboring province road section fee of each neighboring province road section; the sorting subunit can be used to sort the multiple neighboring province road sections in the order of the neighboring province road section fees from small to large; the second acquisition subunit can be used to acquire the neighboring province road section ranked first and use it as the target neighboring province road section.
[0091] In some embodiments, the target route group corresponding to the diversion route may include multiple target routes, and the high-speed diversion device 300 may further include a fee acquisition module and a first determination module.
[0092] The fee acquisition module can be used to obtain the target route fee corresponding to each target route in the target route group; the first determination module can be used to determine the target province highway section diversion fee corresponding to the target province highway section based on the target route cost.
[0093] In some embodiments, the high-speed drainage device 300 may further include a calculation module, a second determination module, and a rejection module.
[0094] The calculation module can be used to calculate the initial cost of the diversion route based on the initial cost of the highway section in the target province; the second determination module can be used to determine the routes to be eliminated in the target route group based on the initial cost of the diversion route, and the route costs corresponding to the routes to be eliminated are less than the initial cost of the diversion route; the elimination module can be used to eliminate the routes to be eliminated from the target route group to obtain the target updated route group.
[0095] The solution provided in this embodiment obtains the target province route corresponding to the target province and the neighboring province route corresponding to the neighboring province, the target province is adjacent to the neighboring province, and the target province route and the neighboring province route are grouped to obtain corresponding multiple route groups, the multiple route starting points corresponding to each route group belong to the same starting point position range, and the multiple route end points corresponding to each route group belong to the same end point position range, and receives a planning request, the planning request carries the target route starting point and the target route end point, the target route starting point and the target route end point are included in the target route group, and the connecting route of the target route starting point and the target route end point passes through at least the target province, and responds to the planning request to generate a corresponding diversion route, the diversion route includes the target province high-speed section corresponding to the target province, and realizes the generation of a diversion route including the target province high-speed section corresponding to the target province according to the planning request, which is conducive to guiding trucks passing through the target province to enter the target province high-speed section, avoiding a large number of trucks from pouring into the target province low-speed section, and reducing the traffic safety risk of the target province.
[0096] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Any processing method described in the method embodiment can be implemented by the corresponding processing module in the device embodiment, and will not be repeated one by one in the device embodiment.
[0097] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0098] See also Figure 5 , which shows a functional block diagram of an electronic device 400 provided by an embodiment of the present application, and the electronic device 400 may include one or more of the following components: a memory 410, a processor 420, and one or more applications, wherein the one or more applications may be stored in the memory 410 and configured to be executed by the one or more processors 420, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.
[0099] The memory 410 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). The memory 410 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 410 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as obtaining a target province route, obtaining a neighboring province route, grouping a target province route and a neighboring province route, obtaining multiple route groups, receiving a planning request, responding to a planning request, generating a diversion route, obtaining the starting point coordinates of a route, obtaining the end point coordinates of a route, dividing an initial route, intercepting a coordinate string of the longitude and latitude coordinates of the starting point of a route, intercepting a coordinate string of the longitude and latitude coordinates of the end point of a route, obtaining a starting point coordinate string, obtaining an end point coordinate string, Coordinate character string, generate route group name, divide initial routes with the same route group name into one group, obtain target province expressway section, obtain target neighboring province section, connect target province expressway section and target neighboring province section, obtain multiple neighboring province sections, calculate neighboring province section fees, sort multiple neighboring province sections, obtain the first neighboring province section as the target neighboring province section, obtain target route fee, determine target province expressway section fee, calculate diversion route fee, determine routes to be eliminated, eliminate routes to be eliminated and obtain target updated route group, etc.), instructions for implementing the following method embodiments, etc. The storage data area can also store data created by the electronic device 400 during use (such as target provinces, target province routes, neighboring provinces, neighboring province routes, multiple route groups, multiple route starting points, the same starting point location range, multiple route endpoints, the same endpoint location range, planning requests, target route starting points, target route endpoints, target route groups, connecting routes, diversion routes, target province highway sections, initial routes, route starting point coordinates, route endpoint coordinates, route starting point longitude and latitude coordinates, route endpoint longitude and latitude coordinates, preset rules, coordinate character strings, starting point coordinate character strings, endpoint coordinate character strings, route group names, target neighboring province sections, multiple target grouped routes, neighboring province sections, target grouped route fees, target route fees, target province highway section diversion fees, target province highway section initial fees, diversion route initial fees, routes to be eliminated, route fees to be eliminated, and target updated route groups), etc.
[0100] The processor 420 may include one or more processing cores. The processor 420 uses various interfaces and lines to connect the various parts of the entire electronic device 400, and executes various functions and processes data of the electronic device 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 410, and calling data stored in the memory 410. Optionally, the processor 420 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 420 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 420, but may be implemented separately through a communication chip.
[0101] Please refer to Figure 6 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 500 stores a program code 510, which can be called by a processor to execute the method described in the above method embodiment.
[0102] The computer-readable storage medium 500 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 500 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 500 has storage space for program code 510 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 510 can be compressed, for example, in an appropriate form.
[0103] Please refer to Figure 7, which shows a structural block diagram of a computer program product 600 provided in an embodiment of the present application. The computer program product 600 includes a computer program / instruction 610, and the computer program / instruction 610 is stored in a computer-readable storage medium of a computer device. When the computer program product 600 is run on a computer device, a processor of the computer device reads the computer program / instruction 610 from the computer-readable storage medium, and the processor executes the computer program / instruction 610, so that the computer device performs the method described in the above method embodiment.
[0104] The solution provided in this embodiment obtains the target province route corresponding to the target province and the neighboring province route corresponding to the neighboring province, the target province is adjacent to the neighboring province, and the target province route and the neighboring province route are grouped to obtain corresponding multiple route groups, the multiple route starting points corresponding to each route group belong to the same starting point position range, and the multiple route end points corresponding to each route group belong to the same end point position range, and receives a planning request, the planning request carries the target route starting point and the target route end point, the target route starting point and the target route end point are included in the target route group, and the connecting route of the target route starting point and the target route end point passes through at least the target province, and responds to the planning request to generate a corresponding diversion route, the diversion route includes the target province high-speed section corresponding to the target province, and realizes the generation of a diversion route including the target province high-speed section corresponding to the target province according to the planning request, which is conducive to guiding trucks passing through the target province to enter the target province high-speed section, avoiding a large number of trucks from pouring into the target province low-speed section, and reducing the traffic safety risk of the target province.
[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A high-speed drainage method, characterized in that: include: Obtain a target province route corresponding to the target province and a neighboring province route corresponding to the neighboring province, wherein the target province is adjacent to the neighboring province; The target province routes and the neighboring province routes are grouped to obtain a plurality of corresponding route groups, wherein the plurality of route starting points corresponding to each route group belong to the same starting point position range, and the plurality of route end points corresponding to each route group belong to the same end point position range; receiving a planning request, the planning request carrying a target route start point and a target route end point, the target route start point and the target route end point being included in a target route group, and a connecting route between the target route start point and the target route end point at least passing through the target province; In response to the planning request, a corresponding diversion route is generated, and the diversion route includes the target province highway section corresponding to the target province.
2. The high-speed drainage method according to claim 1, characterized in that: The grouping of the target province routes and the neighboring province routes to obtain a plurality of corresponding route groups includes: Obtain the route starting point coordinates and route ending point coordinates of each initial route in the target province route and the neighboring province route; The initial routes whose route starting point coordinates belong to the same starting point position range and whose route ending point coordinates belong to the same ending point position range are divided into one group to obtain a corresponding plurality of route groups.
3. The high-speed drainage method according to claim 2, characterized in that: The route starting point coordinates are the longitude and latitude coordinates of the route starting point, the route ending point coordinates are the longitude and latitude coordinates of the route ending point, and the initial routes whose route starting point coordinates belong to the same starting point position range and whose route ending point coordinates belong to the same ending point position range are divided into a group to obtain corresponding multiple route groups, including: According to a preset rule, the coordinate character string of the starting point longitude and latitude coordinates and the ending point longitude and latitude coordinates of each initial route is intercepted to obtain a corresponding starting point coordinate character string and an ending point coordinate character string; Generate a route group name corresponding to the initial route according to the starting point coordinate character string and the end point coordinate character string; The initial routes with the same route group name are divided into one group to obtain a corresponding plurality of route groups.
4. The high-speed drainage method according to claim 1, characterized in that: The connecting route between the starting point of the target route and the end point of the target route passes through the target province and the neighboring province, and the generating of the corresponding diversion route in response to the planning request includes: In response to the planning request, obtaining the target province expressway section corresponding to the target province; Obtain the target neighboring province road section corresponding to the neighboring province; The expressway section in the target province and the section in the target neighboring province are connected to obtain a corresponding diversion route.
5. The high-speed drainage method according to claim 4, characterized in that: The step of obtaining the target neighboring province road section corresponding to the neighboring province includes: Acquire multiple target grouped routes in the target route group, wherein the target grouped routes include the highway section of the target province and the highway section of a neighboring province; Calculate the target grouping route cost of each target grouping route; The target neighboring province road section corresponding to the neighboring province is determined according to the target grouping route cost.
6. The high-speed drainage method according to any one of claims 1 to 5, characterized in that: The target route group corresponding to the diversion route includes a plurality of target routes, and the high-speed diversion method further includes: Obtaining the target route cost corresponding to each target route in the target route group; According to the target route fee, the target province highway section diversion fee corresponding to the target province highway section is determined.
7. The high-speed drainage method according to claim 6, characterized in that: Also includes: Calculate the initial cost of the diversion route of the diversion route according to the initial cost of the expressway section in the target province; Determine, according to the initial cost of the diversion route, a to-be-removed route in the target route group to be removed, wherein the to-be-removed route cost corresponding to the to-be-removed route is less than the initial cost of the diversion route; The to-be-eliminated routes are eliminated from the target route group to obtain a target updated route group.
8. A high-speed drainage device, characterized in that: include: A route acquisition module, used to acquire a target province route corresponding to the target province and a neighboring province route corresponding to the neighboring province, wherein the target province is adjacent to the neighboring province; A grouping module, used to group the target province routes and the neighboring province routes to obtain a plurality of corresponding route groups, wherein the plurality of route starting points corresponding to each route group belong to the same starting point position range, and the plurality of route end points corresponding to each route group belong to the same end point position range; A receiving module, configured to receive a planning request, wherein the planning request carries a target route starting point and a target route end point, wherein the target route starting point and the target route end point are included in a target route group, and a connecting route between the target route starting point and the target route end point passes through at least the target province; The response module is used to respond to the planning request and generate a corresponding diversion route, wherein the diversion route includes a target province highway route corresponding to the target province.
9. An electronic device, characterized in that: include: Memory; One or more processors coupled to the memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by one or more processors, and the one or more applications are configured to execute the high-speed drainage method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, and the program codes can be called by a processor to execute the high-speed drainage method according to any one of claims 1 to 7.
