R: Extract all 'osm_points' from an osmdata object

osm_points {osmdata} | R Documentation

## Extract all `osm_points` from an osmdata object

### Description

Extract all `osm_points` from an osmdata object

### Usage

    osm_points(dat, id)

### Arguments

`dat` | An object of class osmdata
`id` | OSM identification of one or more objects for which points are to be extracted

### Value

An sf Simple Features Collection of points

### Examples

    ## 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
    waterfall <- pts [which (pts$waterway == "waterfall"),] # the waterfall point

    ## End(Not run)

[Package osmdata version 0.1.5 Index]