View source: R/as_wizardgtfs.R
| as_wizardgtfs | R Documentation |
Converts a list-like GTFS feed to the class used by GTFSwizard. Character GTFS dates are converted to [Date] values, a date-to-service lookup is created, and missing shapes can optionally be inferred from stop locations.
as_wizardgtfs(gtfs_list, build_shapes = TRUE)
gtfs_list |
A named list of GTFS tables or a 'tidygtfs' object. |
build_shapes |
Logical. If 'TRUE', infer 'shapes' when the table is absent. Inferred shapes connect stops with straight line segments and are intended for analysis and visualization, not map-matched routing. |
The input is checked for required tables, required fields, primary-key duplication, foreign-key consistency, increasing stop and shape sequences, valid service dates, and valid GTFS time strings. Times remain character values because GTFS permits hours greater than 24.
A 'wizardgtfs' object.
[GTFSwizard::create_gtfs()], [GTFSwizard::get_shapes()]
gtfs_wizard <- as_wizardgtfs(for_rail_gtfs, build_shapes = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.