Routing in Tanzania is shaped by geography more than by traffic. A Dar es Salaam delivery network faces congestion; a long-haul operator on the central corridor faces distance, weighbridges, ferry crossings and border delays. A system built for one will mislead the other.

This page covers what a Tanzanian routing plan has to model, the data to start with, and a realistic first deployment.

Two different routing problems

OperationMain constraintWhat to optimise
Urban distribution (Dar, Arusha, Mwanza)Congestion and narrow delivery windowsStops per hour, on-time rate
Long haul (Dar to Mbeya, Dodoma, Mwanza)Distance, weighbridges, driver hoursCost per tonne-km, schedule reliability
Cross-border (to Zambia, DRC, Rwanda, Uganda)Customs, documentation, variable clearancePredictable transit, not shortest path
Port-linked (Dar es Salaam)Berth and clearance timingVehicle turnaround, demurrage avoidance

Most fleets run two or three of these at once. A single model tuned on urban drops will produce nonsense for a cross-border run, so separate the planning logic by operation type.

What traditional planning misses

  • Weighbridge waits. Axle-load compliance forces either a lighter load or a longer wait. A route that ignores this is not feasible.
  • Ferry and bridge bottlenecks. Crossings have schedules and queues that static maps do not represent.
  • Road condition. Paved status changes by season, and a shorter road can be slower or impassable after rain.
  • Driver hours and rest. Long-haul plans must include mandatory rest, or the schedule is fiction.
  • Clearance variability. At the border, the average is less useful than the spread. Planning on the average guarantees late deliveries half the time.

Data to start with

  1. Twelve weeks of GPS traces from your own vehicles, if you have telematics. This is more reliable than any generic speed profile.
  2. Delivery records with promised and actual times, so you can measure the baseline honestly.
  3. Weighbridge and border timestamps, even if collected manually at first.
  4. Fuel and toll records, to translate distance into cost.

How the plan is built

For urban work, the solver assigns stops to vehicles and sequences them against time windows and capacity, using a travel-time matrix built from your own traces by hour of day.

For long haul, the problem is closer to scheduling than routing: choose loads, departure times and rest stops so that arrivals are reliable and axle limits are respected. The objective is cost per tonne delivered on time, not distance.

For cross-border, add a clearance buffer derived from your own history, and plan against the 80th percentile rather than the mean.

What stays human

Dispatchers should decide which customer gets the marginal slot, whether to hold a vehicle for a late load, and how to recover after a breakdown. Drivers should have the final say on whether a road is passable. No model has seen the bridge that washed out last week.

Integrations

  • TMS or ERP: orders, delivery windows and vehicle data.
  • Telematics: GPS traces and live position.
  • Weighbridge and port systems: timestamps where available.
  • Customer updates: SMS or WhatsApp at dispatch, arrival and completion.
  • Fuel and maintenance: cost per kilometre, to price the plan.

A six-week first deployment

WeekWork
1Measure baseline on-time rate and cost per drop for one depot
2Clean addresses and geocode the top 200 stops
3Build travel-time matrix from GPS history
4Generate daily plans with manual override; log every override
5Add customer notifications and proof of delivery
6Compare against baseline; decide on a second depot

Metrics

  • On-time delivery rate against the promised window.
  • Cost per drop or per tonne-km, from actual fuel and distance.
  • Weighbridge and border wait time, tracked separately.
  • Failed first attempts and their reasons.
  • Dispatcher hours spent rebuilding plans.

Failure modes

Using generic traffic data. Dar es Salaam congestion and upcountry road conditions are not captured by global averages.

Ignoring axle limits. An optimised load that cannot pass a weighbridge is not optimised.

Planning on averages at the border. Use the spread, or every second delivery is late by design.

No baseline. Without four weeks of pre-project data, nobody can prove the change worked.

Where to start

Pick one depot and one operation type. Six weeks of measurement on your own traffic will tell you more than any benchmark, and the address and travel-time work carries into every later phase.