Make Routes into Simple Features Lines

get_route_geometry(gtfs_obj, route_ids = NULL, service_ids = NULL)

Arguments

gtfs_obj

tidytransit gtfs object

route_ids

select routes to convert to simple features

service_ids

select service_ids to convert to simple features

Value

an sf dataframe for gtfs routes with a multilinestring column

Examples

data(gtfs_obj) routes_sf <- get_route_geometry(gtfs_obj) plot(routes_sf[1,])