The Routing Engine provides truck-aware global routing with real-time restriction logic, toll calculations, and safe parking integration.
Each vehicle in the system has a profile containing:
| Field | Example |
|---|---|
| Height | 4.2 m |
| Width | 2.55 m |
| Length | 16.5 m |
| Weight (GVW) | 44 t |
| Hazmat classes | ADR 3, 6.2 |
| Fuel type | Diesel / Electric |
The Route Preview feature displays the planned route on a Mapbox map with turn-by-turn instructions, restriction alerts, and alternate route options. Operators can drag to re-route and push the final route to the driver.
POST /api/routing/plan
{
"origin": { "lat": 51.5, "lng": -0.12 },
"destination": { "lat": 48.85, "lng": 2.35 },
"vehicleProfileId": "veh-22",
"waypoints": [],
"avoidTolls": false
}