osm_points | R Documentation |
osm_points
from an osmdata objectExtract all osm_points
from an osmdata object
osm_points(dat, id)
dat |
An object of class osmdata |
id |
OSM identification of one or more objects for which points are to be extracted |
An sf Simple Features Collection of points
Other search:
osm_lines()
,
osm_multilines()
,
osm_multipolygons()
,
osm_polygons()
## Not run:
tr <- opq ("trentham australia") %>% osmdata_sf ()
coliban <- tr$osm_lines [which (tr$osm_lines$name == "Coliban River"), ]
pts <- osm_points (tr, rownames (coliban)) # all points of river
# the waterfall point:
waterfall <- pts [which (pts$waterway == "waterfall"), ]
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.