This repository validates Belgian NeTEx EPIP exports.
Beta notice: These NeTEx and SIRI exports are very much beta. Please report all issues via this repository's Issues section on GitHub.
- Legacy GTFS download: https://data.gtfs.be/belgium/gtfs/be-gtfs.zip (validated with the latest MobilityData gtfs-validator)
- NeTEx EPIP download: https://data.gtfs.be/belgium/netex/schedule/netex-be-schedule.zip
- Stop place register export (EPIP): https://data.gtfs.be/belgium/netex/stops/spr-stopplaces.zip
- SIRI: can be received as XML on ZeroMQ XSUB
tcp://sub.gtfs.be:9100. Envelopes start with/SIRI.
Note: Use one ZeroMQ connection per consumer. To re-transmit internally, use Universal.
import zmq
import gzip
import json
context = zmq.Context()
socket = context.socket(zmq.XSUB)
socket.connect("tcp://sub.gtfs.be:9200")
# XSUB requires subscriptions to be sent manually as a message:
# a leading 0x01 byte followed by the topic prefix to subscribe to
socket.send(b"\x01/SIRI")
print("Listening for SIRI messages...")
try:
while True:
frames = socket.recv_multipart()
envelope = frames[0].decode('utf-8')
content = b''.join(frames[1:])
payload = gzip.decompress(content).decode('utf-8')
print('Envelope: %s', envelope)
print('Message: %s', payload)
except KeyboardInterrupt:
print('Stopping...')
finally:
socket.close()
context.term()All services are provided best-effort.
Data generated by GTFS.be. Contains data originally published by De Lijn, De Waterbus, Eurostar, Infrabel, MIVB/STIB, NMBS/SNCB, TEC, Belgian Mobility Company and others.