Book a free call

AI Route Optimization: How Agents Plan Faster Deliveries

An AI route optimization agent turns orders, addresses and traffic into a daily plan for each driver. Here is how it builds routes and what changes when plans shift.

Hertiv engineering teamReviewed by a senior engineer
6 min read
AI Route Optimization: How Agents Plan Faster Deliveries
On this page

Short answer

AI route optimization is the use of an agent to turn a day's orders, addresses, vehicle limits and live traffic into the shortest practical route for each driver. It plans the whole day at once, then re-plans when orders, traffic or drivers change.

What is AI route optimization?

AI route optimization is the use of an agent to turn a day's orders, addresses, vehicle limits and live traffic into the shortest practical route for each driver. Instead of planning one delivery at a time, it plans the whole day at once, so no driver crosses town twice and no van runs half empty.

The agent works from a list of stops, each with an address, a time window and a parcel size. It also knows the fleet: how many vans there are, what each one can carry and when each driver starts and finishes. From that it builds a route per driver, ordered stop by stop, with expected arrival times.

It differs from a simple map direction. A map finds the fastest way from A to B. Route optimization decides the order of twenty stops, which van takes which ones, and how to fit them all inside the drivers' working hours. The ordering is the hard part, and it is what the agent is for.

What data does the agent use?

The agent needs four kinds of data, and a route plan is only as good as the weakest of them. Wrong addresses, missing time windows and stale traffic all show up as missed deliveries later in the day.

DataWhat it coversWhy it matters
OrdersAddress, time window, parcel sizeSets what must be delivered and when
FleetVans, capacity, driver hoursSets what each route can carry
RoadsDistances, speed limits, restrictionsSets realistic travel times
Live trafficCongestion, closures, weatherSets what changes during the day
HistoryHow long past stops tookSets honest stop times

History is the data teams forget. A stop at a tower block takes longer than a stop at a house, and a stop with a signature takes longer than a doorstep drop. The agent learns these times from past routes, so the next plan gives each stop the time it really needs instead of a flat five minutes.

How does the agent build a route?

The agent builds a route by grouping nearby stops, ordering each group, and checking the result against time windows and driver hours. It repeats the process until the plan stops improving.

  1. Group the stops. Stops near each other go to the same van, so no driver crosses another's area.
  2. Order each group. The agent orders stops to cut backtracking, putting early time windows first.
  3. Check the limits. Each route is checked against van capacity, driver hours and delivery windows.
  4. Improve by swapping. The agent tries moving stops between vans and reordering them, keeping changes that save time.
  5. Publish the plan. Drivers get a stop-by-stop list with addresses and expected arrival times.

The agent does not find a perfect plan. With dozens of stops there are far too many orders to test them all, so it searches for a good plan quickly and keeps improving it while time allows. A good plan in two minutes beats a perfect plan that arrives after the vans have left.

What happens when plans change mid-day?

Plans change during the day: a customer cancels, a road closes, a van breaks down, or an urgent order arrives. The agent handles this by re-planning only the part of the day that is still ahead, not the whole day from scratch.

When a change arrives, the agent takes the stops that are still unvisited and the vans that are still out, and rebuilds their remaining routes. Stops that are already delivered stay done, and drivers who are far from the change keep their current order. This keeps the disruption small: one driver's route changes, not the whole fleet's.

The dispatcher still decides the big calls. The agent can suggest which van should take an urgent order, but a person decides whether to delay a low-priority stop or send a second van. The agent's job is to show the cost of each option, such as extra driving time and missed windows, so the decision is made with numbers in front of it.

Where does route optimization pay off?

Route optimization pays off where many stops, tight time windows and a limited fleet meet. It adds the most value when planning by hand takes hours and the result still leaves vans crossing each other's paths.

  • Parcel and grocery delivery. Many stops per van, short time windows and daily volume that changes.
  • Field service. Engineers visiting homes and sites, where travel time is a large share of the day.
  • Food and pharmacy delivery. Hot or urgent goods where a late arrival spoils the order.
  • Waste and recycling collection. Fixed rounds where small savings repeat every week.

It pays off less for a handful of long trips. Two drivers making three stops each can plan by hand in minutes, and the agent adds little. The value grows with the number of stops: the more stops, the harder the ordering problem, and the more the agent saves. A cost view of building such tools is in route planner app development cost.

How to start with route optimization

You start with route optimization by measuring the current day, then letting the agent plan a small part of it before handing over the whole fleet.

  1. Record the current day. Log stops, times, distances and missed windows for two weeks, so you know the baseline.
  2. Clean the addresses. Fix missing postcodes and wrong house numbers, because the agent cannot route what it cannot place.
  3. Plan one area. Let the agent plan a single depot or a single van for a week and compare it with the hand plan.
  4. Check the drivers. Ask drivers which routes felt wrong and why, then fix the data or the rules behind them.
  5. Roll out the rest. Add more vans and areas once the plan matches reality and the drivers trust it.

Driver trust decides whether the project works. A route plan that ignores a one-way street, a loading bay or a school run will be ignored by the driver, and the next plan will be ignored too. Fix the data first, and the routes will follow.

Building the agent is a typical AI agent development project, with the optimizer as its core and the dispatcher's screen as its face.

Example (hypothetical): twelve vans, one hundred and eighty stops

Example (hypothetical): a parcel depot runs 12 vans with 180 stops a day. Planned by hand, each van drives about 7.5 hours, so the fleet drives 90 hours a day, and a few stops miss their time windows every week.

The agent plans the same 180 stops across the same 12 vans, 15 stops each. Grouping nearby stops and ordering them properly cuts each van to about 6 hours of driving, so the fleet drives 72 hours a day. That saves 18 hours of driving a day, which is a van and a half of capacity, without hiring anyone.

The saving comes from ordering, not speed. The vans drive the same roads at the same speeds, but they stop backtracking across town. The depot also sees fewer missed windows, because the plan respects each stop's time window instead of hoping the driver gets there in time. Agents that run such daily operations are built as AI agents for operations teams.

What are the common mistakes?

The most common mistakes are trusting the map over the driver, planning with dirty addresses, and freezing the plan once the vans leave.

  • Ignoring driver knowledge. Drivers know the loading bays, the one-way streets and the awkward blocks, and a plan that ignores them gets ignored.
  • Dirty address data. A wrong postcode sends a van to the wrong street, and no optimizer can fix that.
  • Flat stop times. Giving every stop five minutes punishes tower blocks and rewards easy houses, so the plan drifts from reality.
  • No re-planning. A plan that cannot change when a road closes will fail by midday on the first bad day.
  • Chasing distance only. The shortest route can miss time windows, so the plan must balance distance, time and promises made to customers.

Key takeaways

  • Route optimization orders a whole day of stops across a fleet, it does not just find directions
  • The plan needs orders, fleet limits, roads, live traffic and honest stop times from history
  • The agent improves routes by grouping, ordering, checking limits and swapping stops
  • Mid-day changes are handled by re-planning only the stops still ahead
  • Driver trust decides success, so fix addresses and stop times before scaling up

Frequently asked questions

What is AI route optimization?

It is the use of an agent to turn a day's orders, addresses, vehicle limits and live traffic into the shortest practical route for each driver. The agent plans the whole day at once, grouping nearby stops and ordering them to cut backtracking.

How is it different from a satnav?

A satnav finds the fastest way from one place to another. Route optimization decides the order of many stops, which van takes which ones, and how to fit them inside driver hours and delivery windows.

What data does route optimization need?

It needs orders with addresses and time windows, fleet details such as capacity and driver hours, road data, live traffic and history of how long past stops took. Clean addresses matter most.

What happens when a road closes mid-day?

The agent re-plans only the stops still ahead, using the vans still out. Delivered stops stay done, and drivers far from the change keep their routes, so the disruption stays small.

How much time can route optimization save?

It depends on stop density and how bad the hand plan was. A depot with many stops per van often saves an hour or more of driving per van per day, mainly by cutting backtracking rather than driving faster.

Do drivers have to follow the planned order?

They should, but the plan must earn that trust. If the plan ignores loading bays, one-way streets or real stop times, drivers will ignore it, so fix the data and rules behind the plan first.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Want an agent that plans your fleet's day? Talk to Hertiv.

A senior engineer replies within one business day. Or see our AI agents for operations service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call