shapes_df_as_sfg: return an sf multilinestring with lat and long from gtfs for...

View source: R/convert-gtfs.R

shapes_df_as_sfgR Documentation

return an sf multilinestring with lat and long from gtfs for a route

Description

return an sf multilinestring with lat and long from gtfs for a route

Usage

shapes_df_as_sfg(df)

Arguments

df

the shapes_df dataframe from a gtfsr object

Value

a multilinestring simple feature geometry (sfg) for the routes

Examples

shapes_sfg <- shapes_df_as_sfg(gtfs_obj$shapes_df)
plot(shapes_sfg[[1]])

ropenscilabs/gtfsr documentation built on June 11, 2022, 9:45 p.m.