Nsmaps
Interactive contour map visualising Dutch railways (NS) traveltime times
Install / Use
/learn @bartromgens/NsmapsREADME
nsmaps
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
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.
Development
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.
Webpack bundles (JavaScript and CSS)
Install webpack and some plugins and loaders,
sudo npm install webpack -g
npm install
Watch for changes and compile bundle if found,
webpack --progress --colors --watch
Generate minified production files,
webpack -p
Related Skills
node-connect
339.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.8kCommit, push, and open a PR

