Truck Route API Online
Marshrut boʻylab yoqilgʻi shoxobchalari va yuk mashinalari uchun turargohlarni, shuningdek tarozi punktlari va haydovchining dam olish rejasini oʻz ichiga olgan yuk mashinalari marshrutlari API. Joʻnash va manzil nuqtalarini hamda transport vositangiz parametrlarini (balandligi, ogʻirligi, uzunligi, kengligi, oʻq yuki, xavfli yuk) yuboring — ogʻir yuk mashinalari uchun ruxsat etilgan marshrutni, yoʻlda uchraydigan cheklovlar va sanalari koʻrsatilgan yuk mashinalariga taqiqlarni, marshrutdagi chegara oʻtish joylarini ularning real kutish vaqti bilan, narxi koʻrsatilgan yoqilgʻi shoxobchalarini, yuk mashinalari turargohlarini (qoʻriqlanishi, sigʻimi, qulayliklari) va chiziq atrofidagi koridordagi tarozi punktlarini olasiz. include=rest boʻlganda EU 561/2006 qoidalari haydovchi holatiga qoʻllaniladi: 4 soat 30 daqiqadan oshmaydigan oraliqda 45 daqiqalik tanaffuslar, 9 soat / 10 soat chegarasigacha kunlik dam olishlar (har biri chegaraga yetmasdan haqiqiy turargohga joylashtiriladi), dam olish va bayram kunlaridagi taqiqlarni kutish, vaqt jadvalidagi chegarada kutish, bitta yoki ikkita haydovchi — va taxminiy yetib borish vaqti bularning barchasini oʻz ichiga oladi. Dam olish rejasi — rejalashtirish vositasi, taxograf yozuvi emas.
GET https://nakordoni.eu/api/v2/data/truck-route
— kvota sinfi: route
| Parametr | Tavsif |
|---|---|
from | Joʻnash nuqtasi lat,lon koʻrinishida (from_city berilmasa majburiy), masalan 52.2297,21.0122 |
to | Manzil lat,lon koʻrinishida (to_city berilmasa majburiy) |
from_city | Koordinatalar oʻrniga joʻnash shahri nomi (aniqlik uchun from_country qoʻshing) |
from_country | from_city shahri davlatining ISO 3166-1 alpha-2 kodi, masalan PL |
to_city | Koordinatalar oʻrniga manzil shahri nomi |
to_country | to_city shahri davlatining ISO 3166-1 alpha-2 kodi |
via | 5 tagacha oraliq nuqta lat,lon|lat,lon koʻrinishida |
height | Transport vositasining balandligi metrda (1.0–5.0) |
weight | Transport vositasining umumiy massasi tonnada (1–60); ogʻirlikka bogʻliq cheklovlar va taqiqlarga taʼsir qiladi |
length | Transport vositasining uzunligi metrda (2–30) |
width | Transport vositasining kengligi metrda (1.0–3.5) |
axle_load | Oʻq yuki tonnada (1–20) |
axles | Oʻqlar soni, tortuvchi va tirkamani qoʻshganda (2–12); marshrutlash va pullik yoʻl klasslari uchun ishlatiladi (pullik yoʻl uchun standart: 18 t dan boshlab 5, 12 t dan boshlab 3, aks holda 2) |
trailers | Tirkamalar soni (0–3); javobda qaytariladi, hozircha marshrutga taʼsir qilmaydi |
hazmat | Xavfli yuklar: 0 (standart), 1 = klassi koʻrsatilmagan ADR yuki, yoki ADR 1–9 klasslari va/yoki explosive, gas, flammable, flammable_solid, oxidizing, poison, radioactive, corrosive, harmful_to_water qiymatlarining vergul bilan ajratilgan roʻyxati |
adr_tunnel | Yukning ADR tunnel cheklovi kodi: B, C, D yoki E. Toifasi uni taqiqlaydigan tunnellar chetlab oʻtiladi (hazmat ni nazarda tutadi) |
avoid | tolls, ferries, motorways, borders, tunnels, unpaved, low_emission_zones qiymatlarining vergul bilan ajratilgan roʻyxati |
emission_class | Transport vositasining emissiya klassi euro0 … euro6; past emissiyali zonalarni tekshirish va pullik yoʻl izohlari uchun ishlatiladi (pullik yoʻl Euro VI tariflari boʻyicha hisoblanadi) |
alternatives | Muqobil marshrutlar soni, 0–2 (standart 0; faqat via nuqtasiz marshrutlar uchun) |
geometry | polyline5 (standart), polyline6 yoki geojson |
arrive_at | Istalgan yetib borish vaqti RFC 3339 formatida; joʻnash vaqti tanaffus va dam olishlarni hisobga olib orqaga qarab rejalashtiriladi (depart_at oʻrniga) |
route_type | fastest (standart) yoki eco |
include | fuel, parking, weigh, rest qiymatlarining vergul bilan ajratilgan roʻyxati (standart: toʻrttalasi ham) |
corridor_km | Yoqilgʻi, turargoh va tarozi punktlari uchun marshrutdan eng katta masofa, 0.2–5 km (standart 2) |
fuel | Narxi koʻrsatiladigan yoqilgʻi turlari, vergul bilan ajratilgan roʻyxat (standart diesel) |
depart_at | Joʻnash vaqti ISO 8601 formatida, vaqt zonasi bilan, 14 kungacha oldindan (standart: hozir) |
aliases | Oson oʻtish uchun qabul qilinadi: depart → depart_at, departAt, arriveAt, vehicleHeight, vehicleWidth, vehicleLength, vehicleWeight (kg yoki t), vehicleAxleWeight / axleWeight → axle_load, vehicleNumberOfAxles / axleCount → axles, vehicleTrailers → trailers, vehicleAdrTunnelRestrictionCode → adr_tunnel, vehicleEmissionClass → emission_class, maxAlternatives → alternatives, waypoints → via |
crew | 1 (standart) yoki 2 haydovchi — juft ekipaj 30 soatlik kunlik dam olish oynasi va 9 soatlik dam olishlardan foydalanadi |
traffic | forecast (odatiy), live yoki off. forecast = o'rganilgan takrorlanuvchi tirbandliklar + jo'nash joyi yaqinidagi jonli trafik + o'tish paytidagi yo'l ishlari, yopilishlar va ob-havo; live = o'rganilgan shablonsiz joriy trafik; off = trafik qatlami yo'q (erkin oqimdagi yurish vaqti) |
driven_since_break_min | Haydovchi holati: oxirgi 45 daqiqalik tanaffusdan beri yurilgan daqiqalar (standart 0) |
driven_today_min | Haydovchi holati: oxirgi kunlik dam olishdan beri yurilgan daqiqalar (standart 0) |
driven_week_min | Haydovchi holati: shu kalendar haftada yurilgan daqiqalar (standart 0) |
driven_last_week_min | Haydovchi holati: oʻtgan haftada yurilgan daqiqalar, 90 soatlik ikki haftalik chegara uchun (standart 0) |
reduced_daily_rests_used | Oxirgi haftalik dam olishdan beri olingan qisqartirilgan (9 soat) kunlik dam olishlar, 0–3 (standart 0) |
extended_days_used | Shu haftada ishlatilgan 10 soatlik haydash kunlari, 0–2 (standart 0) |
last_weekly_rest_end | Oxirgi haftalik dam olish tugashi ISO 8601 formatida (standart: joʻnashdan sal oldin deb olinadi) |
reduced_weekly_ok | 1 = qisqartirilgan (24 soat) haftalik dam olishni rejalashtirish mumkin (standart 0 = odatiy 45 soat) |
lang | Nomlar va xabarlar uchun til kodi (standart en) |
Javob maydonlari — javob konvertidagi data obyekti ichida. [] ro‘yxatni bildiradi, ya’ni data.items[].name har bir elementning name maydonidir. Qiymatimiz bo‘lmagan maydon null bo‘ladi, umuman bo‘lmaydi yoki bo‘sh ro‘yxat qaytadi — o‘rniga hech qachon soxta qiymat qo‘ymaymiz.
| Maydon | Tavsif |
|---|---|
data.route | distance_m, duration_s (pure driving), geometry (format in geometry_format), bbox, countries (ISO codes in order), departure_at, toll_distance_m, fuel_l, ascent_m, descent_m, legal, avoid; with arrive_at also arrive_at_requested. |
data.route.country_split[] | Per country in route order: country, km, duration_min. |
data.route.adr | Only with adr_tunnel: tunnel_code, tunnels_avoided[] and tunnels_on_route[] (name, category, lat, lon). |
data.route.low_emission_zones_avoided[] | Only with avoid=low_emission_zones: zones the route was moved out of (name, country); low_emission_zones_on_route[] lists any that could not be avoided. |
data.tolls | Estimated truck tolls: currency (EUR), total_eur, complete, by_country[] (country, km_toll, cost_eur, basis), objects[] (priced tunnels and bridges: name, type, country, lat, lon, cost_eur, basis), estimate, coverage_note. A country we cannot price has cost_eur null and is named in coverage_note. |
data.alternatives[] | Only with alternatives: distance_m, duration_s, forecast_duration_s (with traffic), tolls (currency, total_eur, complete, by_country) and geometry for each alternative route. Alternatives are planned without time-dependent restrictions and are not ban-checked; the main route is. Empty when no reasonable alternative exists. |
data.route.restriction_hits[] | Restrictions for this vehicle still on the line: kind, name, country, at_km. |
data.route.truck_bans[] | Dated truck driving bans on the route: name, kind, country, details, min_weight_t, window_from, window_to, eta_at_ban (on the traffic forecast timeline), eta_at_ban_free (free-flow timeline), km_from_start, applies, active, avoided. |
data.route.border_crossings[] | Crossings on the route: name, ppid, from_country, to_country, lat, lon, km_from_start, status; wait_min = time on the exit side + the entry side at the planned arrival (wait_at), null when neither side is measured (wait_minutes = same value, legacy name); wait_sides[] (side country, role exit|entry, ppid, min, basis live|forecast, note when not measured); wait_notes[]; wait_capped (a side over 48 h is planned at 48 h); registration_required = an electronic-queue lane: register before arriving, the time to get a slot is not included in the wait. |
data.route.warnings[] | code and message, e.g. ban_avoidance_skipped, restrictions_on_route, adr_tunnel_on_route, adr_tunnel_not_checked, low_emission_zone_on_route, closure_on_route (a full motorway closure overlaps the passing time), tolls_not_fully_avoided, arrive_at_not_reachable. |
data.route.closures_on_route[] | German motorways: closures, roadworks and traffic warnings within 150 m of the line whose time window overlaps the moment the truck passes: type (closure, roadwork, warning), road, title, km_from_start, eta, from, to, full_closure, lorry_specific (text names lorries or a weight limit), lat, lon. The route is not changed around them. |
data.traffic_forecast | Unless traffic=off: model, mode, duration_base, duration_s_free, duration_s_forecast, delay_s (recurring, live, roadworks, weather, total), hotspots[] (km_from_start, km_to, eta, delay_s, reason recurring|live|roadworks|lane_closure|closure|weather, label, road, confidence low|medium|high, dow_hour, delay_by_reason, country; jam_frequency and road_condition where known), weather_on_route[], closures_avoided[], recommended_alternative (a forecast-faster alternative is only recommended — the primary route is never swapped), coverage (how much data backed the plan, with a note), calc_ms. The forecast timeline drives the ETA, rest plan, ban timing and border-wait timing. A planning estimate; data collection started in September 2026. |
data.rest_plan[] | EU 561/2006 stops in order: type (break, daily_rest, weekly_rest), start_at, end_at, duration_min, km_from_start, parking (a parkings[] row or null), reason, overlaps_ban, counts_as. |
data.waits[] | Forced waits on the timeline: ban_wait (a driving ban) and border_wait, same shape as rest_plan. |
data.eta | Arrival time including driving, breaks, rests, ban waits and border waits; with driving_time_min, total_time_min and crew. |
data.weekly_rest_check | next_weekly_rest_due_by, weekly_rest_on_trip, driven_week_min_at_arrival, driven_fortnight_min_at_arrival, weekly and fortnight limits, reduced rests and 10 h days used at arrival. |
data.assumptions[] | Defaults applied to driver state you did not send, and country rules not planned for. |
data.rest_warnings[] | code, km_from_start, message — e.g. no_parking_in_window when a stop had to be placed at the legal limit. |
data.fuel_stations[] | name, brand, lat, lon, country, km_from_start, distance_from_route_km, detour_km, prices[] (fuel_type, price, currency, stale), price_updated_at. |
data.parkings[] | name, type (parking, rest_area, truck_stop, autohof), lat, lon, country, km_from_start, distance_from_route_km, detour_km, capacity, capacity_trucks (official truck spaces where known, e.g. German motorway rest areas), secure, amenities[], opening_hours. |
data.weigh_stations[] | name, lat, lon, country, km_from_start, distance_from_route_km, detour_km, type and side (null when not known). |
data.coverage | corridor_km, countries_on_route, fuel_grades, fuel countries with sparse or no price data, truncated lists, measured_at. |
data.resolved_locations | Only with from_city/to_city: query, lat, lon, label of the geocoded point. |
data.disclaimer | The rest plan is a planning aid, not a tachograph record or legal advice. |
data.attribution | List of credits to display: always "Data by nakordoni.eu"; plus "Weigh stations: © OpenStreetMap contributors (ODbL)" whenever weigh_stations is non-empty. |
curl "https://nakordoni.eu/api/v2/data/truck-route?from=52.2297,21.0122&to=52.52,13.405&weight=40&height=4&axles=5&emission_class=euro6&crew=1" \ -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
Yangilandi