API reference

Calculate route

POST /v1/route

Calculates the route between 2 to 50 waypoints. Returns full Valhalla route data including maneuvers, shape, and travel summary. Travel times are free-flow; for an estimate that includes typical congestion use /v1/route/traffic. Trucks above 3.5 t are limited to 90 km/h by default, on every endpoint that uses costing=truck.

Parameters

locations array of object, required
Ordered list of waypoints
costing auto | truck | bicycle | pedestrian | motorcycle | motor_scooter | bus | taxi
Vehicle/costing model for routing Default: "auto".
language string
Default: "en".
alternates integer
Number of alternative routes to return
departure_time string
Planned departure, ISO 8601. Without a zone (2026-12-03T08:00) it is local time at the first location; with Z or an offset (2026-12-03T06:00:00Z) it is converted to that local time.
vehicle object
Vehicle dimensions passed to the routing profile so that height/width (and, for costing=truck, length/weight/axle load) restrictions in the map are respected.

Example request

curl -X POST https://eunavigation.duckdns.org/v1/route \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"locations":[{"lat":44.4268,"lon":26.1025},{"lat":48.2082,"lon":16.3738}],"costing":"auto","language":"en"}'

Price

See the price of /v1/route on the pricing page.

Related endpoints