Intro[edit | edit source]

The General Transit Feed Specification (GTFS) defines a common format for public transportation schedules and associated geographic information. GTFS "feeds" allow public transit agencies to publish their transit data and developers to write applications that consume that data in an interoperable way.

Originally developed in collaboration between several staff at the city of Portland, USA's public transit agency TriMet and Google in 2005, and called the "Google Transit Feed Specification", the Google has since been replaced by General.

The format is now in relatively wide use around the world, although particularly in the USA. The importance of a de-facto standard for public transit information has been its ability to spur an ecosystem of app developers and projects, both proprietary and Open Source, to make use of the data. This makes public transit more accessible and amenable, which should support it being a more competitive option to the private car for transport.

There is also an emerging set of tools that use GTFS to allow analysis and communication of the quality of a public transport network, such as Mapnificent and OpenTripPlanner.

About the format[edit | edit source]

GTFS data model diagram.PNG

The GTFS is a relatively simple flat-file format, specifying agencies, routes, stops, and schedules for public transit in a region. For a quick visual overview of the format, see the figure at right, reproduced with permission from Martin Davis, per this post on his blog.

Availability of GTFS feeds around the world[edit | edit source]

Many cities in the developing world now have GTFS feeds available online - usually curated by the region's public transit agencies.

A website keeping track of the global database of such agencies and feeds is the GTFS data exchange.

Some cities don't yet have such feeds available. Sometimes they have the capability to do so, and it might require citizen advocacy in order to put in place the capabilities and processes to regularly release the data. See the papers by Aaron Antrim and collaborators below with some discussion and analysis of benefits of releasing GTFS data, and how to address potential concerns, that may be helpful in convincing agencies to change their approach.

However in other cases, particularly in the developing world where there is much more 'para-transit' that runs to a far less regular schedule - there are difficulties with representing the cities' transit in the GTFS specification. See the "possible extensions / alternatives to GTFS" section below.

Software tools for working with GTFS feeds, and converting to other formats, such as Geodatabases or GIS shapefiles[edit | edit source]

One reasonably nice Open Source Python-based library for working with GTFS feeds - either creating them, or extracting information from existing feeds - is Google's transitfeed library. It also includes tools for converting from the 'TransXChange' format to GTFS. Commercial GTFS tools such as AddTransit are also available.

There are tools to import the format into a relational database form such as [1], and also either using this route or the JEQL query language, to export the relevant route information to GIS shapefiles (see here).

Possible Extensions/Alternatives to GTFS[edit | edit source]

GTFS has proved effective and useful for transit systems that follow well-defined routes and schedules in a region. But there are several aspects of possible improvements, additions, or alternatives to the standard that groups are working on:

  • Better support for fare information, to help people work out the costs of trips. See the Google Group GTFS Fares - New Request For Comment for the 2013 proposal;
  • Better integration with long-distance transport systems (especially in Europe where international rail networks can work closely with city-based transport systems);
  • Either updates to GTFS, or developing alternatives, to better support information about less format paratransit, especially in developing countries. See the Google group 'Making GTFS work for the rest of the world';
  • Updating to a more web-services approach to allow real-time updates about vehicle locations, service frequencies etc - GTFS-realtime. This standard has been released since 2011 and is operating in some areas already, such as San Francisco's BART system.

For all of these possible extensions/alternatives, there is an important design issue to consider of simplicity of the standard versus flexibility.

Interwiki[edit | edit source]

See also[edit | edit source]

Pages tagged in the GTFS category:

External Links[edit | edit source]

Mailing lists:

FA info icon.svg Angle down icon.svg Page data
Authors Patrick Sunter
License CC-BY-SA-3.0
Language English (en)
Translations Chinese, Russian
Related 2 subpages, 13 pages link here
Aliases GTFS
Impact 1,254 page views
Created July 19, 2013 by Patrick Sunter
Modified October 3, 2022 by Irene Delgado
Cookies help us deliver our services. By using our services, you agree to our use of cookies.