R/oi_active_cycle.R
oi_active_cycle.RdDetermines whether or not a piece of OSM infrastructure is cyclable or not
depending on whether the feature is included in the default cycling network
defined by osmextract
oi_active_cycle(osm_sf, remove=FALSE)A sf and data.frame object containing OpenStreetMap
infrastructure data, obtained from the
osmextract function.
Boolean - If TRUE, features that do not form part of a
cyclable network are removed from the osm_sf before being returned
an sf object with oi_active_cycle column added.
This function mimics the cycling filtering steps applied by the
oe_get_network
function, part of the
osmextract package.
Note: the osm_sf must contain the following tags: c("highway", "bicycle", "access", "service")
data = example_data
example_output = oi_active_cycle(data)
#plot(output["openinfra_cycle"], key.pos = 1)