Skip to content

sensix/py-gtfs-postgres

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Uses sample data from Chicago Transit Authority (CTA), downloaded on 1-30-2011.  Code should be modified for other database, sets of data.

Make sure pg is installed for python

cccta=# create schema gtfs;
CREATE SCHEMA
cccta=# create user gtfs superuser;
CREATE ROLE
cccta=#

Update load-gtfs.py to agency name that matches the folder with the GTFS files in it - this will also be used as the agency ID

Mapnik:
select distinct _agency_id||coalesce(agency.agency_name,'')||b.description from routes join route_types b using (route_type) join agency using (_agency_id,agency_id);

About

Converts GTFS text files into postgres format, modified from https://github.com/sbma44/py-gtfs-mysql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published