tool · draft

GTFS and GTFS Realtime

Open standard for public transport data: routes, stops, timetables and fares (GTFS Schedule), and live delays, vehicle positions and alerts (GTFS Realtime). Maintained by MobilityData.

Movement & logistics

What is reusable: open sourceunknown dataAPI unknownopen participation Apache-2.0The specification lives in the google/transit GitHub repository under Apache 2.0; the gtfs.org site is CC BY 3.0. Each agency sets the terms of its own feeds.

Transit agencies use the General Transit Feed Specification (GTFS) to tell passengers' software, most often trip planners, what they run and when.1,2 More than 10,000 agencies in over 100 countries use it, by gtfs.org's count.1 It is maintained by MobilityData, a non-profit, with the help of the community; the specification itself lives in the google/transit repository on GitHub under the Apache 2.0 licence, and the gtfs.org site is CC BY 3.0.3,5

GTFS began as a collaboration between TriMet in Portland, Oregon, and Google, to get TriMet's timetables into Google Maps, and was first called the Google Transit Feed Specification.3 It took its present name in 2010 as other software took it up.3 GTFS Realtime was added in 2011, and MobilityData was set up in 2019 to maintain it.3 It was designed to inform passengers about service, not to describe everything needed to run a transit operation.3

It has two parts. A GTFS Schedule feed is a ZIP file of simple text files.4 The basic seven are agency, routes, trips, stops, stop_times, calendar and calendar_dates.4 More than 15 optional files add fares, transfers, translations, paths inside stations and other details, and a GeoJSON file draws the areas served by demand-responsive services.4 A GTFS Realtime feed is encoded in Google's Protocol Buffers format, fetched with an ordinary web request, and always tied to a Schedule feed.4,7 It carries four kinds of update.6 Trip updates give predicted arrivals, delays, cancellations and reroutes.6 Service alerts describe a closed station or a disrupted line.6 Vehicle positions say where each vehicle is, with its speed, odometer reading and congestion level.4,6 Trip modifications describe detours that affect a set of trips.6

Feeds are found through MobilityData's Mobility Database, an open catalogue of more than 6,000 GTFS, GTFS Realtime and GBFS feeds from over 100 countries with a REST API, which also links validators for GTFS and GTFS Realtime feeds.8 Beyond trip planners, software uses GTFS to make timetables, to visualise data, for accessibility and for planning analysis.3 For a model of a place, a Schedule feed is the public transport network: where the stops are, which routes serve them and when.4 A Realtime feed adds where the vehicles are right now.6

form
open data standard
group
Transport and crowds
homepage
https://gtfs.org/
licence
Apache-2.0
cost
free

helps answer this question

  • Where will traffic go when a road closes or a lane is taken, and can signals or a timetable change keep buses on time?

needed by

  • God's Eye View tool draft

    Open-source browser globe by Bilawal Sidhu and Sameh Khamis that puts live public feeds on Google's photorealistic 3D tiles: aircraft, ships, satellites, earthquakes, fires, weather, public cameras.

    open sourcepartly open dataopen participation

Tags: public transport, transit, timetables, vehicle positions, standards, data format

staging: drafts and proposals shown