as_wizardgtfs: Convert GTFS Object to wizardgtfs Format
Description
`as_wizardgtfs` transforms a GTFS object into the `wizardgtfs` format, providing enhanced functionality and compatibility with the GTFSwizard package. This function supports GTFS objects in various formats, including `tidygtfs` and list-based structures, and can optionally create a shapes table if it is missing.
Usage
as_wizardgtfs(gtfs_list, build_shapes = TRUE)
Value
An object of class `wizardgtfs`, which includes multiple data frames for transit data analysis.
Arguments
gtfs_list
A GTFS object in list or `tidygtfs` format.
build_shapes
Logical. If `TRUE`, builds the shapes table if it is missing in the provided GTFS object. Default is `TRUE`.
Details
- `as_wizardgtfs` is a generic function with S3 methods for different GTFS object formats.
- The `wizardgtfs` format includes additional processing and checks, such as validation of unique IDs and structure formatting.