osm: OpenStreetMap data

View source: R/osm.R

osmR Documentation

OpenStreetMap data

Description

Get OpenStreetMap (OSM) data

Usage

osm(country, var, path, proxy=FALSE, ...)

Arguments

country

character. Three-letter ISO code or full country name

var

character. Currently it can be one of "places", "highways", or "railway"

path

character. Path for storing the downloaded data. See geodata_path

proxy

logical. Return a SpatVectorProxy?

...

additional arguments passed to download.file

Details

License: Open Data Commons Open Database License (ODbL).

See https://www.openstreetmap.org/copyright

Value

SpatVector

Examples

aruba <- osm(country="Aruba", "places", path=tempdir())

rspatial/geodata documentation built on July 26, 2024, 8:43 a.m.