Skip to main content
Menu

← Барлық соңғы нүктелер

Бақылау пункттерінің баламаларының API Online

Сол шекарадағы жақын маңдағы балама бақылау пункттері ағымдағы кезектермен және қашықтық айырмашылықтарымен.

GET https://nakordoni.eu/api/v1/data/alternatives — квота класы: cheap

ПараметрСипаттама
ppidБақылау пунктінің ID
langТіл коды
crossing_typeКөлік түрі сүзгісін қайта анықтау — мыс. 4=автомобиль, 6=автобус, 7=жаяу жүргінші, 9=жүк көлігі
limitМакс. нәтижелер саны (әдепкі 5)

Жауап өрістері — жауап конвертіндегі data объектісінің ішінде. [] тізімді білдіреді, сондықтан data.items[].name — әр элементтің name өрісі. Мәні жоқ өріс null болады, мүлде болмайды немесе бос тізім қайтарады — толтырғышты ешқашан қоймаймыз.

ӨрісСипаттама
data.ppidThe checkpoint you asked about, with checkpoint.name, checkpoint.queue, checkpoint.unit and checkpoint.source_url.
data.crossing_type_filterVehicle type the alternatives were filtered to.
data.alternatives[].ppidA nearby crossing on the same border, with name and source_url.
data.alternatives[].distance_kmRoad distance from the checkpoint you asked about.
data.alternatives[].queueIts queue now, in unit, and diff — the difference against your checkpoint (negative = shorter).
data.alternatives[].is_bettertrue when this crossing is currently the better bet.
data.bestThe single best alternative, same fields — null when none beats your checkpoint.
data.generated_atWhen the comparison was made.
curl "https://nakordoni.eu/api/v1/data/alternatives?ppid=id_13&crossing_type=4" \
  -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Бұл соңғы нүктені сынақ алаңында тікелей байқап көру үшін әзірлеуші ретінде кіріңіз — тәулігіне 50 тегін сынақ шақыруы. Кіру