Skip to main content

Choosing the optimal delivery warehouse

When to use?

When you need to choose the optimal warehouse for the delivery of goods.

For example:

  • When you need to receive a package from a client and send it as a groupage cargo to another city. After picking up the package, you need to take it for further shipment to the optimal warehouse, taking into account other orders on the trip.

  • When you need to return the goods. The courier must receive the goods from the client and take them to the warehouse, where, after inspecting the goods, a decision will be made on the return of funds.

  • When you need to choose the warehouse closest to the driver. If it matters which courier is selected for the trip for delivery, the choice of the optimal warehouse will depend on the distance from the warehouse to the parking lot of official vehicles.

Scheme

Schema for case

How to implement the script?

By specifying alternative warehouses for receiving goods. For equivalent receiving points, create different possible_events events within the same order so that the scheduler chooses the shipping point on its own.

Examples

All examples use a set of pickup orders, each of which has drop delivery warehouses in different locations.

Example 1

In the diagram above, the scheduler will select the warehouse with the location key whs_2, since it is the closest in mileage.

Example 2

There are two orders. The first must be taken to a specific warehouse, the second - to any of the proposed ones. The route will be built in such a way that the second order will be unloaded at the same warehouse as the first, as this is more profitable.

Example 3

There is one order that can be unloaded at any of the available warehouses. At the shift of transport, the coordinates of the parking lot are indicated, where the driver must leave the car at the end of the shift. The planner will select the warehouse closest to the parking lot.