This project is archived. Tulsa Transit began publishing their GTFS data in 2013, and now the Tulsa bus schedule is available in Google Maps and other trip planning software. Tulsa Transit does not use this project to generate their GTFS feed.
This project is for converting is the code a transit 'signup' from the Metropolitan Tulsa Transit Authority (MTTA) into a General Transit Feed Specification (GTFS), that can be used with other transit software such as OpenTripPlanner. Our goal is to get this data onto Google Maps and any other publicly available transit database.
To run the project:
- Install python, pip, virtualenv, and virtualenvwrapper
mkvirtualenv ttgto create the new virtualenv
pip install -r requirements.txtto download the third-party libraries
- Install the GeoDjango requirements. PostgreSQL and PostGIS recommended. See https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/#ref-gis-install
- Get a copy of the Tulsa Transit Authority's signup data. It should be a zip file.
- Change to the
local_settings.py, change as needed.
- Back in the main folder, run
./manage.py syncdb; ./manage.py migrateto create a new database.
./manage.py importmttasignup signup.zipto import into SignUp #1
./manage.py copymttatogtfs 1to copy SignUp #1 to Feed #1
./manage.py exportgtfs --name feed.zip 1to export Feed #1 to feed.zip
feedvalidator.py feed.zipto validate the feed
schedule_viewer.py feed.zipto view the schedule
/manage.py runserverto start up Django. The Django admin may be the only interesting part.
Required files for this project
You'll need a signup file from the Tulsa Transit Authority to populate your database. Contact John Whitlock or Luke Crouch to get a copy.
Other useful information: