Description Usage Arguments Value Examples
Download OSM data with specified parameters and return sf object.
1 | osm_to_sf(bbox, crs, geom_type, key, value, timeout = 25)
|
bbox |
|
crs |
output coordinate reference system. |
geom_type |
OSM geometry type. |
key |
OSM key to download. |
value |
OSM value to download. |
timeout |
(optional) overpass timeout time in seconds. |
sf
object of downloaded data.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# London
bb <- c (-0.90, 51.30, 0.0, 51.40)
crs <- 32630
geom_type <- "osm_points"
key <- "highway"
value <- "bus_stop"
bus_stops <- osm_to_sf (bb, crs, geom_type, key, value)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.