Learn R Programming

osmplotr (version 0.1-2)

extract_highway: extract_highway

Description

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

Usage

extract_highway(name = "", bbox = NULL)

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 within which to look for highways. Must be a vector of 4 elements (xmin, ymin, xmax, ymax).

Value

  • SpatialLinesDataFrame containing the highway

    SpatialLinesDataFrame containing the highway