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 data frames. Tidytransit can be used to:
- read GTFS feeds into R
- estimate transit frequencies
- calculate travel times between transit stops
- convert stops and routes to sf data frames
- map existing stops and routes
- validate transit feeds and more
Have a look at the following vignettes to see how tidytransit can be used to analyse a feed:
- the tutorial
- introduction to service patterns
- introduction to time tables
- introduction to frequency calculation
This package requires a working installation of sf.
A CRAN version is available:
install.packages('tidytransit')
For the development version from Github:
# install.packages("devtools")
devtools::install_github("r-transit/tidytransit")
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.