A method, device, storage medium and electronic device for order allocation

By clustering merchants and dividing them into time intervals, and combining the binding relationship of delivery capacity and route planning, order allocation is optimized, which solves the problem of low delivery efficiency in supermarket delivery scenarios and achieves efficient delivery when order density is low.

CN113344248BActive Publication Date: 2026-11-27BEIJING SANKUAI ONLINE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110517716.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-12
Publication Date
2026-11-27
Estimated Expiration
2041-05-12

AI Technical Summary

Technical Problem

In the O2O model, especially in supermarket delivery scenarios, users have low requirements for order timeliness and low order density, and existing technologies cannot effectively improve the delivery efficiency of delivery capacity.

Method used

By clustering the locations of merchants to form merchant sets, determining time intervals based on the merchants' historical order data, selecting delivery capacity that is bound to the merchant sets, planning delivery routes, and optimizing order allocation.

Benefits of technology

It improved delivery efficiency, especially during time periods with low order density, through unified order scheduling and route planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113344248B_ABST
    Figure CN113344248B_ABST
Patent Text Reader

Abstract

The specification discloses a method and device for order allocation, a storage medium and an electronic device. According to the positions of various merchants, the merchants can be clustered to obtain a plurality of merchant sets, and a time interval corresponding to each merchant set is determined. A time interval in which the current time is located is determined as a target time interval, a merchant set corresponding to the target time interval is determined as a target merchant set, orders of each merchant in the target merchant set within the target time interval are obtained, a specified distribution capacity is selected according to information of the target time interval, and the orders are allocated to the specified distribution capacity. Through the above content, the specification allocates the orders of each merchant in the target time interval to the specified distribution capacity for distribution, so that the distribution efficiency of the specified distribution capacity in the target time interval is effectively improved. As the current time changes continuously, the merchants corresponding to the target time interval change continuously, and the overall distribution efficiency of the specified distribution capacity is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of data processing technology, and in particular to a method, apparatus, storage medium, and electronic device for order allocation. Background Technology

[0002] Currently, in the Online To Offline (O2O) model, users can generate orders online, merchants provide the products included in the orders, and delivery capacity provides offline delivery services.

[0003] In general, to improve the delivery efficiency of delivery capacity, delivery capacity can be linked to merchants, meaning that the merchant's orders are delivered by delivery capacity that is linked to the merchant.

[0004] However, while the above methods improve delivery efficiency to some extent, they are not effective in improving delivery efficiency in scenarios such as supermarket delivery, where users have lower requirements for order timeliness, and the number and density of orders are small. Summary of the Invention

[0005] This specification provides an order allocation method, apparatus, storage medium, and electronic device to partially address the aforementioned problems in the prior art.

[0006] The embodiments in this specification adopt the following technical solutions:

[0007] This specification provides a method for order allocation, the method comprising:

[0008] Based on the location of each merchant, the merchants are clustered to obtain several merchant sets;

[0009] For each merchant set, determine the corresponding time interval based on the information of each merchant in the set;

[0010] The current time interval is determined as the target time interval, and the set of merchants corresponding to the target time interval is determined as the target merchant set;

[0011] Retrieve orders from each merchant in the target merchant set within the target time interval;

[0012] Based on at least one of the order information, the target time interval information, and the information of each delivery capacity, a designated delivery capacity is selected from the delivery capacity, wherein the designated delivery capacity includes a first delivery capacity that has a binding relationship with each merchant in the target merchant set;

[0013] The order is assigned to the designated delivery capacity.

[0014] Optionally, determining the time interval corresponding to the merchant set based on the information of each merchant in the merchant set includes:

[0015] Obtain historical order data for each merchant in the merchant set, wherein the historical order data includes at least one of historical order quantity and historical order density;

[0016] Based on the historical order data of each merchant in the merchant set, the time interval corresponding to the merchant set is determined. The historical order data of each merchant in the merchant set is positively correlated with the length of the time interval corresponding to the merchant set.

[0017] Optionally, selecting a specific delivery capacity from among the delivery capacity based on at least one of the order information, the target time interval information, and the information of each delivery capacity includes:

[0018] For each delivery capacity, based on the order information, a delivery route is planned for that delivery capacity when the order is assigned to that capacity;

[0019] Based on the delivery routes planned for each delivery capacity, select several delivery capacities that meet the preset conditions;

[0020] Among the selected delivery capacities, the designated delivery capacity is determined.

[0021] Optionally, the delivery capacity also includes a second delivery capacity that is not bound to any of the merchants in the target merchant set, wherein the initial level of the first delivery capacity is higher than the initial level of the second delivery capacity;

[0022] The step of selecting a specific delivery capacity from among the delivery capacity based on at least one of the order information, the target time interval information, and the information of each delivery capacity includes:

[0023] For each primary delivery capacity, the initial level of the primary delivery capacity is redefined based on the delivery route planned for that primary delivery capacity;

[0024] The delivery capacity is sorted according to its initial level;

[0025] Based on the sorting results, select the specified delivery capacity from among the various delivery capacities.

[0026] Optionally, determining the designated delivery capacity from the selected delivery capacities includes:

[0027] For each selected delivery capacity, based on at least one of the expected delivery time of the order and the target time interval, the delivery efficiency of the delivery capacity is determined when the order is assigned to that delivery capacity.

[0028] Based on the delivery efficiency of each delivery capacity, the designated delivery capacity is determined from among all delivery capacity.

[0029] Optionally, the step of clustering merchants based on their locations to obtain several merchant sets includes:

[0030] Based on the location of each merchant and a preset first distance threshold, several merchants are selected as target merchants for clustering, wherein the distance between the locations of any two target merchants is less than the first distance threshold.

[0031] Based on the location of each target merchant and a preset second distance threshold, the target merchants are clustered, wherein the distance between any two merchants in the same merchant set is less than the second distance threshold.

[0032] Optionally, obtaining the orders of each merchant in the target merchant set within the target time interval includes:

[0033] From the pending orders of each merchant in the pre-acquired target merchant set, select the pending orders whose expected delivery time is within the target time interval;

[0034] Specifically, the pending orders of each merchant in the target merchant set are obtained in advance through the following method:

[0035] Obtain pending orders generated by users through their terminals for each merchant included in the target merchant set;

[0036] The terminal is sent with a number of predetermined time intervals corresponding to the target merchant set, so that the user can select a time interval from the time intervals corresponding to the target merchant set through the terminal as the time interval in which the expected delivery time of the pending order is located.

[0037] This specification provides an order allocation apparatus, the apparatus comprising:

[0038] The clustering module is used to cluster merchants based on their location, resulting in several merchant sets.

[0039] The first determining module is used to determine the time interval corresponding to each merchant set based on the information of each merchant in the merchant set;

[0040] The second determining module is used to determine the time interval where the current moment is located as the target time interval, and the set of merchants corresponding to the target time interval as the target merchant set;

[0041] The acquisition module is used to acquire orders from each merchant in the target merchant set within the target time interval;

[0042] The selection module is used to select a specified delivery capacity from among the delivery capacity based on at least one of the order information, the target time interval information, and the information of each delivery capacity, wherein the specified delivery capacity includes a first delivery capacity that has a binding relationship with each merchant in the target merchant set;

[0043] The allocation module is used to allocate the order to the designated delivery capacity.

[0044] This specification provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described order allocation method.

[0045] This specification provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the above-described order allocation method.

[0046] The above-described at least one technical solution used in the embodiments of this specification can achieve the following beneficial effects:

[0047] In this specification, merchants are clustered based on their locations, resulting in several merchant sets. For each merchant set, the corresponding time interval is determined based on the information of each merchant within that set. The current time interval is identified as the target time interval, and the merchant set corresponding to that target time interval is defined as the target merchant set. Therefore, orders from each merchant within the target merchant set within the target time interval can be retrieved. Based on order information, target time interval information, and delivery capacity information, a designated delivery capacity is selected. This designated delivery capacity includes the first delivery capacity that is linked to each merchant in the target merchant set, and orders are assigned to this designated delivery capacity. Through the above, this specification uniformly arranges designated delivery capacity for the delivery of orders from each merchant within the target time interval, thereby effectively improving the delivery efficiency of the designated delivery capacity within the target time interval. As the current time changes, the merchants corresponding to the target time interval also change, further enhancing the overall delivery efficiency of the designated delivery capacity. Attached Figure Description

[0048] The accompanying drawings, which are included to provide a further understanding of this specification and form part of this specification, illustrate exemplary embodiments and are used to explain this specification, but do not constitute an undue limitation thereof. In the drawings:

[0049] Figure 1 A flowchart illustrating an order allocation method provided in an embodiment of this specification;

[0050] Figure 2 This diagram illustrates a clustering of businesses as provided in an embodiment of this specification.

[0051] Figure 3 This is a schematic diagram of a first delivery capacity delivery order provided in the embodiments of this specification;

[0052] Figure 4 A schematic diagram of an order allocation device provided for an embodiment of this specification;

[0053] Figure 5 The embodiments provided in this specification correspond to Figure 1 A schematic diagram of an electronic device. Detailed Implementation

[0054] To make the objectives, technical solutions, and advantages of this specification clearer, the technical solutions of this specification will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of them. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this specification.

[0055] In general, to improve the delivery efficiency of delivery capacity, two methods can be adopted. One is to bind delivery capacity with merchants, that is, the merchant's orders are only delivered by the delivery capacity that is bound to the merchant (also known as the primary delivery capacity). The other is to guide users to place orders through the terminal, thereby increasing the order density (i.e., the number of orders per unit time) and thus increasing the number of orders delivered by delivery capacity per unit time.

[0056] However, in practice, different delivery scenarios present different characteristics for each order, and neither of the above methods can meet the needs. For example, in food delivery scenarios, users have much higher requirements for order timeliness than in other scenarios, and using only the second method would obviously harm the user experience. Similarly, in supermarket delivery scenarios, the order density of each merchant is relatively low, and using only the first method may result in a mismatch between the delivery capacity resources required for order delivery and the resources of the first delivery capacity. That is, when the order density is high, the workload of the first delivery capacity is too heavy, making it impossible to guarantee the timeliness of orders; when the order density is low, the workload of the first delivery capacity is not saturated, resulting in low delivery efficiency.

[0057] Therefore, this specification combines the above two methods to provide an order allocation method, thereby partially solving the problems existing in the above content. The technical solutions provided by the various embodiments of this specification are described in detail below with reference to the accompanying drawings.

[0058] Figure 1 A flowchart illustrating an order allocation method provided in this specification embodiment may specifically include the following steps:

[0059] S100: Based on the location of each merchant, cluster the merchants to obtain several merchant sets.

[0060] In this manual, for each merchant, two methods can be used to improve delivery efficiency: binding delivery capacity to the merchant and aggregating orders. Considering that some merchants may have low order density, using either of these methods alone may not be sufficient to significantly improve delivery efficiency. Therefore, this manual allows for a system where delivery capacity is bound to each merchant, and orders are aggregated for each merchant, enabling centralized delivery of each merchant's orders after order aggregation.

[0061] Specifically, the merchants can first be clustered to obtain several merchant sets, so that the delivery capacity can be distributed in batches to the orders of each merchant in each merchant set.

[0062] When clustering merchants, several merchants can be selected as target merchants for clustering based on their locations and a preset first distance threshold, wherein the distance between any two target merchants is less than the first distance threshold. Then, based on the locations of each target merchant and a preset second distance threshold, each target merchant can be clustered, wherein the distance between any two merchants in the same merchant set is less than the second distance threshold.

[0063] Specifically, considering that when delivering orders, delivery capacity needs to reach the merchant to pick up the products included in the order and then deliver the products to the delivery address specified in the order, when clustering merchants, the first step is to consider the distance between merchants based on their location. Target merchants for clustering can be selected, and the distance between target merchants should not exceed a first distance threshold. This is because the same delivery capacity is bound to each target merchant; in other words, the same delivery capacity can deliver orders from each target merchant. To further improve the efficiency of delivery capacity, it is necessary to limit the distance between target merchants.

[0064] After identifying the target merchants, clustering results can be obtained based on their locations, with the condition that the distance between any two target merchants does not exceed a second distance threshold. This results in several merchant sets, each containing one or more target merchants. It's important to note that the first distance threshold is greater than the second distance threshold. This is because, as mentioned above, orders are delivered in batches to each merchant set. In other words, delivery capacity is allocated on a per-merchant-set basis, delivering orders from all merchants within the same set at a time. Therefore, to further improve delivery efficiency, the distance between merchants within a set should not be too large. Considering practical considerations, the first and second distance thresholds can be dynamically set in this specification.

[0065] For ease of understanding, Figure 2 This diagram illustrates a clustering of businesses as provided in an embodiment of this specification. Figure 2 In the diagram, black dots represent target merchants, and black squares represent non-target merchants. After clustering the target merchants, we can obtain merchant sets A, B, C, and D.

[0066] Of course, the above is a preferred embodiment provided in this specification. In addition to clustering merchants based on their location and distance, this specification also supports clustering merchants based on other conditions. For example, merchants can be clustered based on their historical order density, the categories of products they offer, or one or more other information. Specifically, merchants can be sorted based on their historical order density and then clustered based on the sorting results. Alternatively, merchants offering the same product categories can be clustered. Different clustering conditions may result in slightly different clustering results, which will not be elaborated upon here.

[0067] S102: For each merchant set, determine the corresponding time interval based on the information of each merchant in the merchant set.

[0068] After clustering the merchants, the time interval corresponding to each merchant set can be determined, so that the orders of each merchant in the merchant set can be gathered into the time interval corresponding to the merchant set.

[0069] For each merchant set, firstly, historical order data for each merchant in the set can be obtained, including at least one of historical order quantity and historical order density. Then, based on the historical order data of each merchant in the set, the corresponding time interval for the merchant set can be determined, wherein the historical order data of each merchant in the set is positively correlated with the length of the corresponding time interval.

[0070] The attributes of the time interval may include the length of the time interval and the order of the time intervals corresponding to each merchant set (that is, the time intervals corresponding to each merchant set are sorted according to the time, which involves the sorting information of each merchant set).

[0071] First, determine the length of the time interval corresponding to each merchant set.

[0072] Specifically, in this specification, historical orders for each merchant in the merchant set can be obtained. Based on information such as the number of historical orders and historical order density for each merchant, the total number of historical orders and the total historical order density of the merchant set can be determined. That is, the total number of historical orders for the merchant set can be obtained by adding up the historical order numbers for each merchant. Similarly, the total historical order density of the merchant set can be obtained. Based on one or more of the information such as the total number of historical orders and the total historical order density of each merchant set, the length of the time interval corresponding to each merchant set can be determined according to the positive correlation between the historical order data of the merchant set and the length of the corresponding time interval. It should be noted that since the total amount of time is fixed, for example, if one day is taken as the total amount of time, and one day is divided into several time intervals, the length of the time interval corresponding to each merchant set can be accurately obtained by following the positive correlation between the historical order data of the merchant set and the length of the corresponding time interval.

[0073] The above is a preferred embodiment provided in this specification. In this specification, the historical order data may also include the speed at which the merchant provides the products included in the order. It can be based on the speed at which each merchant in the merchant set provides the products included in the order in the past. The length of the time interval corresponding to the merchant set may be negatively correlated with the order provision speed corresponding to the merchant set. The order provision speed corresponding to the merchant set may include the average speed at which each merchant in the merchant set provides the products included in the order.

[0074] In addition to relying on the historical order data of each merchant in the merchant set, the length of the time interval corresponding to the merchant set can also be determined based on other information. For example, it can also be based on the historical user acceptance of delivery time. That is, in existing technical solutions, the historical user acceptance of order delivery time can be obtained as the acceptance level of the merchants providing the products included in the order (or simply referred to as merchant acceptance level). The length of the time interval corresponding to the merchant set can be determined according to the positive correlation between the acceptance level of the merchant set and the length of the time interval corresponding to the merchant set. The acceptance level of the merchant set can include information such as the average acceptance level of each merchant in the merchant set.

[0075] Next, let's discuss the order in which the time intervals corresponding to the various merchant gatherings are arranged.

[0076] In this manual, the order of time intervals corresponding to each merchant set can be determined according to preset rules.

[0077] Following the previous example, we can determine the time intervals corresponding to each merchant set in the order of A, B, C, and D. For example, taking 9:00 AM as the starting point of a day, with a total time of four hours, if the time interval length of merchant set A is half an hour, the time interval length of merchant set B is two hours, the time interval length of merchant set C is one hour, and the time interval length of merchant set D is half an hour, then 9:00 to 9:30 AM is the time interval corresponding to merchant set A, 9:30 to 11:30 AM is the time interval corresponding to merchant set B, 11:30 to 12:30 PM is the time interval corresponding to merchant set C, and 12:30 to 1:00 PM is the time interval corresponding to merchant set D. If the current time is 12:00 PM, then the target time interval is 11:30 AM to 12:30 PM, and the target merchant set is merchant set C.

[0078] In principle, within a given time period, each merchant set corresponds to only one time interval. However, this specification also supports cases where a merchant set corresponds to multiple time intervals, or where a merchant set has no corresponding time interval within that time period. Of course, different rules correspond to different merchant set orders, and this specification also supports other rules; the above are merely illustrative examples.

[0079] S104: Determine the time interval in which the current moment is located as the target time interval, and the set of merchants corresponding to the target time interval as the target merchant set.

[0080] S106: Obtain the orders of each merchant in the target merchant set within the target time interval.

[0081] In this specification, after determining the target time interval and the target merchant set, orders from each merchant in the target merchant set within the target time interval can be allocated. Therefore, the first step is to obtain the user's orders generated for each merchant in the target merchant set within the target time interval. Generally, user-generated orders within the target time interval refer to orders whose estimated delivery time falls within the target time interval. However, this specification also supports situations where other time information in the order falls within the target time interval. This other time information may include the sorting completion time information of the products included in the order provided by the merchant (wherein, the sorting completion time information can be obtained based on existing technical solutions), etc.

[0082] Specifically, it can obtain all orders (which can be called pending orders) of each merchant in the target merchant set. Among the pending orders, it can select pending orders whose expected delivery time is within the target time interval for allocation, or select pending orders with other time information within the target time interval for allocation.

[0083] Since the expected delivery time or other time information of the order is within the target time range, it is necessary to explain the process of the user generating an order through the terminal.

[0084] In this specification, a user obtains pending orders generated by a user through a terminal for each merchant included in the target merchant set, and sends a number of pre-determined time intervals corresponding to the target merchant set to the terminal, so that the user can select a time interval from the time intervals corresponding to the target merchant set through the terminal as the time interval in which the expected delivery time of the pending order is located.

[0085] Specifically, since the time interval corresponding to each merchant set is predetermined, once the total time is determined, the start and end times of the time interval for each merchant set can be determined. When a user generates a pending order through the terminal, the merchant set to which the user's selected merchant belongs can be determined. Based on the time intervals corresponding to each merchant set, the time interval corresponding to the merchant set to which the user's selected merchant belongs can be determined and displayed on the terminal, allowing the user to select a time interval from several time intervals displayed on the terminal.

[0086] Meanwhile, considering users' acceptance of order delivery time, in addition to displaying several time intervals corresponding to the merchant set available for user selection, the terminal can also display information indicating that no time interval needs to be selected. This information is mutually exclusive with the other time intervals. When a user selects no time interval, it indicates that the user wishes to process the order immediately. In this case, according to existing technical solutions, the estimated delivery time of the order and the merchant's sorting completion time can be determined. If the estimated delivery time and the merchant's sorting completion time are not within the time interval corresponding to the merchant set, the order can be allocated according to the existing technical solution. If the estimated delivery time and the merchant's sorting completion time are within the time interval corresponding to the merchant set, and this time interval is the target time interval, the order can be allocated as a pending order along with other pending orders.

[0087] In this specification, to mitigate the mismatch between the demand for delivery capacity and available delivery resources, and to ensure a balanced number of orders across different time intervals, rules can be set to guide the user's selection when choosing a time interval. These rules may include different time intervals corresponding to different promotional offers. For example, the user can choose between time interval 1 and time interval 2. If the difference between the number of orders in time interval 1 and time interval 2 exceeds a first threshold, the promotional offer for time interval 2 can be set to be higher than that for time interval 1, thus guiding the user to choose time interval 2. Of course, other methods can also be used to guide the user when selecting a time interval, which will not be elaborated upon in this specification.

[0088] By guiding users to select the estimated delivery time and other time intervals when placing an order, the number and density of orders within each time interval can be more balanced. This greatly solves the problem of mismatch between the demand for delivery capacity and the available delivery resources. In particular, when the target time interval in which the current moment is located has historically been a time interval with low order density, the above method can increase the order density in the target time interval, increase the number of orders delivered within the target time interval, and effectively improve the delivery efficiency of the delivery capacity compared to the historical delivery efficiency within the target time interval.

[0089] Furthermore, in a common scenario, if each merchant group corresponds to a time interval within a total time period, then for the target merchant group, by guiding users when placing orders, the orders of each merchant in the target merchant group are concentrated in the target time interval. That is, the delivery capacity only needs to be within the target time interval to deliver all the orders of each merchant in the target merchant group within a total time period. As time goes by, different time intervals correspond to different merchant groups, and the delivery capacity can deliver all the orders of each merchant in the merchant group corresponding to that time interval within a total time period. Therefore, compared with existing technical solutions, the delivery capacity in this specification has higher delivery efficiency.

[0090] S108: Based on at least one of the order information, the target time interval information, and the information of each delivery capacity, select a designated delivery capacity from among the delivery capacity, wherein the designated delivery capacity includes a first delivery capacity that has a binding relationship with each merchant in the target merchant set;

[0091] S110: Assign the order to the designated delivery capacity.

[0092] After an order is obtained (i.e., the pending orders of each merchant in the target merchant set within the target time interval, also known as target orders), the pending orders can be allocated to select a specific delivery capacity, which will then deliver the order to the user.

[0093] In this specification, delivery capacity may include a first delivery capacity that is bound to each merchant in the target merchant set. Furthermore, considering the changes in time, the target time interval changes accordingly, and the target merchant set also changes. Therefore, for each merchant set, the first delivery capacity bound to each merchant in that merchant set can also be a delivery capacity bound to each merchant in other merchant sets. That is, the same delivery capacity can be bound to each merchant in that merchant set, and also to each merchant in other merchant sets. Of course, the same delivery capacity can also be bound to only one merchant set.

[0094] Delivery capacity may also include a second delivery capacity that is not bound to any of the merchants in the target merchant set. The first delivery capacity completes the delivery of target orders for each merchant in the target merchant set within the target time interval. When the first delivery capacity is unable to complete the delivery of the target order, the second delivery capacity delivers the target order. In addition, for orders whose estimated delivery time and merchant sorting completion time information are not within the time interval corresponding to the merchant set to which the order belongs, the second delivery capacity can also complete the delivery of the order.

[0095] In this specification, when the same first delivery capacity is bound to all target merchants, since the first delivery capacity needs to complete the delivery of orders from all merchants in the target merchant set within the target time interval, therefore, based on the above, Figure 3 This is a schematic diagram of a first delivery capacity delivery order provided for an embodiment of this specification.

[0096] exist Figure 3 In this context, the merchant set includes merchant set A and merchant set B. The time intervals corresponding to merchant set A are from time t1 to time t2 and from time t3 to time t4, and the time interval corresponding to merchant set B is from time t2 to time t3. Therefore, when the target time interval is from time t1 to time t2, the first delivery capacity needs to complete the delivery of orders from all merchants in merchant set A, arrive at the location of the merchants in merchant set B at time t2, and complete the delivery of orders from all merchants in merchant set B between time t2 and time t3, so as to ensure that it arrives at the location of the merchants in merchant set A at time t3, thereby completing the delivery of orders from all merchants in merchant set A between time t3 and time t4.

[0097] Based on the above, according to the order information, the target time interval information, and the information of each first delivery capacity and each second delivery capacity, a designated delivery capacity can be selected from the first delivery capacity and each second delivery capacity, and the order can be delivered by the designated delivery capacity.

[0098] Specifically, for each delivery capacity, based on the order information, when the order is assigned to the delivery capacity, a delivery route is planned for the delivery capacity. Based on the delivery route planned for each delivery capacity, several delivery capacities that meet preset conditions are selected, and the designated delivery capacity is determined from among the selected delivery capacities.

[0099] Specifically, for each delivery capacity, based on the delivery route planned for that delivery capacity, if the delivery capacity completes the delivery of the order within the target time interval, it can be determined that the delivery capacity meets the preset conditions; otherwise, it can be determined that the delivery capacity does not meet the preset conditions. In addition, the preset conditions may also include other conditions, such as determining, through the delivery route of the delivery capacity, that the delivery distance of the delivery capacity exceeds the delivery distance threshold set in advance for the delivery capacity during the delivery of the order.

[0100] For each selected delivery capacity, based on at least one of the order's estimated delivery time and target time interval, the delivery efficiency of that delivery capacity is determined when the order is assigned to that delivery capacity. Based on the delivery efficiency of each delivery capacity, a designated delivery capacity is determined among all delivery capacities.

[0101] Specifically, the order information includes, but is not limited to, at least one of the following: user order time, user location, merchant name, merchant location, user estimated delivery time, etc.; based on the order information, determining the risk of delivery delay for the delivery capacity when the order is assigned to the delivery capacity; and / or, the delivery distance in the order information; and / or, the angle between the delivery direction of the delivery capacity and the delivery direction of the assigned order, etc.

[0102] Then, based on at least one of the determined timeout risk, delivery distance, and directional angle, the delivery efficiency of the delivery capacity for the order can be determined.

[0103] Specifically, delivery timeout risk, delivery distance, and directional angle are negatively correlated with delivery efficiency. That is, the greater the risk of delivery timeout, the lower the delivery efficiency; the longer the delivery distance, the lower the delivery efficiency; and the larger the directional angle, the lower the delivery efficiency. Furthermore, delivery efficiency can also be determined by other factors. For example, during the process of delivering assigned orders, the time required for the delivery capacity to return to the designated merchant after the order has been assigned to that capacity is determined. The longer the time required to return to the designated merchant, the lower the delivery efficiency.

[0104] Among these factors, the risk of delays, delivery distance, and directional angle can be determined through existing technical solutions and will not be elaborated upon in this manual.

[0105] This specification determines the delivery efficiency of the delivery capacity for the order by fully considering factors such as whether there is a risk of the order being delivered to the user late, the distance the delivery capacity travels to deliver the order, and at least one of the delivery directions of the delivery capacity for the order and the delivery directions of other assigned orders. The determined delivery efficiency is more in line with the actual delivery scenario.

[0106] Furthermore, since both the first and second delivery capabilities can complete the delivery of orders from each merchant in the target merchant set within the target time interval, and this specification prioritizes allocating orders to the first delivery capability, the initial level of the first delivery capability can be set higher than that of the second delivery capability. Then, for each first delivery capability, the initial level of the first delivery capability is re-determined based on the delivery route planned for that first delivery capability. Based on the initial level of each delivery capability, the delivery capabilities are sorted, and based on the sorting result, the designated delivery capability is selected from among the delivery capabilities.

[0107] Specifically, referring to the above, for each first delivery capacity, when it is determined, based on the delivery route planned for the first delivery capacity, that the first delivery capacity does not meet the preset conditions, the initial level of the first delivery capacity can be reduced. The initial level of the second delivery capacity is the same as the level of the reduced first delivery capacity. When it is determined, based on the delivery route planned for the first delivery capacity, that the first delivery capacity meets the preset conditions, the level of the first delivery capacity can be determined as the initial level, that is, the level of the first delivery capacity remains unchanged.

[0108] After determining the delivery capacity level, if all delivery capacity levels are the same, the delivery efficiency of each delivery capacity can be determined based on the above information. These delivery capacity levels are then ranked according to their delivery efficiency. Based on the ranking, the delivery capacity with the highest delivery efficiency is selected as the designated delivery capacity, or a delivery capacity with a delivery efficiency higher than a preset delivery efficiency threshold is randomly selected as the designated delivery capacity. If some delivery capacity levels are higher than others, a delivery capacity with a higher level is randomly selected as the designated delivery capacity, or, based on the above information, a delivery capacity with a higher level is selected according to its delivery efficiency.

[0109] Once the designated delivery capacity is determined, the planned delivery route and order information can be sent to the designated delivery capacity, which will then deliver the orders according to the delivery route.

[0110] In this manual, the order allocation process involves order consolidation, order recovery and redistribution, etc. As long as the first delivery capacity can complete the delivery of orders from each merchant in the target merchant set within the target time interval, existing technical solutions can be referred to, which will not be elaborated here.

[0111] based on Figure 1 The method for order allocation shown in this specification also includes a schematic diagram of the structure of an order allocation device, as illustrated in the embodiments. Figure 4 As shown.

[0112] Figure 4 This is a schematic diagram of an order allocation device provided in an embodiment of this specification. The device includes:

[0113] Clustering module 401 is used to cluster merchants based on their location to obtain several merchant sets;

[0114] The first determining module 402 is used to determine the time interval corresponding to each merchant set based on the information of each merchant in the merchant set.

[0115] The second determining module 403 is used to determine the time interval where the current moment is located as the target time interval, and the set of merchants corresponding to the target time interval as the target merchant set;

[0116] The acquisition module 404 is used to acquire orders from each merchant in the target merchant set within the target time interval;

[0117] Selection module 405 is used to select a specified delivery capacity from among the delivery capacity based on at least one of the order information, the target time interval information, and the information of each delivery capacity, wherein the specified delivery capacity includes a first delivery capacity that has a binding relationship with each merchant in the target merchant set;

[0118] The allocation module 406 is used to allocate the order to the designated delivery capacity.

[0119] Based on the above, this manual arranges designated delivery capacity for the delivery of orders from various merchants within the target time interval, thereby effectively improving the delivery efficiency of the designated delivery capacity within the target time interval. As the current time changes, the merchants corresponding to the target time interval also change, thereby improving the overall delivery efficiency of the designated delivery capacity.

[0120] Optionally, the first determining module 402 is specifically used to: obtain historical order data of each merchant in the merchant set, wherein the historical order data includes at least one of historical order quantity and historical order density; and determine the time interval corresponding to the merchant set based on the historical order data of each merchant in the merchant set, wherein the historical order data of each merchant in the merchant set is positively correlated with the length of the time interval corresponding to the merchant set.

[0121] Optionally, the selection module 405 is specifically used to: for each delivery capacity, based on the order information, plan a delivery route for the delivery capacity when the order is assigned to the delivery capacity; select several delivery capacities that meet preset conditions based on the delivery routes planned for each delivery capacity; and determine the designated delivery capacity among the selected delivery capacities.

[0122] Optionally, the delivery capacity also includes a second delivery capacity that is not bound to any of the merchants in the target merchant set, wherein the initial level of the first delivery capacity is higher than the initial level of the second delivery capacity;

[0123] The selection module 405 is specifically used to: for each first delivery capacity, redetermine the initial level of the first delivery capacity according to the delivery route planned for the first delivery capacity; sort the delivery capacities according to their initial levels; and select the specified delivery capacity from among the delivery capacities according to the sorting results.

[0124] Optionally, the selection module 405 is specifically used to, for each selected delivery capacity, determine the delivery efficiency of the delivery capacity based on at least one of the expected delivery time of the order and the target time interval, when the order is assigned to the delivery capacity; and determine the designated delivery capacity among the delivery capacities based on the delivery efficiency of each delivery capacity.

[0125] Optionally, the clustering module 401 is specifically used to: select several merchants as target merchants for clustering based on the location of each merchant and a preset first distance threshold, wherein the distance between the locations of any two target merchants is less than the first distance threshold; and cluster each target merchant based on the location of each target merchant and a preset second distance threshold, wherein the distance between the locations of any two merchants in the same merchant set is less than the second distance threshold.

[0126] Optionally, the acquisition module 404 is specifically used to select, from the pending orders of each merchant included in the pre-acquired target merchant set, pending orders whose expected delivery time falls within the target time interval; wherein, the pending orders of each merchant included in the target merchant set are pre-acquired in the following manner: acquiring pending orders generated by the user through the terminal for each merchant included in the target merchant set; sending a number of pre-determined time intervals corresponding to the target merchant set to the terminal, so that the user can select a time interval from the time intervals corresponding to the target merchant set through the terminal as the time interval in which the expected delivery time of the pending order is located.

[0127] This specification also provides a computer-readable storage medium storing a computer program that can be used to execute the above-described embodiments. Figure 1 The provided order allocation method.

[0128] based on Figure 1 The method for order allocation shown in this specification, as illustrated in the embodiments, also proposes... Figure 5 The diagram shows a schematic structural representation of the electronic device. Figure 5 At the hardware level, this electronic device includes a processor, internal bus, network interface, memory, and non-volatile memory, and may also include other hardware required for business operations. The processor reads the corresponding computer program from the non-volatile memory into memory and then executes it to achieve the above. Figure 1 The method for order allocation.

[0129] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of hardware and software. In other words, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0130] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program and "integrate" a digital system onto a PLD themselves, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should understand that by simply performing some logic programming on the method flow using one of these hardware description languages ​​and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.

[0131] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

[0132] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.

[0133] For ease of description, the above devices are described in terms of function, divided into various units. Of course, in implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware components.

[0134] Those skilled in the art will understand that embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0135] This specification is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this specification. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0136] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0137] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0138] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0139] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0140] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0141] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0142] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0143] This specification can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0144] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0145] The above description is merely an embodiment of this specification and is not intended to limit this specification. Various modifications and variations can be made to this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of the claims of this specification.

Claims

1. A method for order allocation, characterized in that, The method includes: Based on the location of each merchant, the merchants are clustered to obtain several merchant sets. This clustering based on the location of each merchant to obtain several merchant sets includes: Based on the location of each merchant and a preset first distance threshold, several merchants are selected as target merchants for clustering, wherein the distance between the locations of any two target merchants is less than the first distance threshold. Based on the location of each target merchant and a preset second distance threshold, each target merchant is clustered, wherein the distance between the locations of any two merchants in the same merchant set is less than the second distance threshold. For each merchant set, based on the information of each merchant in the set, the corresponding time interval is determined. This determination of the time interval for each merchant set, based on the information of each merchant in the set, includes: Obtain historical order data for each merchant in the merchant set, wherein the historical order data includes at least one of historical order quantity and historical order density; Based on the historical order data of each merchant in the merchant set, the time interval corresponding to the merchant set is determined, wherein the historical order data of each merchant in the merchant set is positively correlated with the length of the time interval corresponding to the merchant set; The current time interval is determined as the target time interval, and the set of merchants corresponding to the target time interval is determined as the target merchant set; Retrieve orders from each merchant in the target merchant set within the target time interval; Based on at least one of the order information, the target time interval information, and the information of each delivery capacity, a designated delivery capacity is selected from the delivery capacity, wherein the designated delivery capacity includes a first delivery capacity that has a binding relationship with each merchant in the target merchant set; The order is assigned to the designated delivery capacity.

2. The method as described in claim 1, characterized in that, The step of selecting a specific delivery capacity from among the delivery capacity based on at least one of the order information, the target time interval information, and the information of each delivery capacity includes: For each delivery capacity, based on the order information, a delivery route is planned for that delivery capacity when the order is assigned to that capacity; Based on the delivery routes planned for each delivery capacity, select several delivery capacities that meet the preset conditions; Among the selected delivery capacities, the designated delivery capacity is determined.

3. The method as described in claim 2, characterized in that, Delivery capacity also includes a second delivery capacity that is not bound to any of the merchants in the target merchant set, and the initial level of the first delivery capacity is higher than the initial level of the second delivery capacity; The step of selecting a specific delivery capacity from among the delivery capacity based on at least one of the order information, the target time interval information, and the information of each delivery capacity includes: For each primary delivery capacity, the initial level of the primary delivery capacity is redefined based on the delivery route planned for that primary delivery capacity; The delivery capacity is sorted according to its initial level; Based on the sorting results, select the specified delivery capacity from among the various delivery capacities.

4. The method as described in claim 2, characterized in that, Determining the designated delivery capacity from the selected delivery capacities includes: For each selected delivery capacity, based on at least one of the expected delivery time of the order and the target time interval, the delivery efficiency of the delivery capacity is determined when the order is assigned to that delivery capacity. Based on the delivery efficiency of each delivery capacity, the designated delivery capacity is determined from among all delivery capacity.

5. The method as described in claim 1, characterized in that, The step of obtaining orders from each merchant in the target merchant set within the target time interval includes: From the pending orders of each merchant in the pre-acquired target merchant set, select the pending orders whose expected delivery time is within the target time interval; Specifically, the pending orders of each merchant in the target merchant set are obtained in advance through the following method: Obtain pending orders generated by users through their terminals for each merchant included in the target merchant set; The terminal is sent with a number of predetermined time intervals corresponding to the target merchant set, so that the user can select a time interval from the time intervals corresponding to the target merchant set through the terminal as the time interval in which the expected delivery time of the pending order is located.

6. An order allocation device, characterized in that, The device includes: The clustering module is used to cluster merchants according to their locations to obtain several merchant sets. Specifically, based on the location of each merchant and a preset first distance threshold, several merchants are selected as target merchants for clustering. The distance between the locations of any two target merchants is less than the first distance threshold. Based on the location of each target merchant and a preset second distance threshold, each target merchant is clustered, wherein the distance between the locations of any two merchants in the same merchant set is less than the second distance threshold. The first determining module is used to determine the time interval corresponding to each merchant set based on the information of each merchant in the merchant set, wherein the historical order data of each merchant in the merchant set is obtained, and the historical order data includes at least one of historical order quantity and historical order density; Based on the historical order data of each merchant in the merchant set, the time interval corresponding to the merchant set is determined, wherein the historical order data of each merchant in the merchant set is positively correlated with the length of the time interval corresponding to the merchant set; The second determining module is used to determine the time interval where the current moment is located as the target time interval, and the set of merchants corresponding to the target time interval as the target merchant set; The acquisition module is used to acquire orders from each merchant in the target merchant set within the target time interval; The selection module is used to select a specified delivery capacity from among the delivery capacity based on at least one of the order information, the target time interval information, and the information of each delivery capacity, wherein the specified delivery capacity includes a first delivery capacity that has a binding relationship with each merchant in the target merchant set; The allocation module is used to allocate the order to the designated delivery capacity.

7. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the method described in any one of claims 1-5.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method described in any one of claims 1-5.

Citation Information

Patent Citations

  • Take-out platform and take-out ordering system based on business districts and ordering method

    CN107464174A

  • Order allocation method and device, storage medium and electronic equipment

    CN112750003A