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
- Host: GitHub
- URL: https://github.com/systemed/fare_maps
- Owner: systemed
- Created: 2018-01-30T08:21:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-30T09:00:42.000Z (over 8 years ago)
- Last Synced: 2025-01-31T12:49:44.966Z (over 1 year ago)
- Language: Ruby
- Size: 58.6 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.