`write_gtfs` exports a GTFS object to a zip file format, suitable for use in various GTFS-compatible software. This function supports multiple GTFS object formats and ensures compatibility by converting data frames and spatial objects as needed.
Usage
write_gtfs(gtfs, zipfile, ...)
Value
None. This function writes the GTFS data directly to the specified `zipfile`.
Arguments
gtfs
A GTFS object. This can be in `wizardgtfs` or list format.
zipfile
A character string specifying the path to the output zip file.
...
Additional arguments to pass to `gtfsio::export_gtfs()`.
Details
The function converts spatial data frames (e.g., shapes and stops) to standard data frames, removes additional service pattern tables, and exports.