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

Description Usage Arguments Value Examples

View source: R/spatial.R

Description

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

Usage

1

Arguments

df

the shapes_df dataframe from a gtfsr object

Value

a multilinestring simple feature geometry (sfg) for the routes

Examples

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

gtsf documentation built on July 6, 2018, 1:03 a.m.