read_gtfs: Read a GTFS Feed

View source: R/read_gtfs.R

read_gtfsR Documentation

Read a GTFS Feed

Description

Imports a GTFS zip archive and converts it to 'wizardgtfs'.

Usage

read_gtfs(file_path = NULL, files = NULL, quiet = TRUE, ...)

Arguments

file_path

Path to a GTFS '.zip' archive.

files

Optional character vector of table names without '.txt'.

quiet

Logical. Suppress importer messages.

...

Additional arguments passed to [gtfsio::import_gtfs()], including the legacy argument 'file.path'.

Value

A validated 'wizardgtfs' object.

See Also

[GTFSwizard::write_gtfs()], [GTFSwizard::as_wizardgtfs()]

Examples

path <- tempfile(fileext = ".zip")
write_gtfs(for_rail_gtfs, path)
gtfs <- read_gtfs(path)


GTFSwizard documentation built on Aug. 21, 2026, 5:16 p.m.