General Transit Feed Specification

From Wikipedia, the free encyclopedia
  (Redirected from GTFS)
Jump to: navigation, search

The General Transit Feed Specification (GTFS) defines a common format for public transportation schedules and associated geographic information.

GTFS, first conceived by Bibiana McHugh, an IT Manager at the TriMet transit agency in the Portland metropolitan area (Oregon) was developed by Google and Portland TriMet, and originally known as the Google Transit Feed Specification.[1]

A GTFS feed is a collection of CSV files (with extension .txt) contained within a .zip file. Together, the related CSV tables describe a transit system's scheduled operations. 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. GTFS only includes scheduled operations, 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].

Structure[edit]

Required tables and their required fields:

agency.txt

  • agency_name
  • agency_url
  • agency_timezone

routes.txt

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

trips.txt

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

stop_times.txt

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

stops.txt

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

calendar.txt

  • service_id (primary key)
  • monday
  • tuesday
  • wednesday
  • thursday
  • friday
  • saturday
  • sunday
  • start_date
  • end_date

Optional tables:

  • calendar_dates.txt
  • fare_attributes.txt
  • fare_rules.txt
  • shapes.txt
  • frequencies.txt
  • transfers.txt
  • feed_info.txt

See also[edit]

External links[edit]

References[edit]

  1. ^ proposal: remove "Google" from the name of GTFS