Skip to content
A SQL load script for importing General Transit Feed Specification (GTFS) files into an SQL database.
TSQL
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
sql
LICENSE
README.md

README.md

GTFS to SQL

A SQL load script for importing General Transit Feed Specification (GTFS) files into an SQL database.

Before you start

Edit the file to ensure the database name and file locations are correct.

The script by default expects the script to be run along side a /data directory with the GTFS text files inside. This path can be changed in the various LOAD DATA LOCAL INFILE lines at the bottom of the SQL script.

Running the loader

Example usage:

cat load-gtfs.sql | mysql -p -u root

Useful Links

You can’t perform that action at this time.