Transit Now Nashville logo

GTFS Rails API

This Ruby on Rails application provides a JSON API representation of the data contained in a given GTFS feed from a local transit provider.

Installation

  1. Copy .env .env.{environment}.local, e.g. .env.development.local
  2. Update copied file to include correct settings
  3. Run bundle install
  4. Run bin/rails db:create
  5. Run bin/rails db:migrate
  6. Run bin/rails import:all

Overrides

There may be certain attributes that are incorrect or missing in the GTFS file. The import:all task can apply corrections after the import has completed. To use this feature, copy overrides.yml.dist to overrides.yml and use the example to apply the needed changes.

API Spec

Download our Postman Collection

Source Code

GitHub Releases