nearest_node: Find the node in a network that is closest to a target geometry.
Description
Find the node in a network that is closest to a target geometry.
Usage
nearest_node(network, target)
Arguments
- network
A network object of class sfnetworks::sfnetwork
- target
An object of class sf::sf or sf::sfc