Skip to main content

Open Journey Planner (OJP): public transport connections

Connection queries, departures and stop search for all public transport in Switzerland.

Open data Open use. Must provide the source. Updated 06.05.2026 German, French, Italian, English

Use the API

Open Journey Planner (OJP)

European standard interface for public transport journey planning.

Endpoint

https://api.example.ch/ojp/v2

Link works at the last automatic check

Access conditions

API key required (free registration).

Use it in your code

import requests

response = requests.get("https://api.example.ch/ojp/v2", headers={"Accept": "application/json"})
response.raise_for_status()
data = response.json()

Details

Update frequency
Continuous (real time)
Area covered
Switzerland
Languages
German, French, Italian, English
Themes
Mobility and transport
Keywords
timetableconnectionpublic transportOJProuting
Identifier
api-ojp
Permanent link
http://localhost/catalogue/api-ojp

Relationships

Provides data for (1)

This API provides the data of these entries.

Questions and answers (0)

No questions yet. If something is unclear, ask the publisher – the answer will be shown here for everyone.

Prototype: questions are stored in the test database (or in this browser without a database). In the real platform they are sent to the data provider and the answer is published here. Your questions are listed in your account under “My feedback”.

About this entry

FOT

Publisher

Federal Office of Transport

Confederation

Metadata quality

Good290 of 405 points
Updated
06.05.2026 (automated)
First published
13.12.2020
Source
Imported automatically from opentransportdata.swiss

Export metadata

Machine-readable serialisations of this record, for reuse in other catalogues and applications.