Skip to content

About

NeTEx EPIP feed validation for whole Belgium

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Belgian NeTEx (EPIP) Validation

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.

Data sources

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

Example: connecting to ZeroMQ (Python 3)

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()

Service level

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.

About

NeTEx EPIP feed validation for whole Belgium

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages