| get_gtfs_standards {gtfsio} | R Documentation |
Generate GTFS standards
Description
Generates a list specifying the standards to be used when reading and writing GTFS feeds with R. Each list element (also a list) represents a distinct GTFS table, and describes:
whether the table is required, optional or conditionally required;
the fields that compose the table, 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.
Note: the standards list is based on the specification as revised in May 9th, 2022.
Usage
get_gtfs_standards()
Value
A named list, in which each element represents the R equivalent of each GTFS table standard.
Details
GTFS standards were derived from GTFS Schedule Reference. The R data types chosen to represent each GTFS data type are described below:
Color =
characterCurrency amount =
numericCurrency code =
characterDate =
integerEmail =
characterENUM =
integerID =
characterInteger =
integerLanguage code =
characterLatitude =
numericLongitude =
numericFloat =
numericPhone number =
characterText =
characterTime =
characterTimezone =
characterURL =
character
Examples
gtfs_standards <- get_gtfs_standards()