systemed / fare_maps

Quick and dirty SVG maps visualising rail fares from a particular station

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rail fare maps

A couple of hacked-up scripts to visualise fares from a given station.

Prerequisites

  • 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 and data directories into this directory.

Running

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.

About

Quick and dirty SVG maps visualising rail fares from a particular station


Languages

Language:Ruby 86.2%Language:Python 13.8%