Interactive contour map visualising Dutch railways (NS) traveltime times
Python JavaScript HTML CSS
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
data
log
nsmaps
website
.coveragerc
.gitignore
.gitmodules
.travis.yml
LICENSE.md
README.md
matplotlibrc
requirements.txt
setup.py

README.md

nsmaps

Build Status Coverage Status Scrutinizer Code Quality Dependency Status
Interactive contour maps visualising Dutch railways (NS) traveltime information.

nsmaps uses nsapi to get Dutch railways travel information. matplotlib is used to create contour plots, which are converted to geojson lines with geojsoncontour. The geojson contours are drawn on an interactive OpenLayers 3 map where geojson-vt is used to create vector tiles.

Requires Python 3.4+.

Demo

nsmaps.romgens.com

Maps

Contour travel times

Color contours showing travel times from station A to any location in the Netherlands using a bicycle for the last leg of the trip.

NS API key

You need to set an API username and key in local_settings.py. Request one here. Please note that the NS offers a limited number of requests per day.