osm | R Documentation |
Get OpenStreetMap (OSM) data
osm(country, var, path, proxy=FALSE, ...)
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 |
proxy |
logical. Return a SpatVectorProxy? |
... |
additional arguments passed to |
License: Open Data Commons Open Database License (ODbL).
See https://www.openstreetmap.org/copyright
SpatVector
aruba <- osm(country="Aruba", "places", path=tempdir())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.