GTFS

GTFS
Transit information display from Digitransit Ulm derived from GTFS data
A visualization created from GTFS data for transit routes in Ulm, Germany
Filename extension
.zip
Developed byGoogle
Initial release27 September 2006; 18 years ago (2006-09-27)
Type of formatTransit schedule format
Extended fromCSV
StandardDe facto standard
Open format?Yes, CC BY 3.0
Websitegtfs.org

GTFS or the General Transit Feed Specification defines a common data format for public transportation schedules and associated geographic information.[1] GTFS contains only static or scheduled information about public transport services, and is sometimes known as GTFS Static or GTFS Schedule to distinguish it from the GTFS Realtime extension, which defines how information on the realtime status of services can be shared.[1][2]

History

What was to become GTFS started out as a side project of Google employee Chris Harrelson in 2005, who "monkeyed around with ways to incorporate transit data into Google Maps when he heard from Tim and Bibiana McHugh, married IT managers at TriMet, the transit agency for Portland, Oregon".[3] McHugh is cited with being frustrated about finding transit directions in unfamiliar cities, while popular mapping services were already offering easy-to-use driving directions at the time.[4]

Bibiana and Tim McHugh eventually got into contact with Google and provided the company with CSV exports of TriMet's schedule data. In December 2005, Portland became the first city to be featured in the first version of Google's "Transit Trip Planner".[5] In September 2006, five more US cities were added to the Google Transit Trip Planner, and the data format released as the Google Transit Feed Specification.[6]

In the United States, there had not been any standard for public transit timetables prior to the advent of GTFS, not even a de facto standard. According to long-time BART website manager Timothy Moore, before the advent of GTFS, BART had to provide different data consumers with different formats, making a standardized transit format very desirable.[3] The publicly and freely available format specification, as well as the availability of GTFS schedules, quickly made developers base their transit-related software on the format. This resulted in "hundreds of useful and popular transit applications"[4] as well as catalogues listing available GTFS feeds. Due to the common data format those applications adhere to, solutions do not need to be custom-tailored to one transit operator, but can easily be extended to any region where a GTFS feed is available.

Due to the wide use of the format, the "Google" part of the original name was seen as a misnomer "that makes some potential users shy away from adopting GTFS". As a consequence, it was proposed to change the name of the specification to General Transit Feed Specification in 2009.[7]

Applications

Screenshot showing OpenTripPlanner with route from GTFS data highlighted.
GTFS-based reachability analysis via Mapnificent

Journey planning

GTFS is typically used to supply data on public transit for use in multi-modal journey planner applications. In most cases, GTFS is combined with a detailed representation of the street/pedestrian network to allow routing to take place from point to point rather than just between stops. This data is often extended using GTFS-Realtime to factor delays, cancellations, and modified trips into realtime journey planning queries. OpenTripPlanner is open-source software that can do journey planning with a combination of GTFS and OpenStreetMap data.[8] Other general purpose applications exist such as the ArcMap Network Analyst extension which can incorporate GTFS for transit routing.[9]

GTFS was originally designed for use in Google Transit, an online multi-modal journey planning application.

Accessibility research

GTFS is often used in research on transit accessibility where it is typically used to estimate travel times by transit from one point to many other points at different times of day.[10][11] Studies however have called such applications into question due to their reliance on schedules alone without accounting for reliability issues and regular schedule non-adherence.[12]

Comparing service levels

GTFS has been used to measure changes in accessibility due to changes in transit service provision, either actual[13] or proposed.[14] Analysis of changes in service over time can be accomplished by simply comparing published GTFS data for the same agency from different time periods. For comparison of existing service with proposed infrastructure or service changes, a future GTFS must often be constructed by hand based on proposed service characteristics.[14]

Feed registries

Public GTFS feeds have been aggregated in a variety of feed registries:

  • Mobility Database (2023 - present) builds on TransitFeeds (2013-2024) which maintained a directory of GTFS and GTFS Realtime feeds and an interactive website for browsing feed contents.
  • Transitland (2014 - present) maintains a directory of GTFS and GTFS Realtime feeds in 55+ countries and provides both an interactive website and APIs for querying feed contents. Transitland was originally created by Mapzen and is now maintained by Interline Technologies.
  • GTFS Data Exchange (2008–2016) allowed public transit agencies of all sizes to upload copies of their GTFS feeds. The website is no longer active.

Structure

Class diagram of GTFS
Class diagram of GTFS

A GTFS feed is a collection of at least six, and up to 13 CSV files (with extension .txt) contained within a .zip file. Preferred character encoding is UTF-8. Together, the related CSV tables describe a transit system's scheduled operations as visible to riders. The specification is designed to be sufficient to provide trip planning functionality, but is also useful for other applications such as analysis of service levels and some general performance measures. In contrast to European transit industry exchange standards such as Transmodel or VDV-45X, GTFS only includes scheduled operations that are meant to be distributed to riders. It is also limited to scheduled information and does not include real-time information. However, real-time information can be related to GTFS schedules according to the related GTFS Realtime specification.[1][2]

Following are descriptions of the tables required for a valid GTFS data feed. Each table is literally a text CSV file whose filename is the name of the table, suffixed by '.txt'. So for the 'agency' table below, a CSV file called 'agency.txt' would be included in a valid GTFS feed.

Mandatory tables

agency

The agency table provides information about the transit agency as such, including name, website and contact information.

Required fields:

  • agency_name
  • agency_url
  • agency_timezone

routes

The routes table identifies distinct routes. This is to be distinguished from distinct routings (or paths), several of which may belong to a single route.

Required fields:

  • route_id (primary key)
  • route_short_name
  • route_long_name
  • route_type
  • background_color
  • foreground_color

trips

Required fields:

  • trip_id (primary key)
  • route_id (foreign key)
  • service_id (foreign key)

Optional fields:

  • block_id - The block ID indicates the schedule block to which a trip belongs.

stop_times

Required fields:

  • stop_id (primary key)
  • trip_id (foreign key)
  • arrival_time
  • departure_time
  • stop_sequence

Note that dwell time may be modelled by the difference between the arrival and departure times. However, many agencies do not seem to model dwell time for most stops.[original research?]

stops

The stops table defines the geographic locations of each and every actual stop or station in the transit system as well as, and optionally, some of the amenities associated with those stops.

Required fields:

  • stop_id (primary key)
  • stop_name
  • stop_lon
  • stop_lat

calendar

The calendar table defines service patterns that operate recurrently such as, for example, every weekday. Service patterns that don't repeat such as for a one-time special event will be defined in the calendar_dates table.

Required fields:

  • service_id (primary key)
  • Monday
  • Tuesday
  • Wednesday
  • Thursday
  • Friday
  • Saturday
  • Sunday
  • start_date
  • end_date

Optional tables

calendar_dates

Calendar dates is an optional table which adds exceptions to the calendar.txt file. This can be adding additional days or removing days, such as for holiday service. The file only contains three columns, the service id, date, and exception type (either added or removed). A service id does not have to be inside the calendar.txt file to be added to this table.

fare_attributes

fare_rules

shapes

Rules for drawing lines on a map to represent a transit organization's routes.

frequencies

This table specifies headway (time between trips) for routes with variable frequency of service.

transfers

Rules for making connections at transfer points between routes.

feed_info

An optional feed start date and optional feed expiration date can be set. Agencies may publish feeds that are several days into the future. Thus, journey planning software applications keep multiple feed versions and the correct feed for a particular day or time.

translations

The translations table consists of the columns table_name, field_name, field_value,record_id,record_sub_id,language,translation. Translations are broken down into their respective tables, and any text field or URL may be translated. Translations in GTFS use two types of keys in the key-value table. Record_id uses ID for the field like stop_id or trip_id, while field_value is a matching value to the field_name's original contents. Tables using a two value tuple, such as stop_times, use record_id and record_sub_id to represent the tuple. The translation column is the output.

See also

References

  1. ^ a b c "GTFS Static Overview". GoogleDevelopers. Archived from the original on 29 September 2022. Retrieved 29 September 2022.
  2. ^ a b "GTFS Realtime Overview". GoogleDevelopers. Archived from the original on 29 September 2022. Retrieved 29 September 2022.
  3. ^ a b Roush, Wade (2012). "Welcome to Google transit: How (and why) the search giant is remapping public transportation" (PDF). Community Transportation: 3. Retrieved 14 March 2016.
  4. ^ a b Dyson, Lauren; Goldstein, Brett; Nemani, Abhi (2013). Beyond Transparency. Code for America Press. pp. 125–135. CiteSeerX 10.1.1.674.6114.
  5. ^ Garg, Avichal. "Public Transit via Google". Official Google Blog. Archived from the original on 24 March 2016. Retrieved 14 March 2016.
  6. ^ Harrelson, Chris. "Happy Trails with Google Transit". Official Google Blog. Archived from the original on 24 March 2016. Retrieved 14 March 2016.
  7. ^ Hughes, Joe. "proposal: remove "Google" from the name of GTFS". General Transit Feed Spec Changes. Google Groups. Archived from the original on 29 September 2022. Retrieved 14 March 2016.
  8. ^ "Home | OpenTripPlanner". www.opentripplanner.org. Archived from the original on 8 May 2017. Retrieved 12 May 2017.
  9. ^ "Yay, transit! - Using GTFS Data in ArcGIS Network Analyst". transit.melindamorang.com. Archived from the original on 19 May 2017. Retrieved 12 May 2017.
  10. ^ Farber, Steven; Morang, Melinda Z.; Widener, Michael J. (1 September 2014). "Temporal variability in transit-based accessibility to supermarkets". Applied Geography. 53: 149–159. Bibcode:2014AppGe..53..149F. doi:10.1016/j.apgeog.2014.06.012.
  11. ^ Fransen, Koos; Neutens, Tijs; Farber, Steven; De Maeyer, Philippe; Deruyter, Greet; Witlox, Frank (1 October 2015). "Identifying public transport gaps using time-dependent accessibility levels". Journal of Transport Geography. 48: 176–187. Bibcode:2015JTGeo..48..176F. doi:10.1016/j.jtrangeo.2015.09.008. hdl:1854/LU-6956461.
  12. ^ Wessel, Nate; Allen, Jeff; Farber, Steven (1 June 2017). "Constructing a routable retrospective transit timetable from a real-time vehicle location feed and GTFS". Journal of Transport Geography. 62: 92–97. Bibcode:2017JTGeo..62...92W. doi:10.1016/j.jtrangeo.2017.04.012. ISSN 0966-6923.
  13. ^ Farber, Steven; Fu, Liwei (1 March 2017). "Dynamic public transit accessibility using travel time cubes: Comparing the effects of infrastructure (dis)investments over time". Computers, Environment and Urban Systems. 62: 30–40. Bibcode:2017CEUS...62...30F. doi:10.1016/j.compenvurbsys.2016.10.005.
  14. ^ a b Farber, Steven; Grandez, Maria (2017). "Transit Accessibility, Land Development and Socioeconomic Priority: A Typology of Planned Station Catchment Areas in the Greater Toronto and Hamilton Area" (PDF). Journal of Transport and Land Use. 10 (1). doi:10.5198/jtlu.2017.980. (note: forthcoming edition).


This article contains excerpts from "Opening Public Transit Data in Germany" by Stefan Kaufmann, which is available under a Creative Commons Attribution 3.0 unported license.

Read other articles:

 凡例浅野 長矩 浅野 長矩時代 江戸時代前期 - 中期生誕 寛文7年8月11日(1667年9月28日)死没 元禄14年3月14日(1701年4月21日)改名 犬千代(幼名)、長矩別名 又一郎、又市郎(通称)諡号 梅谷戒名 冷光院殿前少府朝散大夫吹毛玄利大居士墓所 高野山悉地院(無量光院)官位 従五位下・内匠頭幕府 江戸幕府藩 播磨赤穂藩主[1]氏族 浅野氏父母 父:浅野長友、母:...

 

 

Systemically Important Banks Globally Systemically Important Banks[1] UBS Group AG (including Credit Suisse) Domestically Systemically Important Banks[2] Zurich Cantonal Bank Raiffeisen PostFinance Top-tier Swiss banks Other Swiss-based banks with a significant presence domestically and overseas with considerable assets under management.[citation needed] Julius Baer Group Vontobel Pictet Group Lombard Odier J. Safra Sarasin Union Bancaire Privee EFG International Mirab...

 

 

New Zealand political candidatesin the MMP era 1996   party lists   by electorate 1999   party lists   by electorate 2002   party lists   by electorate 2005   party lists   by electorate 2008   party lists   by electorate 2011   party lists   by electorate 2014   party lists   by electorate 2017   party lists   by electorate 2020   party lists   by electorate 2023   party lists   by electorate ...

Indian Bengali-language daily newspaper Anandabazar PatrikaFront page of 9 December 2022TypeDaily newspaperFormatBroadsheetOwner(s)Ananda(ABP Group)EditorIshani Dutta Ray[1]Founded13 March 1922; 101 years ago (13 March 1922)LanguageBengaliHeadquartersKolkata, West Bengal, IndiaCountryIndiaCirculation802,289 (as of June 2022)[2]Sister newspapersThe TelegraphOCLC number187024438 Websitewww.anandabazar.comMedia of IndiaList of newspapers Anandabazar Patrika (Beng...

 

 

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: 78 number – news · newspapers · books · scholar · JSTOR (December 2010) (Learn how and when to remove this template message) Natural number ← 77 78 79 → ← 70 71 72 73 74 75 76 77 78 79 → List of numbersIntegers← 0 10 20 30 40 50 60 70 80 ...

 

 

Position in the Church of England St George's Chapel, Windsor The Dean of Windsor is the spiritual head of the canons of St George's Chapel at Windsor Castle, England. The dean chairs meetings of the Chapter of Canons as primus inter pares. The post of Dean of Wolverhampton was assimilated to the deanery of Windsor, around 1480, until 1846.[1] List of deans Late medieval 1348 John de la Chambre 1349 William Mugge 1381 Walter Almaly 1389 Thomas Butiller 1402 Richard Kingston 1419 John ...

Sri Lankan politician (born 1934) Hema PremadasaFirst Lady of Sri Lanka'2 January 1989 – 1 May 1993Preceded byElina JayewardeneSucceeded byWimalawathi Kumarihami Personal detailsBornHema Wickramatunge (1934-10-27) 27 October 1934 (age 89)Bandarawela, British CeylonNationalitySri LankanSpouseRanasinghe Premadasa (m.1964 – d.1993)ChildrenSajith, Dulanjali Hema Premadasa (née Wickramatunge; born 27 October 1934) is a former First Lady of Sri Lanka. She was in the office of the...

 

 

Typeface Typeface Adobe TrajanCategorySerifClassificationIncisedDesigner(s)Carol Twombly and Robert Slimbach[1]FoundryAdobe Type Trajan is a serif typeface designed in 1989 by Carol Twombly for Adobe.[2][1] The design is based on the letterforms of capitalis monumentalis or Roman square capitals, as used for the inscription at the base of Trajan's Column from which the typeface takes its name. Trajan is an all-capitals typeface, as the Romans did not use lowercase lett...

 

 

Location of Half Moon Island in the South Shetland Islands Xenia Hill (the farther hill on the left side of Half Moon Island) from Kuzman Knoll, Livingston Island, with Greenwich Island in the background Topographic map of Livingston Island and Smith Island Xenia Hill is the rocky hill rising to 96 m in the northeast extremity of Half Moon Island in the South Shetland Islands, Antarctica. It surmounts McFarlane Strait to the north and east, and Menguante Cove to the south-southeast. The area ...

Bernard TerminalGeneral informationLocation10909 Yonge Street, Richmond Hill, ONCoordinates43°53′40.7″N 79°26′31.6″W / 43.894639°N 79.442111°W / 43.894639; -79.442111Owned byRegional Municipality of YorkOperated by York Region TransitBus routes YRT routes  81  Inspiration 83  Trench 86  Newkirk–Red Maple 98  Yonge 99  Yonge Viva BlueBus stands6 + 4 on-street stopsHistoryOpened1996 Bernard Vivastation on Yo...

 

 

United States historic placeHelmer and Selma Steen HouseU.S. National Register of Historic Places Steen HouseShow map of Washington (state)Show map of the United StatesLocation10924 SW Cove Rd., Vashon, WashingtonCoordinates47°27′24″N 122°28′31″W / 47.456749°N 122.475311°W / 47.456749; -122.475311Area12.5 acres (5.1 ha)Built1911 (1911)Built bySteen, HelmerArchitectural styleBungalow/craftsmanNRHP reference No.00000976[1]Adde...

 

 

Ambrosios Zografos Ambrosios (Greek: Αμβρόσιος, secular name Aristotelis Zografos, Greek: Αριστοτέλης Ζωγράφος; born 15 March 1960, Aegina, Attica, Greece) is a bishop of the Ecumenical Patriarchate of Constantinople; the Metropolitan of Korea and Exarch of Japan[1] (since 2008). He is also a professor at the Department of Greek Studies at Hankuk University of Foreign Studies. Biographical timeline He was born on the island of Aegina in Greece on 15 March 1...

Reconstructed layout of the Roman forum at Lahnau-Waldgirmes The Roman Forum of Lahnau-Waldgirmes (German: Römisches Forum Lahnau-Waldgirmes) is a fortified Roman trading place, located at the edge of the modern village Waldgirmes, part of Lahnau on the Lahn, Hesse, Germany. The site has the oldest known stone buildings in Magna Germania. The archaeological evidence at Waldgirmes suggests the remains of one of a series of planned towns and market places founded by the Romans east of the Rhin...

 

 

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Cosmopolitan Television – news · newspapers · books · scholar · JSTOR (July 2023) (Learn how and when to remove this template message) Cosmopolitan Television brand logo, same logo used for all local channel versions Cosmopolitan Television brand logo, used in ...

 

 

Voce principale: Società Sportiva Lazio. SP LazioStagione 1902Sport calcio Squadra Lazio Allenatore Bruto Seghettini, poi Sante Ancherani[1] Presidente Giuseppe Pedercini StadioCampo di Piazza D'Armi 1901 1902-1903 Si invita a seguire il modello di voce Questa voce raccoglie le informazioni riguardanti la Società Podistica Lazio nelle competizioni ufficiali della stagione 1902. Indice 1 Stagione 2 Divise 3 Organigramma societario 4 Rosa 5 Calciomercato 6 Note Stagione Per la pa...

Красавицей я не былаазерб. Mən ki gözəl deyildim Жанр драма Режиссёры Рамиз Аскеров, Ага-Рза Кулиев, Тофик Тагизаде Продюсер Али Мамедов (директор фильма) Авторысценария Байрам Байрамов, Ага-Рза Кулиев, Тофик Тагизаде В главныхролях Хураман Касимова, Исмаил Османлы, Шахмар Але...

 

 

Javier May Rodríguez Director general del Fondo Nacional de Fomento al Turismo 11 de enero de 2022-5 de septiembre de 2023Presidente Andrés Manuel López ObradorPredecesor Rogelio Jiménez PonsSucesor Óscar Lozano Águila Secretario de Bienestar 2 de septiembre de 2020-11 de enero de 2022Presidente Andrés Manuel López ObradorPredecesor María Luisa Albores GonzálezSucesor Ariadna Montiel Reyes Senador del Congreso de la Uniónpor TabascoSegunda fórmula 1 de septiembre de 2018-29 de nov...

 

 

火星で見たフォボスの太陽面通過 通過(つうか、transit)は、天文学において、以下の2つの意味を持つ。 ある特定の地点にいる観測者から見たときに、ある天体が別の天体の全面を横切って動いていくように見える天文現象である。経過とも呼ぶ[1]。 天体が地球の自転のために昇ってから沈むまでのおおよそ中間付近で、子午線を通過する時に起こる。例えば、...

Bulgarian Stock ExchangeБългарска фондова борсаTypeStock ExchangeLocationSofia, BulgariaFounded1991OwnerMinistry of Finance (50.5%) Public companies (49.5%)Market cap28.35 billion BGN (2020)IndicesSOFIXBG40 BGTR30BGREITWebsitewww.bse-sofia.bg The Bulgarian Stock Exchange (Bulgarian: Българска фондова борса, Romanized: Bulgarska fondova borsa), or BSE, is the sole licensed and operating stock exchange in Bulgaria. It was founded on 10 October 1991. Th...

 

 

ВандевільVendeville   Країна  Франція Регіон О-де-Франс  Департамент Нор  Округ Лілль Кантон Секлен-Нор Код INSEE 59609 Поштові індекси 59175 Координати 50°34′34″ пн. ш. 3°04′45″ сх. д.H G O Висота 36 - 51 м.н.р.м. Площа 2,57 км² Населення 1546 (01.01.2021[1]) Густота 601,6 ос./км² Розм...

 

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!