← All modules
Available now

Route optimization, built for real fleets

Solve the right problem with the right algorithm. Toretto ships a pluggable optimization engine — pure-Rust TSP for single-driver sequencing, VROOM for multi-vehicle VRP with capacity and time windows, and OSRM-backed road-network distances so your solves match the actual drive.

Live tracking dashboard with shipment list, status filters, and map view

Once dispatched, planned routes feed the live tracking view — status, ETA, and exception alerts in one place.

Three problems, one engine

What you can solve today

Single-driver

TSP sequencing

"I have one driver and 30 stops — give me the right order." Nearest-neighbor seed plus 2-opt improvement, sub-millisecond solves, no external solver needed. Optional return-to-start for closed-tour routes.

Multi-vehicle

VRP with constraints

"I have 12 vehicles and 200 stops with delivery windows and weight limits." VROOM-backed solver handles capacity, time windows, shift bounds, and feasibility — under 5 seconds on real road distances.

Re-solve

Scenario replay

Every run is saved with its full input snapshot. Re-solve yesterday's batch with a different distance provider, vehicle mix, or policy — side-by-side comparison shows you what changed and why.

Distance providers

Real distances, not as-the-crow-flies

A 10-mile straight-line hop is a 22-mile drive once one-way streets, highway ramps, and bridge restrictions are accounted for. Toretto's pluggable DistanceProvider gives every optimizer access to real road geometry.

Haversine

Pure straight-line math. Instant. Good for quick estimates and unit tests; the default when you don't specify.

OSRM

Self-hosted Open Source Routing Machine with continental US road graph. Sub-second distance matrices for hundreds of stops, no per-request API fees.

Valhalla (roadmap)

Truck-aware routing — height, weight, hazmat, axle restrictions. The right tool when "shortest road distance" isn't a route a truck can actually drive.

What you get in the app

Route planner UI

Pick a vehicle (or skip for pure sequencing), select stops from your shipment list, choose engine + distance provider, and dispatch. The plan renders on a map with leg-by-leg distance and duration.

TMS integration

POST /optimize-from-tms pulls shipment orders and fleet vehicles directly into the engine. The dispatched plan writes back to your shipment assignments.

Replay-able runs

Every optimization run is stored with its full input snapshot (vehicles, stops, distance matrix) and output plan. View a run weeks later and reconstruct exactly what was solved.

Telematics-aware

GeoTab and Samsara feeds populate vehicle locations automatically. Re-route around in-progress drivers without disrupting completed stops.

Under the hood

How it's built

Rust + Axum

Optimization core in a workspace crate, called from the API server.

VROOM

C++ VRP solver — sub-second solves for hundreds of stops.

OSRM

Self-hosted routing engine for road-network distances.

PostGIS

Geospatial storage for stops, vehicles, and historical routes.

See it solve your real routes

Bring a recent batch of stops and a fleet profile. We'll run the optimizer live and walk through the plan.

Request a demo