View source: R/geo_utilities.R
extract_roads | R Documentation |
Extract Road Network data from OSM
extract_roads(aoi, radius = NULL, clip = FALSE)
aoi |
Area of Interest as sf object |
radius |
Buffer redius in meters, default = 1000m |
clip |
Should the output be clipped to the AOI? Default is FALSE |
## Not run:
library(gisr)
adm_zmb <- get_admin1(countries = "Zambia") %>%
dplyr::select(name) %>%
dplyr::filter(name == 'Lusaka')
adm_zmb %>%
extract_roads() %>%
gview()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.