Skip to content
Documentation
Runs

How route planning works

What Plan Route does, what it takes into account, and why it warns instead of refusing.

What Plan Route does

When you click Plan Route on a run, Delivery sends the run's stops to a route planner. The planner finds a good order to drive them in. It then writes back:

  • the order of the stops
  • the planned arrival time at each stop
  • the total distance and minutes
  • when the run starts and ends

The run's status becomes Planned. A run already sent to its driver stays Sent, and the driver's phone shows the new order.

The planner runs on Delivery's own servers. Addresses and pins do not go to an outside service to plan a run.

It warns, it does not refuse

A run is rarely perfect. The vehicle may be a little over its weight limit. One customer's time window may be impossible. Refusing to plan would leave you to order every stop by hand.

So Plan Route always gives you an order, and a list of what is wrong with it. You decide what to do.

This is how it works:

  1. It plans with every rule on: weight, time windows and the road network.
  2. If some stops do not fit, it works out why. It can name the kilograms or the clock times.
  3. It plans again with weight and time windows relaxed, so every stop it can reach gets a place.
  4. A stop it still cannot reach stays on the run, at the end. The reason shows in the Plan says column.

A stop is never dropped from the run.

What it takes into account

Pins

The planner needs a pin for each stop. A stop with no pin stays on the run but is not in the route. You get a warning that names the address to pin. Place the pin on the location and plan again.

A pin nobody has confirmed is still used, with a warning. A wrong pin does not fail loudly. It makes a route that looks fine and wastes a morning.

The depot

A run with a depot pin is a round trip from the yard. Without one, it is planned as an open route that does not start or end at the yard, and you get a warning.

Capacity

The planner checks the load's weight against the vehicle's weight limit. If the load is too heavy, you get one warning with the kilograms. It may suggest a bigger vehicle you have.

If the vehicle has no weight limit recorded, the planner treats it as able to carry anything. You get a note to record the figure on the vehicle.

If the load's volume is more than the deck holds, you get a warning that it will not fit.

Movements with no weight or size count as nothing. You get a note about them.

Time windows

A stop can have a time window, such as 08:00 to 12:00. It is the delivery's own window, when the clerk typed one. When it has none, the planner uses the place's opening hours on the run's date. If no order reaches a stop inside its window, you get a warning. The plan still includes the stop, outside its window.

If a place is closed on the run's date, because it does not open that day or it is a public holiday, you get a warning naming it. Plan the Day leaves such a delivery waiting instead. See Location (Edit View).

Time at each stop

Each stop takes some minutes at the door. The planner uses the first of these it finds:

  1. The movement's service minutes, which it takes from the location's Service minutes.
  2. Minutes at each stop in Settings, under Planning defaults.
  3. 15 minutes.

When the vehicle leaves

The planner starts the day at the run's Leaves at time. If that is blank, it starts at the earliest time window on the run or at Vehicles leave at in Settings, whichever is earlier. With neither, it starts at 08:00.

The driver's day

When the run is linked to the driver's record, the planner checks their calendar:

  • If they are on leave or do not work that day, you get a warning. The run is planned anyway.
  • If the run starts before or ends after their shift, you get a warning.

Shifts and leave are set on Driver (Edit View).

More than one run a day

A vehicle and its driver can do more than one run on a day. The second is "Trip 2". Plan the Day lets a trip leave only once the trip before it is back, plus Minutes Between Trips in Settings, under Planning defaults: the time to unload, reload and sign for the goods again. It starts as 30.

In Plan the Day, Add Another Run on a crew row adds a "Trip 2" row for that driver and vehicle. The planner shares the driver's day between the trips, with the time between trips in between. A driver already back from an earlier trip that day shows with when they can leave again, such as "Back from RUN-2026-00012: leaves after 12:15". See Dispatch Board.

Contacts

If nobody is recorded to phone at a stop's location, you get a note. Add a contact to the location so the driver is not stuck at a gate.

When planning stops without a plan

There are only three cases:

CaseMessage
The driver has signed for the goodsOnly a run the driver has not signed for yet can be replanned
The run has no stopsThere is nothing on this run to plan
The planner cannot be reachedNothing has been changed

When the planner is down, nothing is written. The run keeps the order you gave it, and you can still send it to the driver. Try again later.

After you plan

  • Check the warnings under the status band.
  • Check the Plan says column on the Stops tab.
  • If you change the stops, the run goes back to Draft. Plan it again.
  • You can reorder stops by hand with Move Up and Move Down.

Coverage

The road map covers the Cape Town area. An address outside it still saves and goes on a run, but its plan is rough.