Event data Public Transport Switzerland (SIRI-SX / VDV736)

#AutoTranslate

Brief Description

The service makes available all incident information of the transport companies in Switzerland connected to the central SKI DDS data hub. They are described here: Business organizations with event information.

The data can also be retrieved as GTFS-RT here: GTFS-RT: Service Alerts

Access to the APIs:

Note: A description of how to access the APIs can be found here: Howto: Accessing our APIs with API Keys.

Functional Description

Every 30 seconds, the open data platform retrieves an updated data set from the SKI data hub and makes it available via the APIs. Please use the endpoint with the suffix for the ongoing update "siri-sx-unplanned"This contains all ongoing updates. Once or a few times a day, you can then make a request to "siri-sx" the planned and unplanned incident messages are obtained, the infrequent adjustments to planned incidents are also applied.

The service provides an XML with all the events (corresponds to an initial load). This can be called up with a simple get request (empty – without further parameters).

Technical Description

Due to the large volume of data, the interface only allows a limited number of requests. The details and access to the API can be obtained via the API Manager.

You can also embed the SIRI-SX service into your website as an iframe. Instructions can be found here siri-sx-situation-monitor (GitHub). The embed endpoint is SIRI SX IFRAME (odpch.ch).

Information about SIRI SX (VDV 736) can be found at öv-info.ch (in German, French and Italian) in the ‘Situation Exchange Data’ section.

Service Delivery scheme

The following information applies to incidents which are available on the SKI DDS:

  • PtSituation/Affects (optional) -> Can be delivered. Its use is not currently recommended.
  • PtSitutaion/Consequences/Affects (optional) -> Can be delivered. Use is not currently recommended.
  • PtSitutation/PublishingAction (mandatory) -> Normalised part of the PtSituationElement. This part is evaluated by the above-mentioned iframe, for example.

The call to SIRI-SX can be tested with:

curl -L  --compressed -H "Authorization: Bearer eyJvcmciOiI2NDA2NTFhNTIyZmEwNTAwMDEyOWJiZTEiLCJpZCI6IjdhNjg5ZGYwNzYyYzQyOGM5NzNmNTI1NzIwMjgxZGM4IiwiaCI6Im11cm11cjEyOCJ9" https://api.opentransportdata.swiss/la/siri-sx