Skip to content
This repository has been archived by the owner on Jan 23, 2019. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

justusjonas74/gtfs_sample_app

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published