| find_down {osmar} | R Documentation |
For a given ID these functions return all IDs of related elements.
find_down(object, ids) find_up(object, ids)
object |
An |
ids |
A vector of IDs tagged whether they are
|
find_down finds all elements downwards the
hierarchy:
| node | -> | node |
| way | -> | way + node |
| relation | -> | relation + way + node |
find_up finds all elements upwards the hierarchy:
| node | -> | node + way + relation |
| way | -> | way + relation |
| relation | -> | relation |
A list with the three elements node_ids,
way_ids, relation_ids
Other finding: find,
find_nearest_node
data("muc", package = "osmar")
o1 <- find(muc, way(tags(k == "highway" & v == "pedestrian")))
find_down(muc, way(o1))
find_up(muc, way(o1))