Description Usage Arguments Value Examples
Wrapper function for osm_to_sf that creates a unique file name from the passed parameters, downloads the requested data if necessary and returns the resulting sf object.
1 2 | load_osm_value_groups(bbox, crs, geom_type, keys, values, group,
clip_by_outline, timeout = 25)
|
bbox |
|
crs |
output coordinate reference system. |
geom_type |
OSM geometry type. |
keys |
vector of OSM keys to download. |
values |
vector of OSM values to download. |
group |
group name for the downloaded data. |
clip_by_outline |
(optional) city name based on which the outline should be cut. |
timeout |
(optional) overpass timeout time in seconds. |
sf
object of downloaded data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
# London
bb <- c (-0.90, 51.30, 0.0, 51.40)
crs <- 32630
geom_type <- "osm_points"
key <- "amenity"
values <- c ("atm", "bank")
group_name <- "finance"
clip_by <- "London"
finance_london <- load_osm_value_groups (bb, crs, geom_type, key, values,
group_name, clip_by)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.