Data used in the "Bridges to GIS" chapter in Geocomputation with R. See http://geocompr.robinlovelace.net/gis.html for details.
london_streets
An sf-object with one attribute (osm_id
) and one geometry
column.
OpenStreetMap (see https://www.openstreetmap.org/).
if (FALSE) { # \dontrun{
library(sf)
library(osmdata)
library(spData)
library(dplyr)
data(cycle_hire)
points = cycle_hire[1:25, ]
b_box = sf::st_bbox(points)
london_streets = opq(b_box) %>%
add_osm_feature(key = "highway") %>%
osmdata_sf() %>%
`[[`("osm_lines")
london_streets = dplyr::select(london_streets, 1)
} # }