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. Tidytransit can be used to:
- read GTFS feeds into R
- automatically cast the spatial and temporal data in the feeds into more usable R data types
- create graphics about transit service
- map existing stops and routes
- estimate transit frequencies
- validate transit feeds
- estimate travel times between transit stops
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.
Please see:
- the tutorial
- introduction to service patterns
- introduction to time tables
- introduction to frequency calculation
- the function reference.
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.