R/convert-gtfs.R
shapes_df_as_sfg.Rd
return an sf multilinestring with lat and long from gtfs for a route
shapes_df_as_sfg(df)
df | the shapes_df dataframe from a gtfsr object |
---|
a multilinestring simple feature geometry (sfg) for the routes
shapes_sfg <- shapes_df_as_sfg(gtfs_obj$shapes_df)#> Error in split(df, df$shape_id): object 'gtfs_obj' not foundplot(shapes_sfg[[1]])#> Error in plot(shapes_sfg[[1]]): object 'shapes_sfg' not found