Odosielanie správ a flotila NakBus sú teraz na partnerskom paneli
Prepojte svoj vývojársky účet s účtom Nakordoni Partners s rovnakým e-mailom a spravujte tam správy a svoju autobusovú flotilu (NakDriver / NakManager) s tímovými rolami. Vaše API kľúče, koncové body a aplikácie zostávajú nezmenené a stránky tu naďalej fungujú. Otvoriť Nakordoni Partners
API „Najlepší čas prechodu" Online
Štatistiky typického týždňa pre priechod: matica 7×24 deň-týždeň×hodina (medián + pásmo p25/p75), najkľudnejší/najrušnejší deň, najlepšie/najhoršie 2-hodinové okná.
GET https://nakordoni.eu/api/v1/data/day-stats
— trieda kvóty: cheap
| Parameter | Popis |
|---|---|
ppid | ID priechodu |
lang | Kód jazyka |
Polia odpovede — vnútri objektu data v obálke odpovede. [] označuje zoznam, takže data.items[].name je pole name každého prvku. Pole býva null, chýba alebo je prázdny zoznam, keď preň nemáme hodnotu — zástupný údaj nedopĺňame.
| Pole | Popis |
|---|---|
data.matrix | 7×24 median queue: matrix[dayOfWeek][hour], day 0 = Monday, hours in the checkpoint's timezone (data.tz). |
data.lo | Same 7×24 shape — the p25 floor of the band; hi is the p75 ceiling. |
data.counts | Observations behind each cell — a cell with few counts is a weak median. |
data.weekday_avg | Seven averages, one per weekday; best_day and worst_day index into them. |
data.best_slots[] | Quietest 2-hour windows: dow, hour, v (the value). worst_slots is the same for the busiest. |
data.overall_avg | Average across the whole matrix, with overall_max. |
data.samples | Readings the matrix was built from, over period_days; data_quality grades that sample. |
data.data_quality | 'high' = the matrix is this checkpoint's OWN observations. 'low' = there was not enough direct history, so the mirror direction's matrix is returned as an estimate — see estimated_from. |
data.estimated_from | Present only when data_quality is low: the ppid the matrix actually came from (the same crossing in the opposite direction, same vehicle type). The numbers are NOT observations of the checkpoint you asked for — do not feed them to a model as if they were. data_quality_note carries the same warning as prose. |
data.generated_at | When the matrix was last recomputed (unix). It is precomputed daily, not per request. |
curl "https://nakordoni.eu/api/v1/data/day-stats?ppid=id_13&lang=en" \ -H "Authorization: Bearer NKD-DEV-XXXX-XXXX-XXXX"
🔑 Prihláste sa ako vývojár a vyskúšajte tento endpoint naživo v sandboxe — 50 bezplatných testovacích volaní denne. Prihlásiť sa
Aktualizované