tread
is a package for reading the GTFS data standard into R. It can read directly from URL’s or flat files, and does some validation of the data structure against the specification.
This is a highly simplified fork/piece of the gtfsr package.
The goal is to break that package into parts to simplify maintenance.
Among the many contributors, Danton Noriega wrote much of this package.
Fetch data for a bus system in Accra, Ghana from a URL.
library(trread)
library(dplyr)
accra_gtfs <- import_gtfs("https://github.com/AFDLab4Dev/AccraMobility/raw/master/GTFS/GTFS_Accra.zip")
Count and list the number of stops per route.