This is a small utility for quickly and easily importing GTFS data into a SQL (i.e. relational) database. It is released under the MIT license. Using GTFS SQL ImporterThe code below shows how to import some data from a bash prompt. PostgreSQL
SQLite
SQLite compatibility contributed by Justin Jones. See README for details.
Other Non-PostgreSQL
If you don't have PostgreSQL, then the python line should be as follows: Most GTFS data has errors in it, so you will likely encounter an error when running the above steps. After fixing the error by manually correcting the GTFS files, you can simply repeat the command (which will likely break again, and so on). The source download includes a corrected version of the demo feed from the GTFS website, in the src/sample_feed directory. You should play around with that first to get everything to work and to see how the data gets put into tables. LinksGTFS (General Transit Feed Specification)GTFS Data Exchange List of Public GTFS feeds |