View source: R/get_shapes_df.R
| get_shapes_df | R Documentation |
Convert Shape Geometries to a GTFS Shapes Table
get_shapes_df(shape)
shape |
An 'sf' object with a 'shape_id' field and line geometries. |
Distances are geodesic approximations between consecutive coordinates. GTFS permits any consistent distance unit; this function uses meters.
A tibble containing 'shape_id', WGS84 point coordinates, 'shape_pt_sequence', and cumulative 'shape_dist_traveled' in meters.
[GTFS Schedule Reference](https://gtfs.org/documentation/schedule/reference/#shapestxt)
[GTFSwizard::get_shapes_sf()], [GTFSwizard::get_shapes()]
shapes_sf <- get_shapes_sf(for_rail_gtfs)$shapes
shapes_df <- get_shapes_df(shapes_sf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.