A Ruby on Rails based sample application to show departures from GTFS data.
git clone https://github.com/justusjonas74/gtfs_sample_app.git
bundle install
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.
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.
Feel free to contribute.