Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
csv
 
 
lib
 
 
 
 
 
 
tmp
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.txt

# Leeds Trains

This web application started life at Leeds Hack 2015, and summarises what services are running through a given train station.

You can provide any CRS code that network rail knows about.

It caches data locally, so you may find it doesn't pick up changes to services during the day.

# Usage

To run this locally you will need to set the following environment variables

* RTT_USER
* RTT_PASSWORD

both of these are available from realtimetrains.co.uk, ideally added to `.env` file.

if you do not have an api key, then you can generate some minimal fake data for Leeds for the current day using ./bin/generate_dev_data.rb

# Contributing

You'll need ruby 2.2.10.

Install dependencies

    bundle install

Run the app

    heroku local

# Thanks

* Leeds Hack for giving me the time to work on this
* Realtime Trains for making the data available
* Glen for inspiring me to just use local files instead of MongoDB
* Those of you who've pointed out the bugs, you know who you are
* data.gov.uk for location data https://data.gov.uk/dataset/naptan

# Contact

@AliceFromOnline via Twitter

About

Train movements website powered by RealTimeTrains API

Resources

Releases

No releases published
You can’t perform that action at this time.