find_down(object, ids)
find_up(object, ids)
osmar
objectnode
, way
, or relation
node_ids
,
way_ids
, relation_ids
find_down
finds all elements downwards the
hierarchy:
node -> node
way -> way + node
relation -> relation + way + node
node
find_up
finds all elements upwards the hierarchy:
node -> node + way + relation
way -> way + relation
relation -> relation
node
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))
Run the code above in your browser using DataLab