write_gtfs: Write a GTFS Feed

View source: R/write_gtfs.R

write_gtfsR Documentation

Write a GTFS Feed

Description

Exports a GTFS object to a zip archive. Internal 'dates_services' data are omitted, GTFS dates use 'YYYYMMDD', and spatial stops/shapes are converted back to standard text-table columns.

Usage

write_gtfs(gtfs, zipfile, ...)

Arguments

gtfs

A GTFS object.

zipfile

Output '.zip' path.

...

Additional arguments passed to the format-specific writer.

Value

The normalized output path, invisibly.

See Also

[GTFSwizard::read_gtfs()]

Examples

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


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