XydonTech
Home / Blog / Logistics
Logistics 6 min read

Route Optimisation Software: What You're Actually Building and What to Buy

Route optimisation is a hard algorithmic problem. The business problem around it is a software problem. Here's how to separate them.

XT
XydonTech Team
November 19, 2026

The question usually comes up after a company has grown to 50+ delivery routes per day: “Can we optimize which driver takes which stops?”

The answer is yes. But the path to that answer splits immediately into two problems, and conflating them will waste months of effort.

The first problem is algorithmic. The second is operational software. You need both, but you likely shouldn’t build the first.

The Algorithmic Problem: Vehicle Routing Problem (VRP)

At its core, route optimization is a variant of the Vehicle Routing Problem — a classic NP-hard combinatorial optimization problem.

Given:

  • A set of delivery stops with locations and time windows
  • A fleet of vehicles with capacity and shift constraints
  • Travel time and cost between stops

Find: The assignment of stops to vehicles and the sequence of stops per vehicle that minimizes total distance, time, or cost (or some weighted combination).

This is not trivial. The computational complexity grows exponentially with the number of stops. A naive brute-force approach becomes unusable at ~20 stops.

Do not build this from scratch. It’s a solved problem with well-established libraries and APIs.

What Actually Exists

Google OR-Tools: Open source, production-ready. It runs constraint solvers that can handle thousands of stops and vehicles. It’s also free and self-hosted. Downside: it’s a library, not a service. You run it yourself.

HERE Routing API: Commercial service. You send locations, constraints, and vehicle data. HERE’s cloud service returns optimized routes. Upside: managed, scalable. Downside: per-request API costs.

OptimoRoute: SaaS platform built specifically for logistics. Optimization engine + driver apps + customer notifications. Upside: end-to-end. Downside: opinionated, expensive at scale, less flexible for custom workflows.

For most operations, one of these three is the right choice.

The Real Software Problem: Everything Around the Algorithm

Here’s what actually requires engineering:

Constraint Input and Validation

The optimization algorithm needs well-structured input. That input comes from your operational data: stops to deliver, vehicle availability, time windows, driver breaks, vehicle capacity, restricted zones.

This data is often scattered: in your order management system, your fleet management system, driver availability from your workforce scheduling system.

You need:

  • Unified input collection. Fetch stops from your order system. Fetch vehicle data from your fleet system. Fetch driver availability and capacity constraints. Stage all of this into a normalized format the optimizer consumes.
  • Constraint validation. Reject invalid inputs before they reach the optimizer. A delivery window that ends before it starts. A stop with no location. A vehicle with zero capacity. These need to be caught and surfaced as errors.
  • Dynamic constraint updates. A new order arrives at 11 AM. Update the input, re-optimize, and re-assign routes for the afternoon. This needs to happen on demand, not in a nightly batch.

Driver App Integration

The optimization engine produces routes. Drivers need to follow them. That means:

  • Route assignment. Push optimized routes to driver apps. Tell each driver which stops to visit and in what order.
  • Turn-by-turn navigation. The driver app needs to route each stop to the next, handle navigation failures, and show time-window expectations.
  • Exception handling. The driver arrives at a stop and finds it closed. Or a customer reschedules. The route plan is now invalid. The driver needs a way to skip the stop, reschedule it, or notify dispatch immediately.
  • Real-time GPS tracking. Dispatch needs to see where each driver is in real time. This feed also informs the next section.

Re-optimization on Exceptions

Routes are optimized for the morning’s known stops. By 2 PM, three new orders have arrived, one driver called out sick, and a customer rescheduled their delivery window to 6 PM.

The original route is now suboptimal. You have two choices: ignore it (easy, inefficient) or re-optimize (hard, effective).

Re-optimization means:

  • Trigger detection. When does the system decide to re-optimize? Every new order? Only when a threshold is crossed? On manual request? Define this policy.
  • In-progress route handling. A driver is 20 minutes into a 10-stop route. If you re-optimize, do you reassign the remaining stops to a different driver? Keep the driver on course but reassign unstarted stops to others? This is a business policy, not a technical one.
  • Latency constraints. Re-optimization takes time. If you trigger it on every new order, the latency compounds. Set a maximum acceptable time for each re-run.

Reporting and Analytics

After the day, you need to know:

  • How many stops were delivered on time, late, or failed?
  • What was the actual distance traveled vs. the optimized plan?
  • Which stops consistently violate their time windows?
  • What’s the utilization of each vehicle? Are you getting enough value out of your fleet size?

This reporting layer informs whether your optimization is working.

Measuring Optimization Impact

Before you build (or buy), establish a baseline.

Current state metrics:

  • Average distance per route
  • Average time per stop (excluding travel)
  • Percentage of stops delivered in agreed time window
  • Vehicle utilization (stops per vehicle per day)
  • Cost per delivery

After optimization:

  • Measure the same metrics.
  • The improvement is ROI. If you save 15% distance and 10% time, and your fleet is 60% of your delivery cost, the payoff is clear.

If you’re not measuring before and after, you have no way to know if optimization was worth the effort.

Implementation Approach

In-House Build (Using OR-Tools)

Pros: Complete control, no per-request costs, integrates directly with your systems.

Cons: You’re responsible for optimization performance, constraint modeling, and production reliability.

Effort: 3-4 weeks to integrate the library, build input/output handling, and ship first version.

Commercial API (HERE, OptimoRoute)

Pros: Managed, scalable, proven in production at scale.

Cons: Per-request costs, less control over algorithm parameters, vendor lock-in risk.

Effort: 1-2 weeks to integrate API and build driver app routing.

Hybrid Approach

Use a commercial API for the core optimization, but build your own input collection, constraint validation, and re-optimization orchestration. This balances control and time-to-value.

Common Pitfalls

Optimizing for the wrong metric. Route distance is easy to measure but doesn’t align with customer satisfaction. Optimize for time windows first, then distance.

Ignoring real-world constraints. The algorithm doesn’t know that the downtown area has restricted delivery hours. That a particular driver can’t lift over 50 pounds. That parking at this address is impossible. These constraints must be explicit.

Fire-and-forget deployment. Rolling out optimized routes without driver buy-in fails. Drivers need to understand why routes changed, have a way to report issues, and see that optimization genuinely makes their day easier.

Treating optimization as a one-time project. Route quality degrades over time as your operation changes. This needs continuous monitoring and re-tuning.

Where to Start

If you’re managing 50+ routes daily and manually assigning stops to drivers, route optimization has clear ROI. Pick the approach (in-house or commercial) that matches your timeline and risk tolerance.

Establish your baseline metrics. Implement or integrate the optimizer. Measure the before and after. That’s how you know if the investment paid off.

#Logistics #route optimisation #fleet #dispatch #last mile
Ready to automate your operations?

We build custom software that fits how your business actually works.

Start a conversation