There is a newer version of this record available.

Software Open Access

gtfsio: Read and Write General Transit Feed Specification (GTFS) Files

Herszenhut, Daniel; Poletti, Flavio

Padgham, Mark; Pereira, Rafael H. M.; Buckley, Tom
Ipea - Institute for Applied Economic Research

gtfsio offers tools for the development of GTFS-related packages. It establishes a standard for representing GTFS feeds using R data types based on Google’s Static GTFS Reference. It provides fast and flexible functions to read and write GTFS feeds while sticking to this standard. It defines a basic gtfs class which is meant to be extended by packages that depend on it. And it also offers utility functions that support checking the structure of GTFS objects.


Bug fixes

  • Fixed a bug (or perhaps, changed the behaviour) of check_fields_exist() and check_fields_types() when a lower-level test (i.e. if the file that holds such field exists, for example) failed. Now it returns FALSE instead of raising an error.
Files (35.1 kB)
Name Size
35.1 kB Download
All versions This version
Views 23892
Downloads 122
Data volume 440.6 kB70.2 kB
Unique views 18883
Unique downloads 112


Cite as