MikiDi / MIV2DATEXII

Utilitiy for converting Flanders "Meten in Vlaanderen" (MIV) traffic data to DATEXII

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MIV2DATEXII

πŸ™‚ 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.

Meten-in-Vlaanderen (MIV)

MIV is a dataset containing minutely updated information on traffic flow on Flemish roads. For more info:

DATEX II

The official DATEX II website

Requirements

Installation

python3 -m pip install git+https://github.com/MikiDi/MIV2DATEXII.git

Usage

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

Useful resources:

Feedback / Contributing

This library for sure isn't perfect. Suggestions, bug reports and pull requests are very welcome. πŸ™‚

About

Utilitiy for converting Flanders "Meten in Vlaanderen" (MIV) traffic data to DATEXII

License:MIT License


Languages

Language:Python 100.0%