find_nearest_node: Find nearest node with given conditions

Description Usage Arguments Value See Also Examples

Description

For a given ID, find nearest node (geographical distance) with given conditions.

Usage

1

Arguments

object

An osmar object

id

An node ID

condition

Condition for the element to find; see find

Value

A node ID or NA

See Also

Other finding: find_down, find

Examples

1
2
3
4
  data("muc", package = "osmar2")
  id <- find(muc, node(tags(v == "Marienplatz")))[1]

  find_nearest_node(muc, id, way(tags(k == "highway" & v == "pedestrian")))

gergness/osmar2 documentation built on May 17, 2019, 2:10 a.m.