GTFS geo data

Required fields:

  • agency: Transit agencies with service represented in this dataset.
  • stops: Stops where vehicles pick up or drop off riders. Also defines stations and station entrances.
  • routes: Transit routes. A route is a group of trips that are displayed to riders as a single service.
  • trips: Trips for each route. A trip is a sequence of two or more stops that occur during a specific time period.
  • stop_times: Times that a vehicle arrives at and departs from stops for each trip.

"Optionally required": either have calendar.txt with "Service dates specified using a weekly schedule with start and end dates. " or calendar_dates.txt. If calendar_dates.txt is in addition to calendar.txt, it specifies exceptions for the service specified in calendar.txt. If calendar.txt is omitted, calendar_dates.txt should contain all dates of service.

In the Netherlands, public transport providers publish their information in GTFS format here. The OpenOV GTFS data also has:

  • feed_info (conditionally required): metadata, including publisher, version, expiration information (conditional on what?)
  • shapes (optional): rules for mapping vehicle travel paths, sometimes referred to as route alignments

N.B. they should be loaded in in a particular order. See the flow.

Schema:

GTFS schema