GTFS.be real-time

Live SIRI messages for all of Belgium. Open data, free to use.

SIRI via ZeroMQ

SIRI is available as gzip-compressed XML on ZeroMQ XSUB tcp://sub.gtfs.be:9200. Envelopes start with /SIRI.

Use one ZeroMQ connection per consumer. To re-transmit internally, use Universal.

Example: connecting to ZeroMQ (Python 3)

Loading from GitHub…

Source on GitHub →

Example: serving SIRI to OpenTripPlanner

scripts/siri-server.py listens on the ZeroMQ feed, keeps the latest state per journey/situation and serves it over HTTP:

pip install pyzmq
python3 siri-server.py 8080   # GET /siri/et and /siri/sx
View source code
Loading from GitHub…

OTP router-config.json (OTP 2.6+):

"updaters": [
  { "type": "siri-et-lite", "feedId": "GTFSBE", "url": "http://localhost:8080/siri/et", "frequency": "30s" },
  { "type": "siri-sx-lite", "feedId": "GTFSBE", "url": "http://localhost:8080/siri/sx", "frequency": "1m" }
]

GTFS-Realtime

Already using GTFS-Realtime? Trip updates, vehicle positions and alerts for all of Belgium are available at data.gtfs.be/rt. Building something new? Prefer SIRI, which carries much more information.

Service level

All services are provided best-effort.