API reference

Tachograph-compliant truck routing

POST /v1/route/truck-legal

Route with a simplified driving schedule based on the core rules of EU regulation 561/2006: a 45-minute break after 4.5 hours of driving and a daily rest after 9 hours. Weekly limits, split breaks, reduced rests and multi-driver crews are not modelled. driver_continuous_hours and driver_driven_today take into account what was driven before departure. The route covers all stops; time spent at the stops is not added. Returns the schedule with departure and arrival times.

Parameters

locations array of object, required
departure string
language string
Default: "en-US".
driver_driven_today number
Hours the driver has already driven today (0 to 9) Default: 0.
weight number
Vehicle weight in tonnes Default: 18.
axle_load number
Max axle load in tonnes Default: 9.
height number
Vehicle height in metres Default: 4.
width number
Vehicle width in metres Default: 2.5.
length number
Vehicle length in metres Default: 16.5.
hazmat boolean
Default: false.
driver_continuous_hours number
Hours already driven since the last 45-minute break. The first break comes earlier by this much. Default: 0.
top_speed_kmh number
Maximum speed of the truck. Without it, 90 applies above 3.5 t. Default: 90.

Example request

curl -X POST https://eunavigation.duckdns.org/v1/route/truck-legal \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"locations":[{"lat":44.4268,"lon":26.1025},{"lat":52.52,"lon":13.405}],"departure":"2024-06-15T06:00:00Z","weight":18,"driver_driven_today":0}'

Price

See the price of /v1/route/truck-legal on the pricing page.

Related endpoints