News submission and NakBus fleet are now in the partner dashboard
Connect your developer account to a Nakordoni Partners account with the same email and manage news and your bus fleet (NakDriver / NakManager) there, with team roles. Your API keys, endpoints and apps are unchanged, and the pages here keep working. Open Nakordoni Partners

← All endpoints

Route Planner API Online

A door-to-door plan for a border trip: the route, the crossings on it with a live queue or a forecast for your arrival time, and the rest, meal and refuelling stops a driver really makes — all on one timeline. A long queue counts as the break that was already due, so waiting is never counted twice; buses and trucks get the mandatory EU 561/2006 rest, and bus service stops are calibrated on more than 1000 licensed coach schedules. Each border also reports wait_basis: vehicle_lane when your vehicle class has its own measured queue, car_lane when the car-lane queue is the best available signal.

GET https://nakordoni.eu/api/v2/data/route-plan — quota class: heavy

ParameterDescription
origin_latOrigin latitude (required)
origin_lonOrigin longitude (required)
dest_latDestination latitude (required)
dest_lonDestination longitude (required)
vehiclecar (default), bus or truck — picks both the routing profile and the stop model
departISO-8601 departure time, up to 14 days ahead (default: now). Drives the arrival-time queue forecast
viaOptional waypoints as lat,lon;lat,lon (max 3) — e.g. to route through a different crossing
forecast1 (default) = forecast the queue for your arrival time at each crossing; 0 = use the current queue
stop_places1 = name a real rest area / fuel station for each stop (default 0)
overnight1 = add an advisory overnight stop when the drive exceeds 11 h (default 0)
geometry1 = include the full route geometry (default 0)
alternatives1 (default) = include nearby alternative crossings with their queues
preferencerecommended (default), fastest or shortest
langLanguage code for checkpoint names (default en)

Response fields — inside the data object of the envelope. [] marks a list, so data.items[].name is the name field of each element. A field is null, absent or an empty list when we hold no value for it — never a placeholder.

FieldDescription
data.routeThe drive itself: distance_km, drive_seconds, vehicle, toll_distance_km.
data.borders[].ppidA crossing on the route, with name, from, to and crossing_type.
data.borders[].waitIts live or arrival-time-forecast wait, with wait_basis — vehicle_lane when your vehicle class has its own measured queue, car_lane when the car queue is the best available signal.
data.borders[].at_kmWhere it falls on the route, with at_drive_seconds and distance_from_route_km.
data.borders[].alternatives[]Other crossings worth switching to: ppid, name, wait_minutes, queue_cars, detour_km.
data.stops[].typeBreak, meal or refuelling, with reason, at_km, at_drive_s, minutes, starts_at and ends_at.
data.summaryThe timeline totals: drive_seconds, stop_seconds, border_wait_seconds, total_seconds, arrival_at, stop_count, border_count and borders_absorbed_breaks — long waits that satisfied a due break instead of adding to it.
data.modelRules the plan was built on: vehicle, basis (driving-hygiene or EU 561/2006), break_after_drive_min, meal_after_drive_min, fuel_every_km.
data.warnings[]Things to tell the driver: code, ppid, name, status, message, suggested_alternative — e.g. a closed crossing on the route.
curl "https://nakordoni.eu/api/v2/data/route-plan?origin_lat=50.4501&origin_lon=30.5234&dest_lat=52.2297&dest_lon=21.0122&vehicle=car&stop_places=1&lang=en" \
  -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Log in as a developer to try this endpoint live in the sandbox — 50 free test calls a day. Log in

Updated