Նորությունների ուղարկումը և NakBus նավատորմը այժմ գործընկերոջ վահանակում են
Կապեք ձեր ծրագրավորողի հաշիվը նույն էլփոստով Nakordoni Partners հաշվի հետ և այնտեղ կառավարեք նորությունները և ձեր ավտոբուսային նավատորմը (NakDriver / NakManager)՝ թիմային դերերով։ Ձեր API բանալիները, endpoint-ները և հավելվածները մնում են անփոփոխ, իսկ այստեղի էջերը շարունակում են աշխատել։ Բացել Nakordoni Partners-ը
Կենդանի սահմանային հերթի API Online
Իրական ժամանակի հերթեր, սպասման ժամանակի գնահատում և կարգավիճակ ցանկացած անցակետի համար։ Ներառում է snapshot բլոկ. ընթացիկ հերթ (queue_now), կանխատեսվող սպասում wait_min, տվյալների տարիք։
GET https://nakordoni.eu/api/v1/data/queue
— քվոտայի դաս: heavy
| Պարամետր | Նկարագրություն |
|---|---|
ppid | Անցակետի ID, օրինակ՝ id_13 (տես /api/v1/data/checkpoints) |
section | Տվյալների բաժին (ընտրովի) |
origin | Մեկնման երկրի կոդ (ընտրովի) |
destination | Նպատակակետ երկրի կոդ (ընտրովի) |
Պատասխանի դաշտերը — պատասխանի ծրարի data օբյեկտի ներսում։ []-ը ցույց է տալիս ցուցակ, ուստի data.items[].name-ը յուրաքանչյուր տարրի name դաշտն է։ Դաշտը լինում է null, բացակայում է կամ դատարկ ցուցակ է, երբ արժեք չունենք․ լցոնող արժեք երբեք չենք դնում։
| Դաշտ | Նկարագրություն |
|---|---|
data[] | Hourly series for the checkpoint, oldest first — one element per reading. |
data[].time | Unix timestamp of the reading, in the checkpoint's own timezone. |
data[].avg_cars | Vehicles in the queue at that hour. |
data[].wait_time | Wait in minutes at that hour. |
data[].wait_time_estimated | true = the wait is our estimate from the queue length, not an official figure. |
data[].type_of_data | 1 = a real observation; 2 = a forecast point (future hours). It says whether the row was measured or predicted — it carries no information about where the reading came from. |
data[].data_quality | How that row was arrived at: high = counted from a real observation source at the crossing, low = a modelled estimate where no counting source exists. Present on observation rows only (type_of_data 1) — a forecast point is predicted by definition. Same high|low vocabulary as the checkpoints directory, Border Queue and Best Time to Cross. Both are real answers; low is not an error, but it is an estimate and should be labelled as one if you show it to drivers. |
snapshot.timezone | IANA zone that snapshot.updated_at is expressed in — it is the checkpoint's own local time, not one fixed zone (e.g. Europe/Istanbul for id_385, Europe/Sofia for id_390, Europe/Budapest for id_407). Use it to resolve updated_at to an absolute instant. |
snapshot | Envelope-level, beside data: the current state — queue_now, wait_min, updated_at, timezone, age_min, data_quality. Read this for 'now'; data is the history behind it. |
curl "https://nakordoni.eu/api/v1/data/queue?ppid=id_13" \ -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Մուտք գործեք որպես ծրագրավորող՝ այս endpoint-ը ուղիղ Sandbox-ում փորձելու համար — օրական 50 անվճար թեստային կանչ։ Մուտք
Թարմացվել է