osm_roads | R Documentation |
Download road features using the OSM overpass API opq
.
Simple topology cleaning is applied using st_segments
.
osm_roads( x, dist, speed, cores = 1L, remove_features = c("motorway", "motorway_link", "trunk", "trunk_link", "raceway"), split_segments = TRUE )
x |
object of class |
dist |
numeric; maximum number of minutes of the isochrones. |
speed |
numeric or character; either numeric value of speed or string containing the column name, that indicates the walking speed. |
cores |
the number of cores to use. |
remove_features |
character vector containing feature keys that should be excluded from the analysis (e.g. motorway) |
split_segments |
logical; should topology cleaning with |
object of class sf
containing road features.
## Not run: data(Erlangen) osm_roads(Erlangen, dist = 20, speed = "Speed", cores = 4) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.