API Previsione delle Code Online
Previsione tramite ensemble ML dei livelli di coda: orizzonti di 24 ore e 7 giorni (168h) con intervalli di confidenza. Lo stesso modello che alimenta le previsioni di nakordoni.eu.
GET https://nakordoni.eu/api/v1/data/forecast
— classe di quota: heavy
| Parametro | Descrizione |
|---|---|
ppid | ID del checkpoint, ad es. id_13 (vedi /api/v1/data/checkpoints) |
prediction_steps | 24 (predefinito) o 168 per 7 giorni |
Campi della risposta — all’interno dell’oggetto data della busta. [] indica una lista, quindi data.items[].name è il campo name di ogni elemento. Un campo è null, assente o una lista vuota quando non abbiamo un valore — mai un segnaposto.
| Campo | Descrizione |
|---|---|
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"
🔑 Accedi come sviluppatore per provare questo endpoint dal vivo nella sandbox — 50 chiamate di prova gratuite al giorno. Accedi