london_streets: Streets of london downloaded from OSM

london_streetsR Documentation

Streets of london downloaded from OSM

Description

Data used in the "Bridges to GIS" chapter in Geocomputation with R. See http://geocompr.robinlovelace.net/gis.html for details.

Usage

london_streets

Format

An sf-object with one attribute (osm_id) and one geometry column.

Source

OpenStreetMap (see https://www.openstreetmap.org/).

Examples

## Not run: 
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)

## End(Not run)

Nowosad/spDataLarge documentation built on Oct. 13, 2023, 11:45 p.m.