v4
latestOpenAPI 3.1.0Proprietary2026-08-034715226.2 KBCompute a truck route with hazard enrichment
Returns a routed polyline annotated with warnings[] — every nearby hazard, restriction, and operational note our database knows about (active incidents, planned construction, bridge clearance/weight problems for the requested truck, public at-grade rail crossings with 49 CFR 392.10 hazmat-stop awareness, truck/weight restrictions, weigh stations, weather, alerts, special events). When the load is hazardous, segments restricted to hazardous materials surface as hazmat_restriction warnings, and the routing engine is asked to avoid them via the hazardous/tunnel_category profile. Invalid hazardous or tunnel_category values are rejected with HTTP 400.
Every successful call:
- Counts against the customer's monthly routing quota (subscription bucket first, then top-ups FIFO by expiry). Cache hits still charge — the route is the API call regardless of whether we re-used a cached payload.
- Auto-saves the result to saved_routes with a 30-minute TTL. The returned route_id can be refetched (with re-evaluated warnings) via GET /routing/route/saved/{id} or persisted via POST /routing/route/saved/{id}/persist.
The truck block is required on every request. See the request schema for the full set of vehicle parameters.
Unknown request fields are accepted, not rejected — but any key the server did not bind is echoed back in ignored_fields (sorted dotted paths, e.g. truck.axles) and in the X-Routing-Ignored-Fields response header. Use it to catch a mis-spelled field: axles instead of axle_count, or origin.lon instead of origin.lng, is silently dropped otherwise and the route is computed without it.
Supplying truck.hos (the driver's Hours-of-Service clock) adds an hos[] channel to each route: the points where the driver must take a break or stop driving under the chosen regime (US, Canada, EU), each with reachable truck parking / rest areas before the limit. It is free on every plan. See truck.hos in the request schema.
Request body
Response
Route computed with warnings enriched