View source: R/get_shapes_sf.R
| get_shapes_sf | R Documentation |
Convert GTFS Shapes to Simple Features
get_shapes_sf(gtfs)
gtfs |
A GTFS object or a 'shapes' data frame. |
For a data frame, one WGS84 'LINESTRING' feature per 'shape_id'. For a GTFS object, the same object with its 'shapes' table replaced by that 'sf' object. If present, 'shape_dist_traveled' is summarized as its maximum value for each shape.
[GTFSwizard::get_shapes_df()], [GTFSwizard::get_shapes()]
gtfs_sf <- get_shapes_sf(for_rail_gtfs)
shapes_sf <- get_shapes_sf(for_rail_gtfs$shapes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.