Тікелей шекара кезегінің API Online
Нақты уақыттағы кезектер, күту уақытының бағасы және кез келген өту пунктінің күйі. Snapshot блогын қамтиды: ағымдағы кезек (queue_now), болжамды күту wait_min = tmin + кезек × tpercar, деректер жасы.
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 | Provenance marker of the reading (official feed, camera count, driver report…). |
snapshot | Envelope-level, beside data: the current state — queue_now, wait_min, updated_at, age_min. 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"
🔑 Бұл соңғы нүктені сынақ алаңында тікелей байқап көру үшін әзірлеуші ретінде кіріңіз — тәулігіне 50 тегін сынақ шақыруы. Кіру