| read_gtfs | R Documentation |
Imports a GTFS zip archive and converts it to wizardgtfs.
read_gtfs(
file_path = NULL,
files = NULL,
quiet = TRUE,
repair = c("legacy", "none"),
...
)
file_path |
Optional path to a GTFS |
files |
Optional character vector of table names without |
quiet |
Logical. Suppress importer messages and UTF-16 conversion warnings. |
repair |
Reference cleanup policy passed to |
... |
Additional arguments passed to |
UTF-16LE and UTF-16BE GTFS text files are converted to UTF-8 in a
temporary copy before import. The original ZIP is not modified. When
quiet = FALSE, a warning identifies the converted files. Other import
arguments, including fields, extra_spec, and skip, are preserved.
A validated wizardgtfs object.
write_gtfs(), as_wizardgtfs()
path <- tempfile(fileext = ".zip")
write_gtfs(for_rail_gtfs, path)
gtfs <- read_gtfs(path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.