Generates a list specifying the standards to be used when reading and writing GTFS feeds with R. Each element (also a list) represents a distinct GTFS text file, and describes:

  • whether this file is required, optional or conditionally required;

  • the fields that compose each file, including which R data type is best suited to represent it, whether the field is required, optional or conditionally required, and which values it can assume (most relevant to GTFS ENUMs.

get_gtfs_standards()

Value

A named list, in which each element represents the R equivalent of each GTFS text file standard.

Details

GTFS standards were derived from Google's Static GTFS Reference. The R data types chosen to represent each GTFS data type are described below:

  • Color = character

  • Currency code = character

  • Date = integer

  • Email = character

  • ENUM = integer

  • ID = character

  • Integer = integer

  • Language code = character

  • Latitude = numeric

  • Longitude = numeric

  • Float = numeric

  • Phone number = character

  • Text = character

  • Time = character

  • Timezone = character

  • URL = character

Examples

gtfs_standards <- get_gtfs_standards()