API coadă la frontieră în timp real Online
Cozile în timp real, estimarea timpului de așteptare și starea oricărui punct de trecere monitorizat. Include un bloc snapshot: coada curentă (queue_now), timp de așteptare prognozat wait_min = tmin + coadă × tpercar, vârsta datelor și sursa.
GET https://nakordoni.eu/api/v1/data/queue
— clasă de cotă: heavy
| Parametru | Descriere |
|---|---|
ppid | ID-ul punctului de trecere, de ex. id_13 (vezi /api/v1/data/checkpoints) |
section | Secțiune de date (opțional) |
origin | Codul țării de origine (opțional) |
destination | Codul țării de destinație (opțional) |
Câmpurile răspunsului — în interiorul obiectului data din plicul răspunsului. [] marchează o listă, deci data.items[].name este câmpul name al fiecărui element. Un câmp este null, lipsește sau este o listă goală atunci când nu avem o valoare — niciodată un substitut.
| Câmp | Descriere |
|---|---|
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"
🔑 Autentifică-te ca dezvoltator pentru a testa acest endpoint live în sandbox — 50 de apeluri de test gratuite pe zi. Autentificare