This function re-categorises OSM data, adding a column to an OSM network openinfra_cycle_parking with value "yes" if a node/way within the OSM network has facilities for bicycle parking.

oi_bicycle_parking(osm_sf, remove = FALSE)

Arguments

osm_sf
  • A sf and data.frame object containing OpenStreetMap infrastructure data, obtained from the osmextract function.

remove
  • if TRUE, removes all nodes that are not suitable for bicycle parking.

Value

  • The provided osm_sf is returned with an additional column, openinfra_cycle_parking containing the value "yes" if this feature allows bicycle parking.

Details

  • Note: the input osm_sf must containt the following tags: c("amenity").

  • Note that as most (if not all) amenity tags for bicycle parking are assigned to nodes, the osm_sf must also contain nodes. (the layer "points" must be requested when using osmextract::oe_get())

Examples

data = example_data_pois
example_output = oi_bicycle_parking(data)
example_output = example_output %>% dplyr::filter(openinfra_cycle_parking == "yes")
plot(example_output["openinfra_cycle_parking"])