powered by
Get OpenStreetMap (OSM) data
osm(country, var, path, proxy=FALSE, ...)
SpatVector
character. Three-letter ISO code or full country name
character. Currently it can be one of "places", "highways", or "railway"
character. Path for storing the downloaded data. See geodata_path
geodata_path
logical. Return a SpatVectorProxy?
additional arguments passed to download.file
download.file
License: Open Data Commons Open Database License (ODbL).
See https://www.openstreetmap.org/copyright
aruba <- osm(country="Aruba", "places", path=tempdir())
Run the code above in your browser using DataLab