Skip to main content
Menu

← Toate endpointurile

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

ParametruDescriere
ppidID-ul punctului de trecere, de ex. id_13 (vezi /api/v1/data/checkpoints)
sectionSecțiune de date (opțional)
originCodul țării de origine (opțional)
destinationCodul ță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âmpDescriere
data[]Hourly series for the checkpoint, oldest first — one element per reading.
data[].timeUnix timestamp of the reading, in the checkpoint's own timezone.
data[].avg_carsVehicles in the queue at that hour.
data[].wait_timeWait in minutes at that hour.
data[].wait_time_estimatedtrue = the wait is our estimate from the queue length, not an official figure.
data[].type_of_dataProvenance marker of the reading (official feed, camera count, driver report…).
snapshotEnvelope-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