API של תור הגבול בזמן אמת Online
אורך תור, הערכת זמן המתנה וסטטוס בזמן אמת לכל מעבר גבול מנוטר. כולל בלוק snapshot: התור הנוכחי (queue_now), זמן המתנה חזוי wait_min = tmin + תור × tpercar, גיל הנתונים והמקור.
GET https://nakordoni.eu/api/v1/data/queue
— מחלקת מכסה: heavy
| פרמטר | תיאור |
|---|---|
ppid | מזהה מעבר הגבול, למשל 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"
🔑 התחברו כמפתחים כדי לנסות את נקודת הקצה הזו בשידור חי ב־Sandbox — 50 קריאות בדיקה חינם ביום. התחברות