GTFS Realtime

Last updated
GTFS Realtime
GTFS Realtime Visualisation.png
Example of GTFS Realtime Visualisation of LA Metro
Filename extension
.pb
Initial release27 September 2011;12 years ago (2011-09-27)
Latest release
2.0
11 March 2024;50 days ago (2024-03-11)
Type of formatTransit realtime data format
Extended from Protocol Buffers
Standard De facto standard
Open format?Yes, CC BY 3.0
Website gtfs.org/realtime/

GTFS Realtime (also known as GTFS-rt) is an extension to GTFS, in which public transport agencies share real-time vehicle locations, arrival time predictions, and alerts such as detours and cancellations via Protocol Buffers web server. [1]

Contents

Realtime location data is created continuously by an agency from Automatic vehicle location (AVL) systems. Trip arrival times are computed using machine learning models that analyse historical positional data and timetables. [2]

The standard is used by public transport agencies globally, including the United States, Canada, countries in the European Union, United Kingdom, Australia, New Zealand, and in Yokohama, Japan.

History

On 22 August 2011, a first version of GTFS-rt was released by Google. [3] This data was shown to Google Maps users. [4]

In July 2012, Google Maps began showing alerts from GTFS-rt. [5]

A proposal that was created on July 28, 2015 and merged on Aug 15, 2015 allowed the combination of several feed entity types into a single feed. [6] While the majority of agencies separate feed entity types (Vehicle Positions, Trips, and Alerts), some feeds are still joined.

On August 30, 2021, an experimental feed entity types, Shapes, was released. Shapes has the ability to update route shapes in real time to reflect detour, as route updates are either reflected by referencing an existing shape_id or by defining in real time a new shape as an encoded polyline.

In 2022, CalTrans' Integrated Travel Project began validating GTFS Schedule and Realtime feeds published by municipality and county public transport agencies within California. [7] Monthly reports are published on the errors in agency data, along with analysis of typical street speeds and traffic.

In September 2023, Swiftly and the app Transit proposed 2 additional feed entity types: Stop and Trip Modifications. These allow agencies to broadcast new detour paths of routes and new temporary stops. The change has been released to users in the Transit app across several agencies. On March 11, 2024, the proposal was merged and released by GTFS maintainers. [8]

Standard

The GTFS Realtime specification is defined by a .proto file hosted by Google. [9] Data is serialized into raw bytes by the server and then deserialized by a client. Officially supported GTFS-rt binding libraries have been built in .NET, Java, Javascript, Python, and Go. Unofficial libraries have been written in other languages, such as Rust.

There are currently three official feed types defined in the standard, TripUpdates, VehiclePositions, and Alerts. Shapes is the fourth feed type and is currently experimental.

Agencies supporting GTFS-Realtime typically provide separate urls for the three separate feed types, and may choose to only provide some of the feeds. Unlike GTFS Static, many agencies may require developers to request an API key via email or a web form.

Developers then write programs to periodically fetch an agency's web API over HTTP, typically every few seconds to minutes. Agencies typically refresh data in frequencies ranging between 1 second to 1 minute. There is no standard for streaming GTFS Realtime data.

Trip updates

In the GTFS Specification, a trip refers to an operator driving a fixed-route vehicle from the start of the route to the end. A new trip is started for when the vehicle turns around at the end of its route.

The Trip Update feed allows maps to show the departure or arrival times of vehicles, and allows routing algorithms to update their directions. [10]

This feed contains an array of Trip Updates. Each trip update enumerates a description of a trip (trip id, route id, start and stop time, direction), last updated time, may include an associated vehicle number and route number, and contains an array of StopTimeUpdate. The StopTimeUpdate can define past, current, and future stop times, delays, and cancellations. The stop id references the static feed the agency provides.

Vehicle positions

Vehicle Positions are sometimes shown on mapping applications to aid users in tracking the location of buses. [11] This feed contains an array of VehiclePositions. Like Trip Updates, each VehiclePosition can also contain a basic description of the trip, such as its trip id, start and stop times, route number, and relationship to the schedule. The VehiclePosition also contains the current latitude and longitude of the vehicle, and can also include bearing, odometer, and speed. Finally, it can also contain information on how crowded the bus is, known as occupancy status, and status of road congestion experienced by the vehicle.

Alerts

MTA Subway GTFS-rt Alerts being posted on Transit App Alerts Transit App New York City.jpg
MTA Subway GTFS-rt Alerts being posted on Transit App

Alerts can be shown to mapping application users to alert them of detours, cancellations, or other service changes. [12] This feed contains an array of Alerts. Alerts typically don't update as often as Vehicle Positions or Trip Updates. Each Alert stores the cause (such as labour strike or a mechanical fault) of an incident, along with its effect (reduced service, detour, stop cancellation, etc.). Alerts also contain detailed headers, descriptions, urls, images, and a list of routes or stops affected (known as the Informed Entity). Alerts also contain beginning and expiration times, known as Active Periods.

Related Research Articles

<span class="mw-page-title-main">Toronto Transit Commission</span> Agency responsible for local public transit in Ontario, Canada

The Toronto Transit Commission (TTC) is the public transport agency that operates bus, subway, streetcar, and paratransit services in Toronto, Ontario, Canada, some of which run into the Peel Region and York Region. It is the oldest and largest of the urban transit service providers in the Greater Toronto Area, with numerous connections to systems serving its surrounding municipalities.

<span class="mw-page-title-main">Video Electronics Standards Association</span> Technical standards organization for computer display standards

VESA, formally known as Video Electronics Standards Association, is an American technical standards organization for computer display standards. The organization was incorporated in California in July 1989 and has its office in San Jose. It claims a membership of over 300 companies.

<span class="mw-page-title-main">Bus stop</span> Designated area for passengers to board or disembark busses

A bus stop is a place where buses stop for passengers to get on and off the bus. The construction of bus stops tends to reflect the level of usage, where stops at busy locations may have shelters, seating, and possibly electronic passenger information systems; less busy stops may use a simple pole and flag to mark the location. Bus stops are, in some locations, clustered together into transport hubs allowing interchange between routes from nearby stops and with other public transport modes to maximise convenience.

<span class="mw-page-title-main">Miami-Dade Transit</span> Primary public transit authority of Miami, Florida

Miami-Dade Transit (MDT) is the primary public transit authority of Miami, Florida and the greater Miami-Dade County area. It is the largest transit system in Florida and the 15th-largest transit system in the United States. As of 2023, the system has 80,168,700 rides per year, or about 277,400 per weekday in the fourth quarter of 2023. MDT operates the Metrobus with their paratransit STS systems run by LSF. MDT also operates two rail transit systems: Metrorail and Metromover.

<span class="mw-page-title-main">Paratransit</span> Transportation service for people with disabilities

Paratransit or Intermediate Public Transport, is a type of transportation services that supplement fixed-route mass transit by providing individualized rides without fixed routes or timetables. Paratransit services may vary considerably on the degree of flexibility they provide their customers. At their simplest they may consist of a taxi or small bus that will run along a more or less defined route and then stop to pick up or discharge passengers on request. At the other end of the spectrum—fully demand responsive transport—the most flexible paratransit systems offer on-demand call-up door-to-door service from any origin to any destination in a service area. In addition to public transit agencies, paratransit services may be operated by community groups or not-for-profit organizations, and for-profit private companies or operators.

<span class="mw-page-title-main">Google Maps</span> Googles web mapping service (launched 2005)

Google Maps is a web mapping platform and consumer application offered by Google. It offers satellite imagery, aerial photography, street maps, 360° interactive panoramic views of streets, real-time traffic conditions, and route planning for traveling by foot, car, bike, air and public transportation. As of 2020, Google Maps was being used by over one billion people every month around the world.

A timing point, time point or timepoint is a public transit stop that a vehicle tries to reach at a scheduled time. A vehicle is not supposed to pass a timepoint until the schedule time has arrived. These stops are contrasted with all other stops on a scheduled route, for which the transit agency does not explicitly schedule an arrival/departure time. These other stops occur between timepoint stops, so their scheduled times are implicitly between those of the timepoints though not explicitly defined. At minimum, it allows regular passengers to estimate when a bus would get to a stop before or after a timepoint.

<span class="mw-page-title-main">SEPTA Routes 101 and 102</span> Light rail lines in Delaware County, Pennsylvania

SEPTA Routes 101 and 102 are light rail lines operated by the Suburban Transit Division of the Southeastern Pennsylvania Transportation Authority, serving portions of Delaware County. The route's eastern terminus is 69th Street Transportation Center in Upper Darby Township, Pennsylvania. Route 101 runs to Media, while Route 102 goes to Sharon Hill. Altogether, the two lines operate on approximately 11.9 miles (19.2 km) of route. The lines are one of the few remaining interurban systems in the United States, along with the South Shore Line in Indiana, the River Line in New Jersey, and the Norristown High Speed Line, also in the Philadelphia area.

The Sacramento Regional Transit District, commonly referred to as SacRT, is the agency responsible for public transportation in the Sacramento, California area. It was established on April 1, 1973, as a result of the acquisition of the Sacramento Transit Authority. In addition to operating over 81 bus routes with connecting bus service in the Sacramento area covering 438 square miles (1,134.4 km2), SacRT also operates a large light rail system, which ranks currently as the thirteenth busiest light rail system in the United States. In 2023, the system had a ridership of 15,836,400, or about 56,600 per weekday as of the fourth quarter of 2023.

The Southwest Ohio Regional Transit Authority (SORTA) is the public transport agency serving Cincinnati and its Ohio suburbs. SORTA operates Metro fixed-route buses, bus rapid transit, microtransit, and paratransit services. SORTA's headquarters are located at the Huntington Building in Cincinnati’s Central Business District. The agency is managed by CEO and General Manager Darryl Haley along with a 13-member board of trustees. In 2023, the system had a ridership of 13,091,500, or about 44,800 per weekday as of the fourth quarter of 2023.

<span class="mw-page-title-main">GoRaleigh</span> Transit system in Raleigh, North Carolina, USA

GoRaleigh is the transit system responsible for operating most of the public transportation services in Raleigh, North Carolina. The system operates 27 fixed routes throughout the city's municipal area and also operates five regional/express routes in partnership with GoTriangle, the regional provider. GoRaleigh is contracted to operate two additional routes, an express route to the Wake Tech Community College campus south of Raleigh and a local circulator service in the Town of Wake Forest. Capital Area Transit, also known as CAT, was rebranded to GoRaleigh in 2015 under the consolidated GoTransit, a joint branding of municipal and regional transit systems for the Research Triangle. In 2023, the system had a ridership of 5,094,000, or about 14,900 per weekday as of the fourth quarter of 2023.

<span class="mw-page-title-main">Passenger information system</span> Electronic public transit communication

A passenger information system, or passenger information display system, is an automated system for supplying users of public transport with information about the nature and the state of a public transport service through visual, voice or other media. It is also known as a customer information system or an operational information system. Among the information provided by such systems, a distinction can be drawn between:

The Public Transport Information and Priority System, abbreviated PTIPS, is a computer-based system used in New South Wales, Australia, that brings together information about public transport entities, such as buses. Where applicable, PTIPS can also provide transport vehicles with priority at traffic signals.

In public transportation, schedule adherence or on-time performance refers to the level of success of the service remaining on the published schedule. On time performance, sometimes referred to as on time running, is normally expressed as a percentage, with a higher percentage meaning more vehicles are on time. The level of on time performance for many transport systems is a very important measure of the effectiveness of the system.

TransXChange is a UK national XML based data standard for the interchange of bus route and timetable information between bus operators, the Vehicle and Operator Services Agency, local authorities and passenger transport executives, and others involved in the provision of passenger information.

The Standard Interface for Real-time Information or SIRI is an XML protocol to allow distributed computers to exchange real-time information about public transport services and vehicles.

<span class="mw-page-title-main">Journey planner</span> Specialized search engine for travelling

A journey planner, trip planner, or route planner is a specialized search engine used to find an optimal means of travelling between two or more given locations, sometimes using more than one transport mode. Searches may be optimized on different criteria, for example fastest, shortest, fewest changes, cheapest. They may be constrained, for example, to leave or arrive at a certain time, to avoid certain waypoints, etc. A single journey may use a sequence of several modes of transport, meaning the system may know about public transport services as well as transport networks for private transportation. Trip planning or journey planning is sometimes distinguished from route planning, which is typically thought of as using private modes of transportation such as cycling, driving, or walking, normally using a single mode at a time. Trip or journey planning, in contrast, would make use of at least one public transport mode which operates according to published schedules; given that public transport services only depart at specific times, an algorithm must therefore not only find a path to a destination, but seek to optimize it so as to minimize the waiting time incurred for each leg. In European Standards such as Transmodel, trip planning is used specifically to describe the planning of a route for a passenger, to avoid confusion with the completely separate process of planning the operational journeys to be made by public transport vehicles on which such trips are made.

A vehicle tracking system combines the use of automatic vehicle location in individual vehicles with software that collects these fleet data for a comprehensive picture of vehicle locations. Modern vehicle tracking systems commonly use GPS or GLONASS technology for locating the vehicle, but other types of automatic vehicle location technology can also be used. Vehicle information can be viewed on electronic maps via the Internet or specialized software. Urban public transit authorities are an increasingly common user of vehicle tracking systems, particularly in large cities.

<span class="mw-page-title-main">GTFS</span> Data standard for public transport information

GTFS, which stands for General Transit Feed Specification or (originally) Google Transit Feed Specification, defines a common format for public transportation schedules and associated geographic information. 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.

<span class="mw-page-title-main">Autonomous Rail Rapid Transit</span> Guided articulated bus system

Autonomous Rail Rapid Transit (ART) is a lidar guided articulated bus system for urban passenger transport. Developed and manufactured by CRRC through CRRC Zhuzhou Institute Co Ltd, it was unveiled in Zhuzhou in the Hunan province on June 2, 2017. ART is specifically referred to as a train or rapid transit by its manufacturer, however the public describes it as a bus. Its exterior is composed of individual fixed sections joined by articulated gangways, resembling a rubber-tyred tram.

References

  1. "Reference - General Transit Feed Specification". gtfs.org. Retrieved 2023-07-31.
  2. Parkford, Stan (30 August 2021). "How do predictions work?". Swiftly Help Center.
  3. "Revision history | Realtime Transit". Google for Developers. Retrieved 2023-07-31.
  4. "Know when your bus is late with live transit updates in Google Maps". Official Google Blog. Retrieved 2024-02-02.
  5. Del Signore, John (2012-07-31). "Google Maps Now Features Alerts On Subway Service Changes". Gothamist. Retrieved 2023-08-07.
  6. "Allow multiple feed entity types in a single feed by egorich239 · Pull Request #7 · google/transit". GitHub. Retrieved 2023-12-07.
  7. "Cal-ITP unveils new open data standard to improve transit agency operations". Mass Transit. 2022-06-07. Retrieved 2024-02-02.
  8. "GTFS Trip-Modifications by gcamp · Pull Request #403 · google/transit". GitHub. Retrieved 2023-12-07.
  9. "transit/gtfs-realtime/proto/gtfs-realtime.proto at master · google/transit". GitHub.
  10. "Provide realtime trip information with TripUpdates - Transit Partners Help". support.google.com. Retrieved 2023-08-07.
  11. "Vehicle Positions | Realtime Transit". Google for Developers. Retrieved 2023-08-07.
  12. "Service Alerts | Realtime Transit". Google for Developers. Retrieved 2023-08-07.