Skip to contents

Extract Road Network data from OSM

Usage

extract_roads(aoi, radius = NULL, clip = FALSE)

Arguments

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

Examples

if (FALSE) {

 library(gisr)

 adm_zmb <- get_admin1(countries = "Zambia") %>%
   dplyr::select(name) %>%
   dplyr::filter(name == 'Lusaka')

 adm_zmb %>%
   extract_roads() %>%
   gview()
}