write_gtfs | R Documentation |
'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.
write_gtfs(gtfs, zipfile, ...)
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()'. |
The function converts spatial data frames (e.g., shapes and stops) to standard data frames, removes additional service pattern tables, and exports.
None. This function writes the GTFS data directly to the specified 'zipfile'.
[GTFSwizard::read_gtfs()], [GTFSwizard::as_wizardgtfs()],
## Not run:
# Export a wizardgtfs object to a zip file
write_gtfs(for_rail_gtfs, "gtfs_export.zip")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.