/gtfs_sample_app

A Ruby on Rails based sample application to show departures from GTFS data.

Primary LanguageRubyBSD 2-Clause "Simplified" LicenseBSD-2-Clause

GTFS Sample App

A Ruby on Rails based sample application to show departures from GTFS data.

Screenshots

Screenshot 1 Screenshot 2

Install

git clone https://github.com/justusjonas74/gtfs_sample_app.git
bundle install

Configuration

Copy secrets.yml.example and database.yml.example to native .yml files and add your credentials.

Database adapters: Due to GTFS specification of time points > 23:59:59 the Postgres data type interval is used for departure times. So currently only Postgres is supported. Feel free to send a pull request.

Import Data

rails gtfs:import["path/to/gtfs.zip"]
# or 
rails gtfs:import["example.com/path/to/gtfs.zip"]

Note: Actually there's a bug with "UTF-8 w/BOM" encoded feeds, so pay attention the feed you would like to import is encoded "UTF-8". Alternatively convert the encoding of the feed.

Contributing

Feel free to contribute.