read_gtfs | R Documentation |
Reads GTFS files from a .zip file.
read_gtfs(file.path, files = NULL, quiet = TRUE, ...)
file.path |
A path to a .zip GTFS file. |
files |
A character vector containing the text files to be read from the GTFS zip (without the .txt extension). Defaults to NULL, which reads all files. |
quiet |
Logical. If TRUE, suppresses messages from gtfsio::import_gtfs(). Defaults to TRUE. |
... |
Additional arguments to pass to gtfsio::import_gtfs(). |
If no specific files are indicated, all GTFS files within the zip archive are read. After importing, the function converts the GTFS data into a 'wizardgtfs' object, which is tailored for efficient handling and analysis of transit data.
A 'wizardgtfs' object: a list of tibbles representing each text file in the .zip and a tibble for services by date.
Additional notes can be added here if needed.
[GTFSwizard::as_wizardgtfs()]
## Not run:
gtfs_data <- read_gtfs("path/to/gtfs.zip")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.