Route optimization is often sold as a fuel-saving tool. For Kenyan fleets the bigger prize is predictability: fewer missed delivery windows, less overtime, and dispatchers who stop rebuilding the day's plan by hand at 6am.
This page explains what a routing system has to handle on Kenyan roads, how the optimisation actually works, and what a sensible first deployment looks like.
What makes routing in Kenya different
Generic map applications optimise for distance. A delivery operation needs to optimise for time, capacity and commitments at once:
- Congestion that is not uniform. The same 12km stretch takes 25 minutes at 10am and 70 minutes at 6pm. Travel-time models must be built per corridor and per hour, not from a single average speed.
- Delivery windows that are narrow. Retailers, restaurants and offices accept deliveries in specific windows. A route that is efficient on distance but misses three windows is a failed route.
- Vehicle constraints. Load capacity, refrigeration, and whether a driver can offload alone all change which vehicle can serve which stop.
- Addresses that are descriptions. "Behind the petrol station on Ngong Road" is a real address in many customer records. Geocoding needs a human verification step before it can be trusted.
- Cash and paperwork at the door. A stop is not complete when the vehicle arrives; it is complete when the delivery is confirmed or the payment collected.
How the optimisation works
A vehicle routing problem takes four inputs and produces an ordered plan per vehicle: the stops with their time windows, the vehicles with their capacities, the travel-time matrix between stops, and the service time at each stop. The solver then searches for the assignment and sequence that minimises cost while respecting the constraints.
Two design choices matter more than the solver itself:
- Re-optimise during the day, not only at dawn. A vehicle breaks down, a customer cancels, a road closes. Re-running the plan every 30 minutes for the remaining stops keeps the day recoverable.
- Keep the plan explainable. Dispatchers trust a route they can reason about. Show why a stop moved: window, capacity, or traffic. An opaque "AI said so" plan gets overridden and the system is abandoned.
What to automate first
Do not start with a full solver. Start with the three steps that make the solver trustworthy:
| Step | What it does | Why first |
|---|---|---|
| Address cleanup | Turns free-text stops into coordinates with a confidence score | Bad coordinates produce confidently wrong routes |
| Travel-time matrix | Builds hour-of-day travel times per corridor from your own GPS history | Your drivers' data beats a generic average |
| Daily plan + manual override | Generates routes and lets dispatch drag stops between vehicles | Builds trust before autonomy |
Only after those work should you add live re-optimisation and automatic sequencing.
What stays human
Dispatchers should keep three decisions: which customer gets the marginal slot when capacity is short, whether a failed delivery is retried the same day, and how to handle a driver who reports a problem the model cannot see. These are judgement calls with relationship consequences, and they are low frequency.
Integrations
- TMS or ERP: orders, delivery windows and vehicle master data, read on a schedule.
- Telematics: GPS traces for travel-time learning and for live position. If you have no telematics, a driver app on a phone is enough to start.
- Customer updates: WhatsApp or SMS notifications at dispatch, arrival and completion. In Kenya this is usually the most visible improvement to the customer.
- Proof of delivery: a photo, a signature or a scanned note attached to the stop record.
A six-week first deployment
| Week | Focus |
|---|---|
| 1 | Extract 3 months of stops and GPS history; measure baseline on-time rate |
| 2 | Clean addresses; flag the ones that need a phone call |
| 3 | Build travel-time matrix from your own traces |
| 4 | Generate daily plans for one depot; dispatcher overrides logged |
| 5 | Add WhatsApp arrival notifications and proof of delivery |
| 6 | Compare against baseline; decide whether to extend to a second depot |
Metrics that show whether it worked
- On-time delivery rate against the promised window.
- Distance per completed drop, measured from GPS, not from the plan.
- Failed first-attempt deliveries and the reason codes behind them.
- Dispatcher time spent building and adjusting routes each morning.
- Overtime hours and vehicle idle time between stops.
Use a worked example to set expectations, labelled as an example rather than a promise: a 12-vehicle fleet doing 90 drops a day, where the plan reduces average distance per drop by 8% and missed windows by a quarter, saves fuel and overtime but still needs the same number of vehicles. Routing rarely removes a vehicle; it makes the existing fleet reliable.
Failure modes
Garbage coordinates. The most common cause of a bad route is a bad address. Budget for human verification of the top 200 stops before go-live.
Driver rejection. If drivers believe the new sequence costs them overtime pay or tips, they will follow the old route. Involve them in week one and pay overtime rules that do not punish the new plan.
Optimising the wrong objective. Minimising distance can increase late deliveries. Set the objective as missed windows first, cost second, and say so in the plan view.
No baseline. Without four weeks of pre-project data, nobody can prove the change worked, and the project becomes a matter of opinion.
Where to start
Pick one depot and one vehicle class. Six weeks is enough to prove or disprove the case on your own traffic, and the address and travel-time work carries over to every later phase.