Learn R Programming

geodata (version 0.6-2)

osm: OpenStreetMap data

Description

Get OpenStreetMap (OSM) data

Usage

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

Value

SpatVector

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

Examples

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

Run the code above in your browser using DataLab