Use tidytransit to map transit stops and routes, calculate transit frequencies, and validate transit feeds. tidytransit reads the General Transit Feed Specification into tidyverse and simple features dataframes.


This package requires a working installation of sf.

A CRAN version is available:


For the development version from Github:

# install.packages("devtools")

For some users, sf is impractical to install due to system level dependencies. For these users, trread may work better. It has more limited functionality, but it can read GTFS tables into R.


tidytransit is a fork of gtfsr, published to CRAN, with frequency/headway calculation functions.


If you would like to contribute please feel free to issue a pull request or open an issue.


Among the many contributors, Danton Noriega wrote much of this package.