View source: R/get_osm_surround.R
get_osm_surround | R Documentation |
ra.osmsurround.org
.Function to get points, lines, or polygons from OpenStreetMap using
ra.osmsurround.org
.
get_osm_surround(id, type = "data", progress = "none")
id |
A vector of OpenStreetMap IDs. |
type |
Type of data to return. Can be one of |
progress |
Type of progress bar to display. |
Spatial data or data frame.
Stuart K. Grange
## Not run:
# Get a walking route in York as spatial lines
sp_walking_route <- get_osm_surround(1069837, type = "lines")
# Get some polygons for New York
sp_new_york <- get_osm_surround(c(369519, 369518, 3954665), "polygons")
# Plot
leaflet_plot(sp_new_york)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.