Skip to contents

CRAN status gtfstools status badge R-CMD-check Codecov test coverage Lifecycle: stable CRAN/METACRAN Total downloads

gtfstools offers a set of convenient tools for editing and analysing transit feeds in GTFS format. Feeds are read as a list of data.tables, allowing for easy and fast data manipulation. Many of this package’s features are based on functions from other packages, especially {tidytransit} and {gtfs2gps}.

Installation

Stable version:

install.packages("gtfstools")

Development version:

# either
install.packages("gtfstools", repos = "https://dhersz.r-universe.dev")

# or
# install.packages("remotes")
remotes::install_github("ipea/gtfstools")

This package requires a working installation of {sf}. Please check this link for more information on how to install it.

Usage

Please read gtfstools vignettes for more on the package usage:

  • {gtfs2gps}: Converting public transport data from GTFS format to GPS-like records
  • {gtfs2emis}: Estimating public transport emissions from GTFS data
  • {GTFShift}: Explore and Analyse GTFS with a Focus on Urban Mobility
  • {tidytransit}: Read, Validate, Analyze, and Map GTFS Feeds
  • {croquis}: Interactive way to create and edit GTFS feeds in R
  • {gtfsrealtime}: Read GTFS-Realtime Files into Data Frames
  • {gtfsrouter}: Routing with GTFS data
  • {r5r}: Rapid Realistic Routing with R5 in R

Acknowledgement IPEA

gtfstools is developed by a team at the Institute for Applied Economic Research (Ipea), Brazil.