Fare-calculation for Dutch rail-journeys
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
.gitignore
LICENSE
README.md
conf.py
farecalculator.py
farecalculator_cli.py
load_data.py
unroll_matrix.py

README.md

How to use:

  • Load data from the CSV's: python load_data.py

  • Set your NS-api username password in conf.py

  • Query NS-API with python farecalculator_cli.py $fromStation$ $toStation$

Thanks Geert/RijdenDeTreinen.nl for the work on correct distance matrices. http://blog.rijdendetreinen.nl/