🙂 Live traffic-flow data of Flanders' highways is published as open data
😟 It is published in a custom XML format
🎉 MIV2DATEXII
This library provides a Python API as well as a command line interface to convert MIV publications to the European DATEX II standard for publication of traffic related data.
MIV is a dataset containing minutely updated information on traffic flow on Flemish roads. For more info:
- >= Python 3.7
- pip3 (installation instructions)
python3 -m pip install git+https://github.com/MikiDi/MIV2DATEXII.git
Converting the locations table
curl http://miv.opendata.belfla.be/miv/configuratie/xml | miv2datex2 > miv_datex_locations.xml
Converting minutely data
curl http://miv.opendata.belfla.be/miv/verkeersdata | miv2datex2 > miv_datex_measurements.xml
This library for sure isn't perfect. Suggestions, bug reports and pull requests are very welcome. 🙂