Get Public Transit Schedule Data (GTFS)
How-To
Instructions on retrieving public transit schedule GTFS data.
These pages are short step-by-step instructions on how-to get something done, in particular retrieve the required input data for assess-gtfs
.
Regardless of the source of GTFS, assess-gtfs
expects feeds to be compressed zip archives.
assess-gtfs
was written to prepare GTFS feeds for a comparison of British & French urban transport performance. This guide covers ingesting data from those territories. For other global territory data, consult the GTFS data index.
We recommend keeping your feed in your project directory under “data/external”. If you are using git version control, ensure that this directory is git-ignored.
British GTFS
Bus
- Access the Bus Open Data Service
- Click on “Timetables data”
- Create an account (if needed)
- Navigate to “Download regional and national data sets in GTFS format”
- Select the region of interest and click the link to download the file.
Rail
- Access National Rail Data Portal
- Create or register for an account (if needed)
- Access the GB timetable GTFS from the daily feed section
French GTFS
- Visit transport.data.gouv.fr for bus and rail GTFS
- Search for the region of France that you wish to acquire GTFS for.
- Alternatively, you can browse the available data by map, table or read the API documentation under the section “You can also”.
- Once you have selected an entry, ensure that it is tagged as “gtfs”, but not “gtfs-r”, which stands for “realtime”.
- Make note of the indicated transit modality and click “Download” to save the zip archive to disk.
- Optionally, use the site’s validation tool to check the quality of a file or feed.