Transport

Swiss public transport API

Licenses

The Transport API is free software under the MIT License, © 2012–2026 Opendata.ch: gitlab.com/opendata.ch/Transport.

Data

SourceUsed forTerms
Swiss national timetable (GTFS, GTFS-RT, HRDF)Timetable, real time, operator namesopentransportdata.swiss terms of use
OpenStreetMap, Swiss extract by GeofabrikStreets for walks, addresses and placesODbL 1.0, © OpenStreetMap contributors
sharedmobility.ch (Swiss Federal Office of Energy)Shared bikes, scooters and cars (GBFS)Open use, must provide the source (BY)
swisstopo national mapsBackground of the map exampleFree geodata of the Swiss Confederation (OGD)

Services beside the API

SoftwareUsed forLicense
MOTISJourney planner behind /connections, map tiles and place searchMIT
PostgreSQLTimetable databasePostgreSQL License
RedisCounters of the statistics pageRSALv2 / SSPLv1 / AGPLv3

In the browser

LibraryUsed forLicense
Bootstrap 3.3.6Layout of the pagesMIT
Leaflet 1.9.4Map exampleBSD-2-Clause
Tabler IconsIcons of the connection searchMIT
LucideTram icon of the connection searchISC
jQuery 1.7.1, jQuery UI 1.8.16The autocomplete exampleMIT

Python packages 31, as installed in the running service

PackageVersionLicense
annotated-doc0.0.5MIT
annotated-types0.8.0MIT
anyio4.15.1MIT
asyncpg0.31.0Apache-2.0
certifi2026.7.22Mozilla Public License 2.0 (MPL 2.0)
click8.5.0BSD-3-Clause
fastapi0.142.2MIT
gtfs-realtime-bindings3.0.0Apache Software License
h110.16.0MIT License
httpcore1.0.9BSD-3-Clause
httptools0.8.0MIT
httpx0.28.1BSD License
idna3.20BSD-3-Clause
Jinja23.1.6BSD License
MarkupSafe3.0.4BSD-3-Clause
opentelemetry-api1.45.0Apache-2.0
pip26.2.1MIT
protobuf7.36.23-Clause BSD License
pydantic2.13.5MIT
pydantic_core2.46.5MIT
python-dotenv1.2.4BSD-3-Clause
PyYAML6.0.3MIT License
redis8.1.0MIT
starlette1.7.0BSD-3-Clause
transport-api0.1.0MIT
typing-inspection0.4.4MIT
typing_extensions4.16.0PSF-2.0
uvicorn0.54.0BSD-3-Clause
uvloop0.23.0Apache Software License, MIT License
watchfiles1.3.0MIT License
websockets17.2BSD-3-Clause