Learn R Programming

osmplotr (version 0.2.0)

extract_highway: extract_highway

Description

Extracts an OpenStreetMap highway by name, within the given bounding box.

Usage

extract_highway(name = "", bbox)

Arguments

name
Name of highway. Lines components are return for *any* OSM way with a partially-matched. Both wildcards and whitespace should be represented by '.'.
bbox
the bounding box for the map. A 2-by-2 matrix of 4 elements with columns of min and max values, and rows of x and y values.

Value

  • SpatialLinesDataFrame containing the highway

    SpatialLinesDataFrame containing the highway