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

  • import_gtfs() would ocasionally include the full path to a table to their name in a GTFS object (#17). Fixed by Mark Padgham (@mapdge) in #18.


New features

  • Added new summary.gtfs method. Thanks Mark Padgham (@mapdge).
  • import_gtfs() has a new encoding parameter, used to handle encoded strings in their native encoding.
Files (41.9 kB)
Name Size
41.9 kB Download
All versions This version
Views 18512
Downloads 124
Data volume 440.6 kB167.7 kB
Unique views 14810
Unique downloads 114


Cite as