Skip to content

Open Sales and Distribution Model Offline File Switzerland

OSDM was developed to exchange fare information and enable bookings between international railways. The file also shows how OSDM works. If you are interested in this dataset, it may be necessary to contact us at opendata@sbb.ch.

(URL slug: osdm-offline)

Technical description

NOVA calculates fares for public transport in Switzerland. Certain routes are pre-calculated for exchanges with the major railways (e.g. Spiez – Thun, Spiez – Bern, Spiez – Olten, etc.). These prices are exchanged in the OSDM offline file. The file only contains the data that NOVA considers relevant for international ticket sales. Local transport is therefore not included, or only to a very limited extent.

As the size of the file grows by a factor of n^2 with the number of stops, it is not so easy to complete the file.

Important: The available data is not a sufficient condition for the sale of tickets by third parties.

Technical aspects

OSDM is a JSON-based standard. With the offline file, we are only scratching the surface of what OSDM can do. OSDM is a standard that was co-developed by SBB in particular.

Buchs-Zurich is shown here as an example.

Tools and examples are available on the specification page: https://osdm.io/

Further information