Method, device, electronic device and storage medium for route planning and order recommendation
By using local sections of the empirical route in delivery route planning, the problems of congestion and low efficiency in delivery route planning in the existing technology are solved, and more reliable and efficient delivery route generation is achieved.
Patent Information
- Application Number
- CN202010779016.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-05
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-08-05
AI Technical Summary
Existing delivery route planning methods can easily lead to congestion, detours, and difficult traffic, leading to delayed order delivery and low efficiency of delivery personnel.
By obtaining the starting point and end point of the route to be planned in the target area, and determining the area where it is located from multiple preset areas, obtaining local sections of the experience route, generating the target planned route, improving the utilization rate of the experience route, and avoiding congestion and detours. road.
It improves the effectiveness and reliability of route planning and ensures the efficiency and punctuality of delivery routes.
Smart Images

Figure CN114065992B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of route planning, and in particular, to a method, device, electronic device and storage medium for route planning and order recommendation. Background Art
[0002] Usually, the planning of delivery routes is one of the basic services of the delivery platform. The planned distance of the delivery route, as well as the effectiveness and reliability of the delivery route are directly related to the delivery time of the order and the delivery efficiency of the delivery staff.
[0003] At present, in the process of delivery route planning, most of them use the path planning algorithm in related technologies to directly generate the target delivery route corresponding to the order delivery starting point and the order delivery destination according to the order delivery starting point and the order delivery destination. However, the target delivery route generated in this way often has problems such as congestion, detours, difficulty in passing or impassability during use, which can easily lead to delayed delivery time of orders and low delivery efficiency of delivery personnel. Summary of the invention
[0004] The purpose of the present disclosure is to provide a method, device, electronic device and storage medium for route planning and order recommendation.
[0005] In order to achieve the above object, a route planning method is provided in a first aspect of the present disclosure, which is applied to a server, and the method comprises:
[0006] Obtain the target starting point and target end point of the route to be planned in the target area;
[0007] Determine, from a plurality of preset areas within the target area, a first preset area where the target start point is located and a second preset area where the target end point is located;
[0008] Acquire a target area section between the first preset area and the second preset area, where the target area section is a local section of at least one experienced route between the first preset area and the second preset area;
[0009] A target planned route is generated according to the target starting point, the target end point and the target area section.
[0010] Optionally, before acquiring the target area road section between the first preset area and the second preset area, the method further includes:
[0011] Acquire a pre-generated regional road section between every two preset areas in a plurality of the preset areas;
[0012] Correspondingly, the step of obtaining the target area road section between the first preset area and the second preset area includes:
[0013] The target area section between the first preset area and the second preset area is acquired from the area sections.
[0014] Optionally, the regional road segment is pre-generated in the following manner:
[0015] Acquire at least one empirical route in the target area, where the empirical route is formed by a driving trajectory of the target object in historical time;
[0016] For each of the at least one experience route, determining, from the plurality of preset areas, a third preset area where one end of the experience route is located and a fourth preset area where the other end of the experience route is located;
[0017] Obtaining a first intersection point between the empirical route and the third preset area, and a second intersection point between the empirical route and the fourth preset area;
[0018] The section between the first intersection and the second intersection in the experience route is determined as the regional section.
[0019] Optionally, the acquiring the target area section between the first preset area and the second preset area includes:
[0020] Acquire at least one empirical route in the target area, where the empirical route is formed by a driving trajectory of the target object in historical time;
[0021] Determine a target experience route from at least one of the experience routes, wherein one end of the target experience route is located in the first preset area, and the other end of the target experience route is located in the second preset area;
[0022] A third intersection point between the target experience route and the first preset area and a fourth intersection point between the target experience route and the second preset area are obtained, and a section between the third intersection point and the fourth intersection point in the target experience route is determined as the target area section.
[0023] Optionally, generating a target planned route according to the target starting point, the target end point and the target area section includes:
[0024] Determine a first endpoint and a second endpoint of the target area section, the first endpoint being an intersection of the target area section and the first preset area, and the second endpoint being an intersection of the target area section and the second preset area;
[0025] Acquire a starting route from the target starting point to the first end point, and a terminal route from the second end point to the target end point;
[0026] The starting route, the target area section and the terminal route are spliced together to obtain the target planned route.
[0027] Optionally, the preset area includes map blocks pre-divided within the target area.
[0028] Optionally, before obtaining a target starting point and a target end point of a route to be planned in a target area, the method further includes:
[0029] Get the first position of the target rider;
[0030] Determine at least one waiting order in the target area where the target rider is located according to the first location, and obtain a second location of a merchant corresponding to each waiting order;
[0031] Accordingly, the step of obtaining a target starting point and a target end point of a route to be planned in a target area includes:
[0032] The first position is used as the target starting point, and the second position is used as the target end point.
[0033] Optionally, after generating a target planned route according to the target starting point, the target end point and the target area section, the method further includes:
[0034] Determine the order receiving route corresponding to each of the pending orders according to the generated target planning route corresponding to each of the pending orders;
[0035] Determining a recommended delivery order from at least one of the pending orders according to the order receiving route;
[0036] The recommended delivery order is sent to the terminal corresponding to the target rider, so that the terminal displays the recommended delivery order.
[0037] Optionally, determining the order receiving route corresponding to each of the to-be-received orders according to the generated target planning route corresponding to each of the to-be-received orders includes:
[0038] The target planned route with the shortest distance among the target planned routes corresponding to each of the pending orders is used as the order receiving route corresponding to the pending order;
[0039] or,
[0040] The target delivery route with the largest historical traffic ratio among the target planned routes corresponding to each of the pending orders is used as the order receiving route corresponding to the pending order.
[0041] Optionally, the method further comprises:
[0042] After the terminal determines the target recommended order selected by the user from the displayed recommended delivery orders, receiving a path acquisition request message sent by the terminal;
[0043] In response to receiving the route acquisition request message sent by the terminal, determining a target order receiving route corresponding to the target recommended order;
[0044] The target order receiving route is sent to the terminal so that the terminal displays the target order receiving route.
[0045] In a second aspect of the present disclosure, a method for order recommendation is provided, which is applied to a terminal and includes:
[0046] Get the first position of the target rider;
[0047] The first position is sent to a server, so that the server determines at least one waiting order in a target area where the target rider is located according to the first position, obtains a second position of a merchant corresponding to each waiting order, and determines a first preset area where the first position is located and a second preset area where the second position is located from multiple preset areas in the target area, and obtains a target area section between the first preset area and the second preset area, the target area section being a partial section of at least one experience route between the first preset area and the second preset area, and generates a target planned route according to the first position, the second position and the target area section, and determines an order receiving route corresponding to each waiting order according to the generated target planned route corresponding to each waiting order, and determines a delivery recommended order from at least one waiting order according to the order receiving route;
[0048] Receive the delivery recommendation order sent by the server, and display the delivery recommendation order.
[0049] Optionally, after displaying the recommended delivery order, the method further includes:
[0050] Determining a target recommended order selected by a user from the displayed recommended delivery orders;
[0051] Sending a path acquisition request message to the server, so that the server determines a target order receiving route corresponding to the target recommended order according to the path acquisition request message;
[0052] Receive the target order receiving route corresponding to the target recommended order sent by the server, and display the target order receiving route.
[0053] In a third aspect of the present disclosure, a route planning device is provided, which is applied to a server, and the device includes:
[0054] A first acquisition module is configured to acquire a target starting point and a target end point of a route to be planned in a target area;
[0055] A first determining module is configured to determine, from a plurality of preset areas within the target area, a first preset area where the target start point is located and a second preset area where the target end point is located;
[0056] A second acquisition module is configured to acquire a target area section between the first preset area and the second preset area, wherein the target area section is a local section of at least one experience route between the first preset area and the second preset area;
[0057] The generation module is configured to generate a target planning route according to the target starting point, the target end point and the target area section.
[0058] Optionally, the device further comprises:
[0059] A third acquisition module is configured to acquire a pre-generated regional road segment between every two preset areas in the plurality of preset areas;
[0060] Correspondingly, the second acquisition module is configured to acquire the target area section between the first preset area and the second preset area from the area section.
[0061] Optionally, the third acquisition module includes:
[0062] A first acquisition submodule is configured to acquire at least one experience route in the target area, wherein the experience route is formed by a driving trajectory of the target object in a historical time;
[0063] A first determining submodule is configured to determine, for each of the at least one experience route, from the plurality of preset areas, a third preset area where one end of the experience route is located and a fourth preset area where the other end is located;
[0064] A first generating submodule is configured to obtain a first intersection point between the empirical route and the third preset area, and a second intersection point between the empirical route and the fourth preset area;
[0065] The second determining submodule is configured to determine the section between the first intersection and the second intersection in the experience route as the regional section.
[0066] Optionally, the second acquisition module includes:
[0067] A second acquisition submodule is configured to acquire at least one experience route in the target area, wherein the experience route is formed by a driving trajectory of the target object in a historical time;
[0068] A third determining submodule is configured to determine a target experience route from at least one of the experience routes, wherein one end of the target experience route is located in the first preset area, and the other end of the target experience route is located in the second preset area;
[0069] The fourth determination submodule is configured to obtain a third intersection between the target experience route and the first preset area, and a fourth intersection between the target experience route and the second preset area, and determine the section between the third intersection and the fourth intersection in the target experience route as the target area section.
[0070] Optionally, the generating module includes:
[0071] A fifth determination submodule is configured to determine a first endpoint and a second endpoint of the target area section, the first endpoint being an intersection of the target area section and the first preset area, and the second endpoint being an intersection of the target area section and the second preset area;
[0072] A third acquisition submodule is configured to acquire a starting route between the target starting point and the first end point, and a terminal route between the second end point and the target end point;
[0073] The second generation submodule is configured to splice the starting route, the target area section and the terminal route to obtain the target planned route.
[0074] Optionally, the preset area includes map blocks pre-divided within the target area.
[0075] Optionally, the device further comprises:
[0076] A fourth acquisition module is configured to acquire a first position of the target rider;
[0077] A second determination module is configured to determine at least one waiting order in the target area where the target rider is located according to the first location, and obtain a second location of a merchant corresponding to each waiting order;
[0078] Correspondingly, the first acquisition module is configured to use the first position as the target starting point and the second position as the target end point.
[0079] Optionally, the device further comprises:
[0080] A third determining module is configured to determine an order receiving route corresponding to each of the to-be-received orders according to the generated target planning route corresponding to each of the to-be-received orders;
[0081] A fourth determination module is configured to determine a recommended delivery order from at least one of the pending orders according to the order receiving route;
[0082] The first sending module is configured to send the recommended delivery order to the terminal corresponding to the target rider, so that the terminal displays the recommended delivery order.
[0083] Optionally, the third determining module includes:
[0084] The sixth determining submodule is configured to use the target planned route with the shortest distance among the target planned routes corresponding to each of the pending orders as the order receiving route corresponding to the pending order;
[0085] or,
[0086] The seventh determination submodule is configured to use the target delivery route with the largest historical traffic ratio among the target planned routes corresponding to each of the pending orders as the order receiving route corresponding to the pending order.
[0087] Optionally, the device further comprises:
[0088] A first receiving module is configured to receive a route acquisition request message sent by the terminal after the terminal determines a target recommended order selected by the user from the displayed recommended delivery orders;
[0089] A fifth determining module is configured to determine a target order receiving route corresponding to the target recommended order in response to receiving the route acquisition request message sent by the terminal;
[0090] The second sending module is configured to send the target order receiving route to the terminal so that the terminal displays the target order receiving route.
[0091] In a fourth aspect of the present disclosure, a device for order recommendation is provided, which is applied to a terminal and includes:
[0092] A fifth acquisition module is configured to acquire a first position of the target rider;
[0093] A third sending module is configured to send the first position to a server, so that the server determines at least one waiting order in a target area where the target rider is located according to the first position, and obtains a second position of a merchant corresponding to each waiting order, and determines a first preset area where the first position is located and a second preset area where the second position is located from multiple preset areas in the target area, and obtains a target area section between the first preset area and the second preset area, the target area section being a local section of at least one experience route between the first preset area and the second preset area, and generates a target planned route according to the first position, the second position and the target area section, and determines an order receiving route corresponding to each waiting order according to the generated target planned route corresponding to each waiting order, and determines a delivery recommended order from at least one waiting order according to the order receiving route;
[0094] The second receiving module is configured to receive the recommended delivery order sent by the server and display the recommended delivery order.
[0095] Optionally, the device further comprises:
[0096] A sixth determining module is configured to determine a target recommended order selected by a user from the displayed delivery recommended orders;
[0097] A fourth sending module is configured to send a path acquisition request message to the server, so that the server determines a target order receiving route corresponding to the target recommended order according to the path acquisition request message;
[0098] The third receiving module is configured to receive the target order receiving route corresponding to the target recommended order sent by the server, and display the target order receiving route.
[0099] In a fifth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in the first aspect are implemented; or, when the program is executed by a processor, the steps of the method described in the second aspect are implemented.
[0100] In a sixth aspect of the present disclosure, an electronic device is provided, including:
[0101] a memory having a computer program stored thereon;
[0102] A processor is used to execute the computer program in the memory to implement the steps of the method described in the first aspect above, or the program implements the steps of the method described in the second aspect above when executed by the processor.
[0103] The above technical solution obtains the target starting point and target end point of the route to be planned in the target area; determines the first preset area where the target starting point is located and the second preset area where the target end point is located from multiple preset areas in the target area; obtains the target area section between the first preset area and the second preset area, and the target area section is a local section of at least one empirical route between the first preset area and the second preset area; generates a target planning route according to the target starting point, the target end point and the target area section. In this way, the target planning route between the target starting point and the target end point is planned according to the empirical route between the first preset area and the second preset area, and the empirical route is matched by the first preset area where the starting point of the route to be planned is located and the second preset area where the end point is located, so that the probability of matching the empirical route can be increased, thereby effectively improving the utilization rate of the empirical route, improving the efficiency of path planning, and ensuring the effectiveness and reliability of the target planning route.
[0104] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0105] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0106] Figure 1 is a flow chart of a route planning method shown in an exemplary embodiment of the present disclosure;
[0107] Figure 2 is a flow chart of a route planning method shown in another exemplary embodiment of the present disclosure;
[0108] Figure 3a and Figure 3b Both Figure 2 The schematic diagram shown as an example in FIG.
[0109] Figure 4 is a flowchart of an order recommendation method shown in another exemplary embodiment of the present disclosure;
[0110] Figure 5 is a flowchart of a route planning method shown in another exemplary embodiment of the present disclosure;
[0111] Figure 6 A schematic diagram showing a recommended delivery order according to another exemplary embodiment of the present disclosure;
[0112] Figure 7 is a block diagram of a route planning device shown in another exemplary embodiment of the present disclosure;
[0113] Figure 8 is based on Figure 7 A block diagram of a route planning device shown in the illustrated embodiment;
[0114] Fig. 9 is a block diagram of a device for providing an order recommendation according to another exemplary embodiment of the present disclosure;
[0115] Fig.10 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0116] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0117] Before introducing the specific implementation methods of the present disclosure in detail, the application scenarios of the present disclosure are briefly described first. The present disclosure can be applied to the planning process of the delivery route of the distribution platform, and can also be applied to the process of the navigation system generating the navigation route according to the starting point and the end point of the user. Here, the planning of the delivery route in the distribution platform is taken as an example for explanation. Generally, the planning of the delivery route is one of the basic services of the distribution platform. The planning distance of the delivery route is directly related to the delivery time of the order and the income of the deliveryman. In the process of distribution route planning, if only the general road calculation algorithm is used, the generated distribution route is likely to be congested, detour, difficult to pass or impassable, which will inevitably affect the time of order delivery and directly affect the income of the deliveryman. Therefore, in the case where the distribution platform has a large amount of driving trajectory data of the deliveryman, some effective experience routes in the driving trajectory data can be used to plan new distribution routes. The target planning route generated according to these experience routes can effectively avoid congestion, detours, difficult to pass or impassable problems, and can effectively improve the reliability of the planned route. At present, when using these empirical routes for route planning, a common practice is to search for empirical routes based on the starting point and end point of the route to be planned, that is, to match the starting point and end point of the route to be planned with the two endpoints of the empirical route. If the two endpoints of the empirical route are the same as the starting point and end point of the route to be planned, then the empirical route is determined as the target planning route of the route to be planned. However, according to statistics, 92.90% of the starting points and end points of the routes to be planned corresponding to the delivery orders within a month on a certain delivery platform have only appeared once, and only 7.10% of the starting points and end points have appeared more than twice. That is to say, in reality, the probability that the starting point and end point of the route to be planned are the same as the two endpoints of the empirical route is extremely low, and the probability of matching the empirical route through the starting point and end point is small. Usually, when the empirical route cannot be matched, the empirical route will be abandoned and the route planning will be re-performed, which is very unfavorable to improve the utilization rate of the empirical route. Since the empirical route is generated based on the driving trajectory of the delivery person, it is an effective and reliable route. The target planning route determined based on the empirical route has high reliability and effectiveness. Therefore, in the process of path planning, if the empirical route cannot be fully utilized, the effectiveness and reliability of the generated target planning route cannot be improved.
[0118] In order to solve the above technical problems, the present disclosure provides a method, device, electronic device and storage medium for route planning and order recommendation, by obtaining a first preset area where a target starting point of a route to be planned is located and a second preset area where a target end point is located, determining a target area section between the first preset area and the second preset area from an existing experience route, and then generating a target planning route between the target starting point and the target end point according to the target starting point, the target area section and the target end point. In this way, by matching the experience route between the first preset area where the starting point of the route to be planned is located and the second preset area where the end point is located, the probability of matching the experience route can be increased, and the target planning route between the target starting point and the target end point is planned according to the experience route between the first preset area and the second preset area, which can improve the utilization rate of the experience route, and because the experience route is generated according to the driving trajectory in the historical time, it is an effective and reliable route, so the target planning route generated according to the experience route planning can effectively avoid congestion, detours or inaccessibility, thereby ensuring the effectiveness and reliability of the target planning route.
[0119] Figure 1 is a flow chart of a route planning method shown in an exemplary embodiment of the present disclosure; see Figure 1 The method is applied to the server and may include the following steps:
[0120] Step 101, obtaining a target starting point and a target end point of a route to be planned in a target area.
[0121] The target area may be an area within a pre-configured specified range, such as a geographical area of a city, or, for the delivery field, the target area may be a delivery area configured by the delivery platform for order delivery management, which is not limited in the present disclosure.
[0122] In this step, a possible implementation method is: receiving a route planning request triggered by a user through a preset terminal, the route planning request includes a starting point location to be departed and a target location to be reached, and after receiving the route planning request, obtaining the target starting point (i.e., the starting point location to be departed) and the target end point (i.e., the target location to be reached) of the route to be planned from the route planning request.
[0123] Step 102: Determine, from a plurality of preset areas within the target area, a first preset area where the target start point is located and a second preset area where the target end point is located.
[0124] In this step, the preset area can be obtained by any of the following two methods:
[0125] Method 1: The preset area may be an area obtained by pre-dividing the target area. When dividing the target area, the rivers, mountains or other artificially constructed areas that are difficult to pass through in the target area may be used as the basis for division, for example, map blocks pre-divided in the target area.
[0126] Method 2: The preset area may be an area of a preset shape centered at the starting point or end point of any experience route in the target area. The preset shape may be a geometric shape such as a circle, a square, an ellipse, etc.
[0127] It should be noted that, since the preset area obtained by the second method, that is, the preset area obtained by dividing the area with the starting point or end point of the empirical route as the center, there may be a phenomenon that both sides of impassable obstacles such as rivers and mountains belong to the same preset area, this will cause the route subsequently planned in the preset area to have problems crossing obstacles such as rivers or mountains, which will cause the planned route to be impassable. Therefore, when obtaining the preset area, the implementation method of the first method is preferred, and the target area is divided into multiple map blocks (that is, each map block is a preset area). Since the map blocks are usually divided by rivers, mountains, etc., the two sides of the river or mountain range will not be included in the same map block, thereby effectively avoiding planning a route that crosses the target obstacle during subsequent path planning, thereby avoiding the planned route being impassable or difficult to pass, and can effectively improve the reliability of the planned route.
[0128] In addition, when determining the first preset area where the target starting point is located and the second preset area where the target end point is located, the position coordinates of the target starting point can be obtained, and the preset area where the position coordinates are located can be used as the first preset area to which the target starting point belongs. Similarly, the position coordinates of the target end point can be obtained, and the preset area where the position coordinates of the target end point are located can be used as the second preset area to which the target end point belongs.
[0129] Step 103: Acquire a target area road section between the first preset area and the second preset area.
[0130] The target area section is a local section of at least one experience route between the first preset area and the second preset area.
[0131] A possible implementation of this step is: before performing route planning, a regional road segment between every two preset areas in the target area can be pre-generated offline; when performing route planning, a regional road segment pre-generated between every two preset areas in a plurality of the preset areas is obtained, and the target regional road segment between the first preset area and the second preset area is obtained from the regional road segments. The regional road segment can be pre-generated in the following manner:
[0132] First, obtain at least one experience route in the target area.
[0133] The experience route is formed by the driving trajectory of the target object in historical time; the target object can be a delivery person in a delivery platform, or a driving trajectory reported by a user in a map operation platform.
[0134] The empirical route may be determined by obtaining the driving trajectory of the target object in a historical time period, counting the number of driving trajectories in each road section, and determining the road section as an empirical route when the number of driving trajectories in the road section is greater than or equal to a preset number threshold.
[0135] Secondly, for each of the at least one experience route, a third preset area where one end of the experience route is located and a fourth preset area where the other end of the experience route is located are determined from the plurality of preset areas.
[0136] Again, a first intersection point between the empirical route and the third preset area, and a second intersection point between the empirical route and the fourth preset area are obtained.
[0137] Finally, the section between the first intersection point and the second intersection point in the experience route is determined as the regional section.
[0138] It should be noted that before performing route planning, the regional road sections between every two preset areas in the target area are pre-generated offline. When performing route planning, the pre-generated regional road sections are directly called, which can reduce the time spent on online route planning and improve the efficiency of route planning.
[0139] Another possible implementation of this step is: during the route planning process, the target area road segment may be directly generated by using the following online generation method, which may include the following steps:
[0140] S1, obtaining at least one experience route in the target area.
[0141] The empirical route is formed by the driving trajectory of the target object in historical time.
[0142] S2, determining a target experience route from at least one of the experience routes.
[0143] Among them, one end of the target experience route is located in the first preset area, and the other end is located in the second preset area.
[0144] S3, obtaining a third intersection of the target experience route and the first preset area, and a fourth intersection of the target experience route and the second preset area, and determining the section between the third intersection and the fourth intersection in the target experience route as the target area section.
[0145] It should be noted that since the empirical route is highly real-time and needs to be constantly updated, during the route planning process, the target area section is directly generated online to ensure that the adopted empirical route is an empirical route updated in real time and is a valid route for current driving, thereby ensuring the effectiveness of the generated target area section.
[0146] Step 104, generating a target planned route according to the target starting point, the target end point and the target area section.
[0147] In this step, the first endpoint and the second endpoint of the target area section can be determined, the first endpoint is the intersection of the target area section and the first preset area, and the second endpoint is the intersection of the target area section and the second preset area; the starting route between the target starting point to the first endpoint and the terminal route between the second endpoint to the target terminal are obtained; the starting route, the target area section and the terminal route are spliced to obtain the target planned route.
[0148] A possible implementation of this step is to obtain the starting route between the target starting point and the first end point through a route calculation algorithm, and also obtain the end route between the second end point and the target end point through the route calculation algorithm. The route calculation algorithm can adopt a conventional algorithm in the art, such as the Dijkstra algorithm, which will not be described in detail in this disclosure.
[0149] The above technical scheme can improve the probability of matching the empirical route by matching the first preset area where the starting point of the route to be planned is located with the second preset area where the end point is located, and plan the target planned route between the target starting point and the target end point according to the empirical route between the first preset area and the second preset area, which can improve the utilization rate of the empirical route. Moreover, since the empirical route is generated according to the driving trajectory in the historical time, it is an effective and reliable route. Therefore, the target planned route generated according to the empirical route planning can effectively avoid congestion, detours or impassable problems, which can effectively improve the path planning efficiency and ensure the effectiveness and reliability of the target planned route.
[0150] Figure 2 is a flowchart of a route planning method shown in another exemplary embodiment of the present disclosure; see Figure 2 The method is applied to the server and may include the following steps:
[0151] Step 201, obtaining at least one experience route in a target area.
[0152] The experience route is formed by the driving trajectory of the target object in the historical time; the target object can be a delivery person in the target delivery platform, or a driving trajectory reported by a user in the map operation platform. The target area can be an area within a pre-configured specified range, such as a geographical area of a city, or, for the delivery field, the target area can also be a delivery area configured by the delivery platform for order delivery management, which is not limited in this disclosure.
[0153] In this step, the driving trajectory of the target object in the historical time period can be obtained, and the number of driving trajectories in each road section can be counted. When the number of driving trajectories in the road section is greater than or equal to a preset number threshold, the road section is determined as an experience route.
[0154] For example, see Figure 3a , take the historical time period of 7 days and the preset number threshold of 3 as an example. If the target object's driving trajectories within 7 days are L1, L2, L3, L4 and L5, among which, driving trajectory L1 is from location A via road section l1 to location B, and then from location B via road section l2 to location C, driving trajectory L2 is from location B via road section l2 to location C, and then from location C via road section l3 to location D, driving trajectory L3 is from location E via road section l4 to location B, and then from location B via road section l2 to location C, and then from location C via road section l 5 to location F, driving trajectory L4 is from location G via section l6 to location H, then from location H via section l7 to location B, then from location B via section l2 to location C, driving trajectory L5 is from location G via section l6 to location H, then from location H via section l8 to location D. Since driving trajectories L1, L2, L3, and L4 all pass through section l2, the number of driving trajectories appearing on section l2 is 4, and the number of driving trajectories appearing on section l2 is greater than 3, it can be determined that section l2 is an experienced route.
[0155] Step 202: for each of the at least one experience route, determine, from the plurality of preset areas, a third preset area where one end point of the experience route is located and a fourth preset area where another end point of the experience route is located.
[0156] The preset area may be an area obtained by pre-dividing the target area. When dividing the target area, the rivers, mountains or other artificially constructed areas that are difficult to pass through in the target area may be used as the basis for division, for example, the map blocks pre-divided in the target area. For example, taking the target area as City A, there are two T-shaped mountains in City A. The mountains in the north-south direction and the mountains in the east-west direction divide City A into three preset areas, where the mountains in the east-west direction are the boundaries, the north side of the mountain is Area A1, the south side of the mountain is Area A2 and Area A3, and the mountains in the north-south direction are the dividing line between Area A2 and Area A3.
[0157] In addition, the preset area can also be an area of a preset shape centered on the starting point or end point of any experience route in the target area. The preset shape can be a geometric shape such as a circle, a square, an ellipse, etc.
[0158] A possible implementation of this step is: determining the map block (or area of preset shape) to which one end point of the empirical route belongs according to the position coordinates of the one end point of the empirical route, and determining the map block (or area of preset shape) to which the one end point belongs as the third preset area; determining the map block (or area of preset shape) to which the other end point of the empirical route belongs according to the position coordinates of the other end point of the empirical route, and determining the map block (or area of preset shape) to which the other end point belongs as the fourth preset area. The implementation method of determining the area to which the position coordinates belong according to the position coordinates in the present disclosure can refer to the implementation method in the prior art, and the present disclosure is not limited to this.
[0159] It should be noted that, if there are impassable areas such as rivers or mountains in the target area, if the preset area is an area of a preset shape centered on the starting point or end point of the experience route, there may be impassable obstacles such as rivers or mountains in the preset area, which will cause the route subsequently planned in the preset area to cross obstacles such as rivers or mountains, thereby causing the problem that the planned route is impassable. Therefore, in this step, if there are impassable areas such as rivers or mountains in the target area, the preset area can be set as a map block pre-divided in the target area. Since map block division usually uses rivers or mountains as the boundary of the plate division, usually the two sides of a large river or mountain range will not belong to the same map block. Therefore, when the preset area is a map block, it can effectively avoid generating a route across the impassable area when generating the starting route or the end route in the preset area, thereby avoiding the impassability of the planned route and effectively improving the reliability of the planned route. Since the division of the map block belongs to the prior art, the specific implementation method of dividing the map block in the present disclosure can refer to the division method in the prior art, and the present disclosure does not limit this.
[0160] Step 203: Obtain a first intersection point between the empirical route and the third preset area, and a second intersection point between the empirical route and the fourth preset area.
[0161] Step 204: determine the section between the first intersection and the second intersection in the experience route as the regional section.
[0162] The area road section is used to generate the target planning route between the first target position in the third preset area and the second target position in the fourth preset area. The first target position can be any position in the third preset area, and the second target position can be any position in the fourth preset area.
[0163] For example, see Figure 3b The empirical route L is an empirical route generated by the driving trajectory of the delivery personnel in the target platform in the past 7 days. One endpoint of the empirical route L is point S, and the other endpoint is point T. The map block where point S is located is K1, and the map block where point T is located is K2. The intersection point of the empirical route L and the map block K1 is F1, and the intersection point of the empirical route L and the map block K2 is F2. The section between F1 and F2 in the empirical route L is the target area section corresponding to the empirical route L.
[0164] In this way, through steps 201 to 204, regional sections between each two preset areas in multiple preset areas can be pre-generated based on the existing empirical routes in the target area. When performing route planning, the target area section between the first preset area and the second preset area can be directly obtained from the regional sections, that is, the target area section can be directly retrieved, which can improve the efficiency of route planning, improve the utilization rate of the empirical routes in the target area, and improve the effectiveness of the generated target planning route.
[0165] Step 205, obtaining the first position of the target rider.
[0166] The first position may be the starting position of the target rider to depart.
[0167] Step 206, determine at least one waiting order within the target area where the target rider is located based on the first position, and obtain the second position of the merchant corresponding to each waiting order.
[0168] The target area may be an area within a preset range centered at the first position.
[0169] Step 207: taking the first position as the target starting point and the second position as the target end point.
[0170] In this step, when there are multiple waiting orders in the target area, the target starting point and target end point corresponding to each waiting order can be determined, and the target starting points of the multiple waiting orders can all be the first position.
[0171] Step 208: Determine, from the plurality of preset areas within the target area, a first preset area where the target start point is located and a second preset area where the target end point is located.
[0172] It should be noted that the specific implementation method of determining the first preset area where the target starting point is located and the second preset area where the target end point is located in this step can refer to the implementation process corresponding to determining the third preset area where one end point of the empirical route is located and the fourth preset area where the other end point is located described in the above step 202, and the present disclosure will not repeat them here.
[0173] Step 209: acquiring a target area road section between the first preset area and the second preset area from the area road section.
[0174] The target area section is a local section of at least one experience route between the first preset area and the second preset area.
[0175] It should be noted that the regional road section between every two preset areas in the target area has been generated in steps 201 to 204. In this step, when the first preset area and the second preset area are determined, the target area road section between the first preset area and the second preset area can be directly obtained from the regional road section. Among them, if the target starting point (or target end point) is in the first preset area, and there are multiple experience routes of the target end point (or target starting point) in the second preset area, there will be multiple target area sections. When there are multiple target area sections, the steps described in steps 210 to 212 below are performed on each target area section to generate a target planning route corresponding to each target area section, thereby obtaining multiple target planning routes.
[0176] Step 210: determine a first endpoint and a second endpoint of the target area road segment.
[0177] The first endpoint is an intersection of the target area section and the first preset area, and the second endpoint is an intersection of the target area section and the second preset area.
[0178] Step 211, obtaining a starting route from the target starting point to the first end point, and a terminal route from the second end point to the target end point.
[0179] In this step, the starting route between the target starting point and the first end point can be obtained by a route calculation algorithm, and the terminal route between the second end point and the target end point can also be obtained by the route calculation algorithm. Among them, the route calculation algorithm is relatively common in the art and will not be described in detail in this disclosure.
[0180] Step 212, splicing the starting route, the target area section and the terminal route to obtain the target planned route.
[0181] A possible implementation method of this step is: connecting the end of the starting route with the first end point of the target area section, and connecting the second end point of the target area section with the beginning of the terminal route to form a through route from the target starting point to the target end point.
[0182] For example, Figure 3b For example, when the target starting point of the route to be planned is point M and the target end point is point N, the first preset area where point M is located is map block K1, and the second preset area where point N is located is map block K2. The target planned section l between the map block K1 and the map block K2 is obtained. b (i.e. the section between F1 and F2), and generate the starting route l between point M and F1 through the route calculation algorithm a and the terminal route l between the N point and the F2 c , the starting route l a , target planning section l b and the terminal route l c After splicing, a route l is generated from point M through the starting point a To point F1, and then from point F1 through the target planning section l b To point F2, from point F2 through the end route l c The target planned route to point N includes a partial section of the empirical route L, which is generated by the driving trajectory of the delivery person in the target platform. Therefore, the target planned route generated according to the empirical route L can effectively avoid congestion, detours or impassable problems, thereby ensuring the effectiveness and reliability of the target planned route.
[0183] Step 213, determining the order receiving route corresponding to each of the waiting orders according to the generated target planning route corresponding to each of the waiting orders.
[0184] It should be noted that when there are multiple target area road sections between the target starting point and the target end point corresponding to each pending order, each pending order corresponds to at least one of the target planned routes. This step needs to determine the order receiving route corresponding to the pending order from at least one of the target planned routes corresponding to each pending order through the following implementation method.
[0185] Method 1: The target planned route with the shortest distance among the target planned routes corresponding to each pending order is used as the order receiving route corresponding to the pending order.
[0186] Method 2: The target delivery route with the largest historical traffic ratio among the target planning routes corresponding to each pending order is used as the order receiving route corresponding to the pending order.
[0187] Among them, the historical passage ratio refers to the ratio of the number of passes corresponding to each target planned route to the total number of passes between the target starting point and the target end point in the historical time.
[0188] For example, the first position where the target rider is currently located is the target position A, and the second position where the merchant corresponding to a pending order is located is the target position B. The target position A (target starting point) and the target position B (target end point) include the target planning route I, the target planning route II and the target planning route III. In the delivery platform, the total number of deliveries between the target position A and the target position B (including from the target position A to the target position B, and from the target position B to the target position A) within one month is 100, that is, the total number of passes is 100, where , the number of times the target planning route I is used for delivery is 23, that is, the number of times the target planning route I is passed is 23, the number of times the target planning route II is used for delivery is 46, that is, the number of times the target planning route II is passed is 46, the number of times the target planning route III is used for delivery is 31, that is, the number of times the target planning route III is passed is 31, then the historical passage ratio of the target planning route I is 0.23, the historical passage ratio of the target planning route II is 0.46, and the historical passage ratio of the target planning route III is 0.31.
[0189] Step 214, determining a recommended delivery order from at least one of the pending orders based on the order receiving route.
[0190] In this step, a possible implementation method is: obtain the route distance of the order receiving route corresponding to each waiting order among multiple waiting orders, and determine the waiting order corresponding to the order receiving route whose route distance among the multiple waiting orders is within a preset distance range as the recommended delivery order.
[0191] Step 215, sending the recommended delivery order to the terminal corresponding to the target rider, so that the terminal displays the recommended delivery order.
[0192] When displaying the recommended delivery order, the merchant name and order item list of the recommended delivery order, as well as the second location of the merchant, may be displayed.
[0193] In this way, in the order recommendation scenario, the delivery recommendation order is provided to the user according to the target planning route corresponding to each waiting order through steps 213 to 215, and the delivery recommendation order with high planning route effectiveness can be provided to the user, thereby effectively improving the delivery efficiency of the delivery personnel. After the delivery recommendation order is displayed to the user, the target order receiving route corresponding to the target recommended order in the delivery recommendation order can be displayed to the user through the following steps 216 to 218, so that the user can complete the order receiving task according to the target order receiving route.
[0194] Step 216, receiving a path acquisition request message sent by the terminal;
[0195] Step 217, in response to receiving the path acquisition request message sent by the terminal, determining the target order receiving route corresponding to the target recommended order.
[0196] Among them, when the user clicks on the delivery recommendation list in the preset interface through the terminal, the terminal can send the path acquisition request message to the server. When the server receives the path acquisition request message, the order receiving route corresponding to the delivery recommended order is determined as the target order receiving route.
[0197] Step 218, sending the target order receiving route to the terminal so that the terminal displays the target order receiving route.
[0198] It should be noted that the specific implementation method of displaying the target node route can refer to the method of displaying the navigation route in the prior art. There are many methods of displaying the navigation route in the prior art, and the present disclosure does not limit this.
[0199] The above technical solution, by calling the pre-generated target area road section, obtains the starting route between the target starting point and the first end point, and the terminal route between the second end point and the target end point, and splices the starting route, the target area road section and the terminal route into the target planned route. It can improve the efficiency of route planning, improve the utilization rate of experience routes, and provide users with more reliable target order-taking routes, thereby effectively improving the user's order delivery efficiency.
[0200] Figure 4 is a flowchart of a method for order recommendation shown in another exemplary embodiment of the present disclosure; see Figure 4 The method is applied to a terminal and may include the following steps:
[0201] Step 401, obtaining the first position of the target rider.
[0202] The terminal may include a positioning device, such as a GPS (Global Positioning System) locator, through which the first position where the target rider is currently located is obtained.
[0203] Step 402, sending the first position to the server, so that the server determines at least one waiting order in the target area where the target rider is located according to the first position, and obtains the second position of the merchant corresponding to each of the waiting orders, and determines the first preset area where the first position is located and the second preset area where the second position is located from multiple preset areas in the target area, and obtains the target area section between the first preset area and the second preset area, the target area section is a local section of at least one experienced route between the first preset area and the second preset area, and generates a target planned route according to the first position, the second position and the target area section, and determines the order receiving route corresponding to each of the waiting orders according to the generated target planned route corresponding to each of the waiting orders, and determines the delivery recommended order from at least one of the waiting orders according to the order receiving route.
[0204] The relevant implementation methods of the server in this step can refer to the above Figure 2 The implementation method described in steps 206 to 214 will not be repeated in this disclosure.
[0205] Step 403, receiving the recommended delivery order sent by the server, and displaying the recommended delivery order.
[0206] After this step, the method may also include determining the target recommended order selected by the user from the displayed delivery recommended orders; sending a path acquisition request message to the server, so that the server determines the target order receiving route corresponding to the target recommended order based on the path acquisition request message; receiving the target order receiving route corresponding to the target recommended order sent by the server, and displaying the target order receiving route.
[0207] The above technical solution receives the recommended delivery order sent by the server and displays the recommended delivery order. Since the recommended delivery order is a waiting order determined by the server based on the target planned route between the first position of the target rider and the second position of each merchant corresponding to the waiting order, the target planned route is a route planned based on a local section of the experience route between the first preset area where the first position is located and the second preset area where the second position is located, it can provide the delivery personnel with a delivery recommended order with a higher planning route effectiveness, thereby effectively improving the delivery efficiency of the delivery personnel.
[0208] Figure 5 is a flowchart of a route planning method shown in another exemplary embodiment of the present disclosure; see Figure 5 , the method may include the following steps:
[0209] Step 501: The terminal obtains the first location of the target rider.
[0210] Step 502: The terminal sends the first location to a server.
[0211] Step 503, the server determines at least one waiting order within the target area where the target rider is located based on the first position, and obtains the second position of the merchant corresponding to each waiting order, and determines the first preset area where the first position is located and the second preset area where the second position is located from multiple preset areas within the target area, and obtains the target area section between the first preset area and the second preset area.
[0212] The target area section is a local section of at least one experience route between the first preset area and the second preset area.
[0213] In step 504, the server generates a target planned route based on the first location, the second location and the target area road section, determines an order receiving route corresponding to each pending order based on the generated target planned route corresponding to each pending order, and determines a recommended delivery order from at least one of the pending orders based on the order receiving route.
[0214] In this step, the server can obtain the route distance of the order receiving route corresponding to each pending order among multiple pending orders, and determine the pending orders corresponding to the order receiving routes whose route distances among the multiple pending orders are within a preset distance range as the recommended delivery orders, wherein the recommended delivery orders may include at least one.
[0215] Step 505: the server sends the recommended delivery order to the terminal corresponding to the target rider.
[0216] Step 506: the terminal receives the recommended delivery order sent by the server and displays the recommended delivery order.
[0217] For example, when displaying the recommended delivery order, the merchant name and order item list of the recommended delivery order, as well as the second location of the merchant, may be displayed. Figure 6 As shown, Figure 6 A schematic diagram showing a recommended delivery order is shown as another exemplary embodiment of the present disclosure; the recommended delivery order includes Order 1 (Merchant Name: XX Milk Tea Shop, Order Item: 2 cups of blueberry milk tea, Merchant Location: Address A), Order 2 (Merchant Name: XX Fruit Shop, Order Item: 500g apples, 250g bananas, Merchant Location: Address B) and Order 3 (Merchant Name: XX Supermarket, Order Item: 1 bag of X rice, Merchant Location: Address C).
[0218] Step 507: The terminal determines the target recommended order selected by the user from the displayed delivery recommended orders.
[0219] For example, Figure 6 Taking an example, if the user clicks on Order 2 in the terminal interface, it means that the target recommended order selected by the user is Order 2. After the user clicks on Order 2, the terminal can enter another target interface, in which the target order route corresponding to Order 2 can be displayed, so that the user can reach the location of the merchant in Order 2 according to the target order route.
[0220] Step 508: The terminal sends a path acquisition request message to the server.
[0221] Among them, when the terminal displays the target recommended order, it can generate a preset path acquisition button, and send a path acquisition request message to the server by clicking the preset path acquisition button. The path acquisition request message can include the order identification information of the target recommended order, and the order identification information can be the order number or the order name.
[0222] Step 509: The server determines the target order-taking route corresponding to the target recommended order according to the path acquisition request message.
[0223] In this step, after the server receives the path acquisition request message, the target order receiving route corresponding to the target recommended order is obtained according to the order identification information in the path acquisition request message, and the target order receiving route is the order receiving route corresponding to the target recommended order.
[0224] Step 510: The server sends the target order route to the terminal.
[0225] Step 511: The terminal displays the target order-taking route.
[0226] The above technical scheme obtains the first location of the target rider through the terminal, determines the target recommended order from multiple waiting orders through the server according to the target planned route between the first location and the second location of each merchant corresponding to the waiting order, and displays the target order-taking route corresponding to the target recommended order to the user through the terminal. Since the target planned route is a route planned according to a local section of the experience route between the first preset area where the first location is located and the second preset area where the second location is located, the target recommended order determined from multiple waiting orders according to the target planned routes corresponding to multiple waiting orders can recommend target recommended orders with higher reliability of target order-taking routes to users, and can provide users with target order-taking routes with higher reliability, thereby effectively improving the user's order delivery efficiency.
[0227] Figure 7 is a block diagram of a route planning device shown in another exemplary embodiment of the present disclosure; see Figure 7 , the device may include:
[0228] The first acquisition module 701 is configured to acquire a target starting point and a target end point of a route to be planned in a target area;
[0229] The first determination module 702 is configured to determine, from a plurality of preset areas within the target area, a first preset area where the target start point is located and a second preset area where the target end point is located;
[0230] The second acquisition module 703 is configured to acquire a target area section between the first preset area and the second preset area, where the target area section is a local section of at least one experience route between the first preset area and the second preset area;
[0231] The generation module 704 is configured to generate a target planned route according to the target starting point, the target end point and the target area section.
[0232] The above technical scheme can improve the probability of matching the empirical route by matching the first preset area where the starting point of the route to be planned is located with the second preset area where the end point is located, and plan the target planned route between the target starting point and the target end point according to the empirical route between the first preset area and the second preset area, which can improve the utilization rate of the empirical route. Moreover, since the empirical route is generated according to the driving trajectory in the historical time, it is an effective and reliable route. Therefore, the target planned route generated according to the empirical route planning can effectively avoid congestion, detours or impassable problems, thereby ensuring the effectiveness and reliability of the target planned route.
[0233] Figure 8 is based on Figure 7 A block diagram of a route planning device is shown in the embodiment shown; see Figure 7 , the device further comprises:
[0234] The third acquisition module 705 is configured to acquire a plurality of pre-generated regional road sections between every two preset areas in the preset area;
[0235] Correspondingly, the second acquisition module 703 is configured to acquire the target area road section between the first preset area and the second preset area from the area road section.
[0236] The third acquisition module 705 may include:
[0237] The first acquisition submodule 7051 is configured to acquire at least one experience route in the target area, where the experience route is formed by the driving trajectory of the target object in historical time;
[0238] The first determining submodule 7052 is configured to determine, for each of the at least one experience route, from the plurality of preset areas, a third preset area where one end of the experience route is located and a fourth preset area where the other end is located;
[0239] The first generating submodule 7053 is configured to obtain a first intersection point between the empirical route and the third preset area, and a second intersection point between the empirical route and the fourth preset area;
[0240] The second determining submodule 7054 is configured to determine the section between the first intersection and the second intersection in the experience route as the target area section.
[0241] Optionally, the second acquisition module 703 includes:
[0242] The second acquisition submodule 7031 is configured to acquire at least one experience route in the target area, where the experience route is formed by the driving trajectory of the target object in historical time;
[0243] The third determining submodule 7032 is configured to determine a target experience route from at least one of the experience routes, wherein one end of the target experience route is located in the first preset area and the other end is located in the second preset area;
[0244] The fourth determination submodule 7033 is configured to obtain the third intersection of the target experience route and the first preset area, and the fourth intersection of the target experience route and the second preset area, and determine the section between the third intersection and the fourth intersection in the target experience route as the target area section.
[0245] Optionally, the generating module 704 includes:
[0246] A fifth determination submodule 7041 is configured to determine a first endpoint and a second endpoint of the target area segment, the first endpoint being an intersection of the target area segment and the first preset area, and the second endpoint being an intersection of the target area segment and the second preset area;
[0247] The third acquisition submodule 7042 is configured to acquire a starting route between the target starting point and the first end point, and a terminal route between the second end point and the target end point;
[0248] The second generation submodule 7043 is configured to splice the starting route, the target area section and the terminal route to obtain the target planned route.
[0249] Optionally, the preset area includes map blocks pre-divided within the target area.
[0250] Optionally, the device further comprises:
[0251] The fourth acquisition module 706 is configured to acquire a first position of the target rider;
[0252] The second determination module 707 is configured to determine at least one waiting order in the target area where the target rider is located according to the first location, and obtain a second location of a merchant corresponding to each waiting order;
[0253] Accordingly, the first acquisition module 701 is configured to use the first position as the target starting point and the second position as the target end point.
[0254] Optionally, the device further comprises:
[0255] The third determining module 708 is configured to determine the order receiving route corresponding to each of the waiting orders according to the generated target planning route corresponding to each of the waiting orders;
[0256] The fourth determining module 709 is configured to determine a recommended delivery order from at least one of the waiting orders according to the order receiving route;
[0257] The first sending module 710 is configured to send the recommended delivery order to the terminal corresponding to the target rider, so that the terminal displays the recommended delivery order.
[0258] Optionally, the third determining module 708 includes:
[0259] The sixth determining submodule 7081 is configured to use the target planned route with the shortest distance among the target planned routes corresponding to each of the pending orders as the order receiving route corresponding to the pending order;
[0260] or,
[0261] The seventh determination submodule 7082 is configured to use the target delivery route with the largest historical traffic ratio among the target planned routes corresponding to each waiting order as the order receiving route corresponding to the waiting order.
[0262] Optionally, the device further comprises:
[0263] The first receiving module 711 is configured to receive a route acquisition request message sent by the terminal after the terminal determines the target recommended order selected by the user from the displayed recommended delivery orders;
[0264] A fifth determining module 712 is configured to determine a target order receiving route corresponding to the target recommended order in response to receiving the route acquisition request message sent by the terminal;
[0265] The second sending module 713 is configured to send the target order receiving route to the terminal so that the terminal displays the target order receiving route.
[0266] The above technical solution, by calling the pre-generated target area road section, obtains the starting route between the target starting point and the first end point, and the terminal route between the second end point and the target end point, and splices the starting route, the target area road section and the terminal route into the target planned route. It can improve the efficiency of route planning, improve the utilization rate of experience routes, and provide users with more reliable target order-taking routes, thereby effectively improving the user's order delivery efficiency.
[0267] Fig. 9 is a block diagram of a device for providing an order recommendation according to another exemplary embodiment of the present disclosure; see Fig. 9 , applied to terminals, including:
[0268] A fifth acquisition module 901 is configured to acquire a first position of a target rider;
[0269] The third sending module 902 is configured to send the first position to the server, so that the server determines at least one waiting order in the target area where the target rider is located according to the first position, and obtains the second position of the merchant corresponding to each of the waiting orders, and determines the first preset area where the first position is located and the second preset area where the second position is located from multiple preset areas in the target area, and obtains the target area section between the first preset area and the second preset area, the target area section is a local section of at least one experience route between the first preset area and the second preset area, and generates a target planned route according to the first position, the second position and the target area section, and determines the order receiving route corresponding to each of the waiting orders according to the generated target planned route corresponding to each of the waiting orders, and determines the delivery recommended order from at least one of the waiting orders according to the order receiving route;
[0270] The second receiving module 903 is configured to receive the recommended delivery order sent by the server and display the recommended delivery order.
[0271] Optionally, the device further comprises:
[0272] The sixth determining module 904 is configured to determine the target recommended order selected by the user from the displayed delivery recommended orders;
[0273] The fourth sending module 905 is configured to send a path acquisition request message to the server, so that the server determines the target order receiving route corresponding to the target recommended order according to the path acquisition request message;
[0274] The third receiving module 906 is configured to receive the target order receiving route corresponding to the target recommended order sent by the server, and display the target order receiving route.
[0275] The above technical solution receives the recommended delivery order sent by the server and displays the recommended delivery order. Since the recommended delivery order is a waiting order determined by the server based on the target planned route between the first position of the target rider and the second position of each merchant corresponding to the waiting order, the target planned route is a route planned based on a local section of the experience route between the first preset area where the first position is located and the second preset area where the second position is located, it can provide the delivery personnel with a delivery recommended order with a higher planning route effectiveness, thereby effectively improving the delivery efficiency of the delivery personnel.
[0276] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0277] Fig.10 1 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 1000 may be provided as a server. Fig.10 The electronic device 1000 includes a processor 1022, which may be one or more, and a memory 1032 for storing a computer program executable by the processor 1022. The computer program stored in the memory 1032 may include one or more modules, each corresponding to a set of instructions. In addition, the processor 1022 may be configured to execute the computer program to execute the above-mentioned route planning method, or to execute the above-mentioned order recommendation method.
[0278] In addition, the electronic device 1000 may further include a power supply component 1026 and a communication component 1050. The power supply component 1026 may be configured to perform power management of the electronic device 1000, and the communication component 1050 may be configured to implement communication of the electronic device 1000, for example, wired or wireless communication. In addition, the electronic device 1000 may further include an input / output (I / O) interface 1058. The electronic device 1000 may operate based on an operating system stored in the memory 1032, such as Windows Server 2003. TM , Mac OS X TM , Unix TM , Linux TM etc.
[0279] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the route planning method described above are implemented, or the steps of the order recommendation method described above are implemented. For example, the computer-readable storage medium may be the memory 1032 including the program instructions, and the program instructions may be executed by the processor 1022 of the electronic device 1000 to implement the route planning method described above, or the order recommendation method described above.
[0280] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0281] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0282] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A route planning method, characterized in that: Applied to a server, the method comprises: Obtain the target starting point and target end point of the route to be planned in the target area; Determine, from a plurality of preset areas within the target area, a first preset area where the target start point is located and a second preset area where the target end point is located; Acquire a target area section between the first preset area and the second preset area, where the target area section is a local section of at least one experienced route between the first preset area and the second preset area; Generate a target planning route according to the target starting point, the target end point and the target area section; After generating a target planning route according to the target starting point, the target end point and the target area section, the method further includes: Determine the order receiving route corresponding to each of the generated waiting orders according to the target planning route corresponding to each of the waiting orders; Determining a recommended delivery order from at least one of the pending orders according to the order receiving route; Sending the recommended delivery order to a terminal corresponding to a target rider so that the terminal displays the recommended delivery order; The step of acquiring the target area section between the first preset area and the second preset area includes: Acquire at least one empirical route in the target area, where the empirical route is formed by a driving trajectory of the target object in historical time; Determine a target experience route from at least one of the experience routes, wherein one end of the target experience route is located in the first preset area, and the other end of the target experience route is located in the second preset area; A third intersection point between the target experience route and the first preset area and a fourth intersection point between the target experience route and the second preset area are obtained, and a section between the third intersection point and the fourth intersection point in the target experience route is determined as the target area section.
2. The method according to claim 1, characterized in that Before acquiring the target area road section between the first preset area and the second preset area, the method further includes: Acquire a pre-generated regional road section between every two preset areas in a plurality of the preset areas; Correspondingly, the step of obtaining the target area road section between the first preset area and the second preset area includes: The target area section between the first preset area and the second preset area is acquired from the area sections.
3. The method according to claim 2, characterized in that The regional road segments are pre-generated in the following manner: Acquire at least one empirical route in the target area, where the empirical route is formed by a driving trajectory of the target object in historical time; For each of the at least one experience route, determining, from the plurality of preset areas, a third preset area where one end of the experience route is located and a fourth preset area where the other end of the experience route is located; Obtaining a first intersection point between the empirical route and the third preset area, and a second intersection point between the empirical route and the fourth preset area; The section between the first intersection and the second intersection in the experience route is determined as the regional section.
4. The method according to claim 1, characterized in that: The generating of the target planning route according to the target starting point, the target end point and the target area section includes: Determine a first endpoint and a second endpoint of the target area section, the first endpoint being an intersection of the target area section and the first preset area, and the second endpoint being an intersection of the target area section and the second preset area; Acquire a starting route from the target starting point to the first end point, and a terminal route from the second end point to the target end point; The starting route, the target area section and the terminal route are spliced together to obtain the target planned route.
5. The method according to claim 1, characterized in that Before obtaining a target starting point and a target end point of a route to be planned in a target area, the method further includes: Get the first position of the target rider; Determine at least one waiting order in the target area where the target rider is located according to the first location, and obtain a second location of a merchant corresponding to each waiting order; Accordingly, the step of obtaining a target starting point and a target end point of a route to be planned in a target area includes: The first position is used as the target starting point, and the second position is used as the target end point.
6. The method according to claim 1, characterized in that Determining the order receiving route corresponding to each of the to-be-received orders according to the generated target planning route corresponding to each of the to-be-received orders includes: The target planned route with the shortest distance among the target planned routes corresponding to each of the pending orders is used as the order receiving route corresponding to the pending order; Alternatively, the target delivery route with the largest historical traffic ratio among the target planned routes corresponding to each of the pending orders is used as the order receiving route corresponding to the pending order.
7. The method according to claim 1, characterized in that The method further comprises: After the terminal determines the target recommended order selected by the user from the displayed recommended delivery orders, receiving a path acquisition request message sent by the terminal; In response to receiving the route acquisition request message sent by the terminal, determining a target order receiving route corresponding to the target recommended order; The target order receiving route is sent to the terminal so that the terminal displays the target order receiving route.
8. A method for order recommendation, characterized in that: Applied to terminals, including: Get the first position of the target rider; The first position is sent to a server, so that the server determines at least one waiting order in a target area where the target rider is located according to the first position, obtains a second position of a merchant corresponding to each waiting order, and determines a first preset area where the first position is located and a second preset area where the second position is located from multiple preset areas in the target area, and obtains a target area section between the first preset area and the second preset area, the target area section being a partial section of at least one experience route between the first preset area and the second preset area, and generates a target planned route according to the first position, the second position and the target area section, and determines an order receiving route corresponding to each waiting order according to the generated target planned route corresponding to each waiting order, and determines a delivery recommended order from at least one waiting order according to the order receiving route; receiving the recommended delivery order sent by the server, and displaying the recommended delivery order; After generating the target planning route, the method further includes: Determine the order receiving route corresponding to each of the pending orders according to the generated target planning route corresponding to each of the pending orders; Determining a recommended delivery order from at least one of the pending orders according to the order receiving route; Sending the recommended delivery order to a terminal corresponding to the target rider, so that the terminal displays the recommended delivery order; The step of acquiring the target area section between the first preset area and the second preset area includes: Acquire at least one empirical route in the target area, where the empirical route is formed by a driving trajectory of the target object in historical time; Determine a target experience route from at least one of the experience routes, wherein one end of the target experience route is located in the first preset area, and the other end of the target experience route is located in the second preset area; A third intersection point between the target experience route and the first preset area and a fourth intersection point between the target experience route and the second preset area are obtained, and a section between the third intersection point and the fourth intersection point in the target experience route is determined as the target area section.
9. The method according to claim 8, characterized in that After displaying the recommended delivery order, the method further includes: Determining a target recommended order selected by a user from the displayed recommended delivery orders; Sending a path acquisition request message to the server, so that the server determines a target order receiving route corresponding to the target recommended order according to the path acquisition request message; Receive the target order receiving route corresponding to the target recommended order sent by the server, and display the target order receiving route.
10. An order recommendation device, characterized in that: Applied to a terminal, the device comprises: A position acquisition module is configured to acquire a first position of a target rider; A location sending module is configured to send the first location to a server, so that the server determines at least one waiting order in a target area where the target rider is located according to the first location, obtains a second location of a merchant corresponding to each waiting order, and determines a first preset area where the first location is located and a second preset area where the second location is located from multiple preset areas in the target area, and obtains a target area section between the first preset area and the second preset area, the target area section being a partial section of at least one experience route between the first preset area and the second preset area, and generates a target planned route according to the first location, the second location and the target area section, and determines an order receiving route corresponding to each waiting order according to the generated target planned route corresponding to each waiting order, and determines a delivery recommended order from at least one waiting order according to the order receiving route; an order display module, configured to receive the recommended delivery order sent by the server and display the recommended delivery order; After generating the target planning route, it also includes: Determine the order receiving route corresponding to each of the pending orders according to the generated target planning route corresponding to each of the pending orders; Determining a recommended delivery order from at least one of the pending orders according to the order receiving route; Sending the recommended delivery order to a terminal corresponding to the target rider, so that the terminal displays the recommended delivery order; The step of acquiring the target area section between the first preset area and the second preset area includes: Acquire at least one empirical route in the target area, where the empirical route is formed by a driving trajectory of the target object in historical time; Determine a target experience route from at least one of the experience routes, wherein one end of the target experience route is located in the first preset area, and the other end of the target experience route is located in the second preset area; A third intersection point between the target experience route and the first preset area and a fourth intersection point between the target experience route and the second preset area are obtained, and a section between the third intersection point and the fourth intersection point in the target experience route is determined as the target area section.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented; or, when the program is executed by a processor, the steps of the method described in claim 8 or 9 are implemented.
12. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method described in any one of claims 1 to 7; or to implement the steps of the method described in claim 8 or 9.
