Route Optimization
Plantrunner uses the Mapbox Optimization API to calculate the most efficient order for visiting your route's waypoints, minimizing total driving time.
How it works
When you optimize a route (either during automatic generation or manually), Plantrunner:
- Sends all waypoint coordinates to Mapbox
- Receives the optimized order based on real road networks
- Reorders waypoints to match the optimized sequence
- Stores the route geometry (the actual road path) for map display
Return to start
Routes that start from your company office automatically factor in the return trip. The optimization considers the full round-trip when calculating the best order.
When to re-optimize
Re-optimize a route when you:
- Add or remove waypoints
- Change the start location
- Manually reorder stops and want to recalculate
The route retains its last optimization until you change it.
Calculation details
| Metric | Source |
|---|---|
| Driving time | Mapbox Optimization API (real road network) |
| Service time | Sum of each waypoint's estimated service duration |
| Total distance | Mapbox Optimization API |
| Route geometry | GeoJSON LineString for map rendering |