Skip to main content
All CollectionsDispatch Algorithm
How driver selection works in the dispatch algorithm
How driver selection works in the dispatch algorithm
Updated this week

When an order is chosen for auto dispatch and available drivers are on hand, certain criteria are considered for selecting drivers for the order. In this article, we will discuss each of these criteria.

This article shows how an order is offered to drivers when there are available drivers. Sometimes, there is a list of dispatching orders, but not enough drivers. In another article, we will explore that scenario.

Before delving into the details, let's clarify the concept of "candidate drivers."

Candidate Drivers

Candidate drivers are those whom the algorithm believes can accept and fulfill the order. Multiple candidate drivers may be available for a dispatching order at any given moment.

The number of candidate drivers during each dispatch round is configurable through the "Maximum candidate drivers for a given order" field. You can learn more about this in the articles below.

The dispatch algorithm operates based on multiple criteria and settings. Some of these criteria have different weights, allowing you to adjust their importance. You can modify the weight of each criterion in the following path on the Admin center:
​

Admin Center β†’ Settings β†’ Order

The "Driver Dispatch Weight" plays a crucial role in the driver selection process.

Criteria for Driver Selection

  1. Distance

    This is the direct distance between the pickup location for on-demand orders and the driver's current location. For instance, if we have two drivers, A and B, with A being 100 meters away and B 200 meters away, driver A will have a higher priority for selection.

  2. Dispatch Wait Time

    How long a driver has been waiting for an order is a significant factor. If a driver has been waiting for 20 minutes without receiving any orders, they will have a higher chance of being selected.

  3. Rejected Count

    If a driver has rejected an order in the past, it increases the chances for another driver to be selected. For instance, if there are two drivers, A and B, and A has rejected the order once, driver B will have a higher probability of selection.

  4. Driver Capacity

    Each driver has two numbers related to capacity: active orders limit and for-you orders. A driver without available capacity won't be considered a candidate.

    • Active Orders: These are orders currently assigned to the driver and being fulfilled.

    (Note: Scheduled orders that have not yet started are not counted as active orders.)

    • For-You Orders: These are orders currently offered to the driver and displayed in the "for-you" tab.

  5. Max Order Offers to a Driver

    An order can be offered multiple times to a driver after being rejected. You can set a limit for these offers. For example, if you set it to one, and the driver rejects it once, they won't be selected for dispatch the next time.


Dispatch Round

If you edit the order's status and set it to "Pending - Auto," Max Order Offers to Driver and Rejected Count will be reset, and the order will be dispatched again.

Did this answer your question?