API

The service exposes its own endpoints, the ones its app uses. They are public and available without a key, but they are not a product: they may change along with the app.

Available addresses

They all return JSON and support ETag — a repeat request carrying If-None-Match gets a 304 with no body.

What is in the analytics database

Historical data, the basis for the statistics. The list below is generated straight from the database schema, so it cannot drift away from it.

tablecolumns
gps_snapshotid, last_update, fetched_at, vehicles
gps_courseid, route_id, trip_id, scheduled_start, route_short, headsign
gps_vehiclevehicle_id, vehicle_code, first_seen, last_seen
gps_positionsnapshot_id, vehicle_id, course_id, service, generated, lat, lon, speed, direction, delay, gps_quality
dep_sightingid, stop_key, dep_key, source, line, headsign, scheduled, trip_start, vehicle_code, vehicle_id, channel, first_seen, last_seen, samples, first_eta, last_eta, last_delay, last_status, gone_at, gone_reason
dep_delay_samplesighting_id, at, delay, eta, status
agg_godzinagodzina_utc, source, klasa, wersja_regul, probek, mediana, p90, srednia, ponad5min, ponad15min, przed1min, przed2min
agg_liniagodzina_utc, source, line, wersja_regul, probek, srednia, mediana, ponad5min, przed1min, przed2min, slupkow
ruch_godzinagodzina_utc, kategoria, zadan
ruch_wizytygodzina_utc, wizyt
ruch_sciezkagodzina_utc, sciezka, zadan
ruch_klientgodzina_utc, klasa, zadan, wizyt
push_subskrypcjaendpoint, p256dh, auth, utworzono, ostatnio_ok, bledy
push_alarmendpoint, alarm_id, o_ms, dodano, wyslano
ruch_dziendzien, wizyt, zadan
agg_przystanekgodzina_utc, stop_key, wersja_regul, probek, srednia, ponad5min, przed1min, linii
agg_gps_godzinagodzina_utc, pozycji, pojazdow, predkosc_sr, predkosc_med, stojacych, jakosc_zla, bez_kursu
agg_dryfgodzina_utc, horyzont_min, wersja_regul, kursow, mediana_abs, p90_abs, mediana_znak, srednia_znak, odrzuconych, stabilnych, wczesniej60, pozniej60
agg_widmagodzina_utc, klasa, literowa, wersja_regul, znikniec

None of these tables holds information about the people using the service — they describe only vehicles, services and stops. Details: Privacy.

Where to get the source data

If you are building something of your own, go straight to the cities' APIs rather than to this service: that is where the data originates, and your requests will not depend on somebody else's layer staying available.