For a given ID, find nearest node (geographical distance)
with given conditions.
find_nearest_node(object, id, condition)
An osmar object
An node ID
Condition for the element to find; see
A node ID or NA
Other finding: find_down,
data("muc", package = "osmar")
id <- find(muc, node(tags(v == "Marienplatz")))
find_nearest_node(muc, id, way(tags(k == "highway" & v == "pedestrian")))
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.