A couple of hacked-up scripts to visualise fares from a given station.
- Ruby and Python.
- rasem module for Ruby (draws SVGs), version 0.6.1:
gem install rasem -v 0.6.1
- Get https://github.com/dracos/split-ticket and copy or symlink the
split
anddata
directories into this directory.
Edit create_output_file_for_station.py
to have your station code instead of CBY. Run it. It'll create a file called output.json
with all the fares from that station.
Then run any of the .rb scripts to create the relevant maps for that query. They're just examples really - you can parse the fares JSON any which way you choose and draw an SVG from it.