read_gtfs | R Documentation |
Reads a GTFS feed from either a local .zip
file or an URL and validates them against
GTFS specifications.
read_gtfs(path, files = NULL, quiet = TRUE, ...)
path |
The path to a GTFS |
files |
A character vector containing the text files to be validated against the GTFS
specification without the file extension ( |
quiet |
Whether to hide log messages and progress bars (defaults to TRUE). |
... |
Can be used to pass on arguments to |
A tidygtfs object: a list of tibbles in which each entry represents a GTFS text
file. Additional tables are stored in the .
sublist.
validate_gtfs()
, write_gtfs()
## Not run:
local_gtfs_path <- system.file("extdata", "nyc_subway.zip", package = "tidytransit")
gtfs <- read_gtfs(local_gtfs_path)
summary(gtfs)
gtfs <- read_gtfs(local_gtfs_path, files = c("trips", "stop_times"))
names(gtfs)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.