News submission and NakBus fleet are now in the partner dashboard
Use the same login (email and password) as your developer account to sign in to the Nakordoni Partners panel, 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)
rest_ruleslegacy (default in v2) or eu561 — with overnight=1 and vehicle=truck|bus: 9 h driving per day, 11 h daily rest (type overnight, minutes 660), 45 min break after 4 h 30. eu561 is the default from v3
driven_since_break_mineu561 driver state: minutes driven since the last 45 min break (default 0)
driven_today_mineu561: minutes driven since the last daily rest (default 0)
duty_started_min_agoeu561: minutes elapsed since the last daily rest ended; the next daily rest must start within 13 h (15 h after a reduced rest) of that (default 0)
driven_week_mineu561: minutes driven this week; at 56 h a weekly_rest stop (45 h) is added (default 0)
driven_fortnight_mineu561: minutes driven in the fortnight; cap 90 h (default 0)
extended_days_usedeu561: 10 h driving days already used this week, max 2 (default 0). A 10 h day is planned only when it lets the trip end without another daily rest
reduced_rests_usedeu561: reduced 9 h daily rests used since the last weekly rest, max 3 (default 0)
allow_reducedeu561: 1 = may use a 9 h reduced daily rest when it lets the trip end next day (default 0)
places_before_minWith stop_places=1: minutes of driving before each break or rest in which to look for places, 0–120 (default 45)
places_after_minWith stop_places=1: minutes of driving after each break or rest in which to look for places, 0–120 (default 15)
places_radius_kmWith stop_places=1: max distance off the route for break and meal places, 0.5–25 km (default 5; above 25 it is clamped and warning radius_clamped is returned)
rest_radius_kmWith stop_places=1: max distance off the route for overnight and weekly-rest places, 0.5–25 km (default 5; above 25 it is clamped with radius_clamped)
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[].registration_requiredtrue on a Ukraine-exit truck lane with an electronic queue (eCherha): register before arriving.
data.borders[].registration_wait_minuteseCherha published wait in minutes for that lane (fresh data only, never capped), else null. With rest_rules=eu561 (default from v3) it is used as the border wait (wait.source echerha_registration) and as a rest; with legacy it is reported only. Warning echerha_registration when above 0.
data.borders[].registration_wait_sourceecherha when registration_wait_minutes is set, else null.
data.borders[].registration_wait_atISO 8601 UTC time of the eCherha reading.
data.borders[].registration_noteLocalized (lang) note about registering on eCherha; registration_url is https://echerha.gov.ua. Both only on registration_required crossings.
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, fuel, overnight, weekly_rest (45 h, eu561), border_wait or ban_wait, with reason, at_km, at_drive_s, minutes, starts_at and ends_at.
data.stops[].counts_asOn a border_wait or ban_wait stop: what the wait satisfies — none, break, meal, overnight or weekly_rest — so it is not planned twice.
data.stops[].banOn a ban_wait stop: the driving ban being waited out — name, country, from, until.
data.stops[].places[]With stop_places=1, on break, meal, overnight and weekly_rest stops: candidate parkings inside the pause window, best first — name, type (truck_stop, autohof, rest_area, parking), country, lat, lon, at_km, at_drive_s, offset_min (minutes from the planned stop, negative = before it), off_route_km, detour_km (same value), exceeds_4h30 (continuous driving since the last break would pass 4 h 30), type_rank (1 truck_stop … 4 parking). Tune with places_before_min, places_after_min, places_radius_km, rest_radius_km.
data.stops[].in_vehicle_allowedv3, on daily and weekly rest stops: false for a regular weekly rest (45 h or more) and for any weekly rest of more than 45 h; true for a reduced weekly rest (24 h to less than 45 h) and for daily rests. accommodation_required has the opposite value. rule = EU 561/2006 Art. 8(8) as amended by 2020/1054.
data.stops[].accommodation[]v3, on weekly rest stops: parkings with rooms on site near the stop (route-plan: the driving window of places[]; truck-route: 45 min of driving before to 15 min after) — name, type, country, lat, lon, at_km, offset_min, off_route_km, rooms_on_site. Information only: the stop and its truck parking do not change.
data.stops[].place.has_accommodationv3, on weekly rest stops: true when this parking (in route-plan also each places[] row) has rooms on site, i.e. a site with rooms within 300 m. nearest_accommodation_km = distance in km to the nearest accommodation[] site, or null.
data.stops[].warningv3: no_accommodation_found when accommodation_required is true and accommodation[] is empty. Information only; the stop stays in the plan.
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. checkpoint_closed, wait_capped (a queue over 48 h is planned at 48 h; the eCherha wait is not capped), radius_clamped (places_radius_km or rest_radius_km above 25 km; with param, requested, used), echerha_registration (registration needed, with registration_wait_minutes), echerha_wait_unverified (eCherha wait missing or older than 3 h; check https://echerha.gov.ua).
api_versionv2 is additive only: the places[], ban_wait, weekly_rest, counts_as, registration_* and driver-state parameters above are opt-in or extra fields; rest_rules defaults to legacy and place names use the original filter. v3 (/api/v3/data/route-plan) changes defaults: rest_rules=eu561, strict place names (real parkings and rest areas only), the eCherha published wait (uncapped) used as the border wait, and a border wait counts as the break or rest that was due. Pass rest_rules=legacy to keep the old model on v3.
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 — 10 free test calls per product a day. Log in

Updated