An open API service indexing awesome lists of open source software.

https://github.com/systemed/fare_maps

Quick and dirty SVG maps visualising rail fares from a particular station
https://github.com/systemed/fare_maps

Last synced: 11 months ago
JSON representation

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

Awesome Lists containing this project

README

          

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.