API prognozy kolejki Online
Prognoza poziomów kolejki na bazie zespołu modeli ML: horyzonty 24-godzinny i 7-dniowy (168 h) z przedziałami ufności. Ten sam model, który zasila prognozy nakordoni.eu.
GET https://nakordoni.eu/api/v1/data/forecast
— klasa limitu: heavy
| Parametr | Opis |
|---|---|
ppid | ID punktu kontrolnego, np. id_13 (zob. /api/v1/data/checkpoints) |
prediction_steps | 24 (domyślnie) lub 168 dla 7 dni |
Pola odpowiedzi — wewnątrz obiektu data w kopercie odpowiedzi. [] oznacza listę, więc data.items[].name to pole name każdego elementu. Pole bywa null, nieobecne lub jest pustą listą, gdy nie mamy wartości — nigdy nie wstawiamy atrapy.
| Pole | Opis |
|---|---|
data[] | One element per forecast step, nearest first — 24 or 168 of them. |
data[].time | Unix timestamp the step forecasts, with hours_from_now. |
data[].avg_cars | Predicted queue at that hour. |
data[].lower_bound | Confidence band around avg_cars, with upper_bound; the _50 pair is the narrower 50% band. |
data[].type_of_data | Provenance marker of the input reading the step was built from. |
data[].source | Which model produced the step, with formula and the corrected flag when a calibrator adjusted it. |
data[].learned_mult | Per-checkpoint learned multiplier applied, and weather_mult the weather one. |
data[].v4 | Full breakdown from the v4 ensemble — component scores behind avg_cars. |
curl "https://nakordoni.eu/api/v1/data/forecast?ppid=id_13&prediction_steps=24" \ -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Zaloguj się jako deweloper, aby wypróbować ten endpoint na żywo w piaskownicy — 50 darmowych wywołań testowych dziennie. Zaloguj się