-
Notifications
You must be signed in to change notification settings - Fork 0
Using SIRI
SIRI is a protocol for data exchange between two IT systems for real-time information. Data can be exchanged via:
-
XML files (over TCP/IP or via SOAP/WSDL)
-
REST/JSON (over HTTP) using SIRI-Lite interface
Note: SIRI-Lite is a subset of SIRI focusing on the most frequently requested information for open data feeds.
JSON as an Alternative to XML in SIRI
While XML remains the primary data format for SIRI, JSON is also used as a lightweight alternative. However, it's important to note that JSON is not a direct replacement for XML. JSON's simplicity and efficiency make it suitable for small data exchanges, but for large datasets, XML's ability to parse data line by line within a time window offers a performance advantage.
IDFM's REST/JSON Implementation
IDFM (Ile de France Mobilité - Authority from Paris Area) has implemented a REST/JSON access point by directly converting the original XML data to JSON. This approach provides a convenient and lightweight alternative for accessing SIRI data.
Additional Resources
For further insights into using JSON in SIRI, refer to SIRI Part 2 and the Proposition-Profil-SIRI-Lite-initial-v1-2.pdf report.
Request/Response & Subscribe/Publish Protocol (The different types of flow are described here)
- SIRI supports a synchronous request/response protocol and an asynchronous subscribe/publish protocol.
- Data exchange involves a request message from a client consumer and a corresponding response message from a producer server.
- Clients can subscribe to information by sending a message with request details and sensitivity criteria to filter messages.
- The producer server maintains subscriptions and sends messages to consumers when criteria are met.
In each of the services, you will find typical examples of requests and responses, as well as examples of subscription and publication. Examples are based on use cases
Name | Description | link to example file |
---|---|---|
siri_exa_framework | Establish the basis for data exchange in SIRI with request/response and subscribe/publish protocols | link |
siri_exm_CM | Provide information about the expected arrival of a feeder vehicle to the operator of a connecting distributor service | link |
siri_exm_CT | Provide information about the scheduled arrivals of a feeder vehicle to the operator of a connecting distributor service. | link |
siri_exm_ET | Provision of information on the actual progress of Vehicle Journeys operating a specific service Lines, detailing expected arrival and departure times at specific stops on a planned route. | link |
siri_exm_FM | Allows the exchange of the real-time status of facilities at a stop such as lifts, escalators, etc. | link |
siri_exm_GM | Exchange informative messages between identified individuals in free or an arbitrary structured format. | link |
siri_exm_PT | Provision of information on the planned progress of vehicles operating a specific service. | link |
siri_exm_SM | Provision of information on services due to call at a stop. | link |
siri_exm_ST | Provide a stop-centric view of timetabled vehicle arrivals and departures at a designated stop. | link |
siri_exm_SX | Exchange incident and road performance data. | link |
siri_exm_VM | Provision of information on the current location and status of a set of vehicles. | link |
siri_exu_capability | Verification of the SIRI services supported by the feed. | link |
siri_exu_discovery | Description of the mobility network and services covered by the given SIRI feed | link |
Profile Name | Availability | EU Minimum SIRI profile compatible | Documentation |
---|---|---|---|
Nordic (Norway, Sweden, Finland, Denmark) | Specified and in use | ✅ | Nordic SIRI profile |
UK (GB) | Specified and in use | ✅ | |
France (FR) | In use in numerous cities and regions | ✅ | |
Netherlands (NL) | Specified but not yet in operation | ✅ |
Level of service (LOS) | Static data |
---|---|
LOS 1 |
Dynamic travel and traffic data - Level of service 1 |
LOS 1-1 | Disruptions (all modes) |
LOS 1-2 | Real-time status information — delays, cancellations, guaranteed connections monitoring (all modes) |
LOS 1-3 | Status of access node features (including dynamic platform information, operational lifts/escalators, closed entrances and exit locations — all scheduled modes) |
LOS 2 |
Dynamic travel and traffic data - Level of service 2 |
LOS 2-1 | Estimated departure and arrival times of services |
LOS 2-2 | Current road link travel times |
LOS 2-3 | Cycling network closures/diversions |
LOS 2-4 | Availability of publicly accessible charging stations for electric vehicles and refuelling points for CNG/LNG, hydrogen, petrol and diesel powered vehicles |
LOS 2-5 | Car-sharing availability, bike sharing availability |
LOS 2-6 | Car parking spaces available (on and off-street), parking tariffs, road toll tariffs |
LOS 3 |
Dynamic travel and traffic data - Level of service 3 |
Data Categories | FR | NL | Nordic (SE, NO, DK, FI) | GB |
---|---|---|---|---|
LOS 1-1 | ✅ | ✅ | ✅ | ✅ |
LOS 1-2 | ✅ | ✅ | ✅ | ✅ |
LOS 1-3 | ✅ | ✅ | ✅ |
Data Categories | FR | NL | Nordic (SE, NO, DK, FI) | GB |
---|---|---|---|---|
LOS 2-1 | ✅ | ✅ | ✅ | ✅ |
LOS 2-2 | ✅ | |||
LOS 2-3 | ||||
LOS 2-4 | ||||
LOS 2-5 | ✅ | ✅ | ||
LOS 2-6 | ✅ | ✅ |
Data Categories | FR | NL | Nordic (SE, NO, DK, FI) | GB |
---|