osmdata_highways: Extract highways from Open Street Map data

Description Usage Arguments Value Examples

Description

Uses the osmar package to fetch OSM data and extract only highway nodes and ways.

Usage

1
osmdata_highways(box, apisource = osmar::osmsource_api())

Arguments

box

A bounding box as generated by prettymapr::searchbbox or osmar::center_bbox

apisource

An OSM api source as generated by the osmar::osmsource_* functions.

Value

An osmar object containing nodes and ways of highways.

Examples

1
2
wv <- prettymapr::searchbbox("wolfville, ns", source="google")
d2 <- osmdata_highways(wv)

paleolimbot/rfuncs documentation built on May 24, 2019, 6:13 p.m.