Routing Engine
The Routing Engine provides truck-aware global routing with real-time restriction logic, toll calculations, and safe parking integration.
Capabilities
- Global truck routing — driving directions optimised for commercial vehicles
- Low bridge detection — height-restricted structures flagged and bypassed
- Weight & height limits — route-scoped restrictions by vehicle profile
- Hazmat restrictions — tunnels, roads, and zones excluded for hazardous loads
- Tolls & ULEZ — cost-aware routing with clean-air zone logic
- Safe parking — truck-stop and secure parking integration
- Commerce zones — delivery-area access rules
- Real-time perimeter capacity — congestion-aware ETAs
Vehicle Profiles
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 |
Route Preview
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.
API Usage
POST /api/routing/plan
{
"origin": { "lat": 51.5, "lng": -0.12 },
"destination": { "lat": 48.85, "lng": 2.35 },
"vehicleProfileId": "veh-22",
"waypoints": [],
"avoidTolls": false
}