
Find the node in a network that is closest to a target geometry.
Source:R/network.R
nearest_node.RdFind the node in a network that is closest to a target geometry.
Arguments
- network
A network object of class
sfnetworks::sfnetwork- target
Value
A node in the network as an object of class sf::sfc_POINT