Skip to contents

Find the node in a network that is closest to a target geometry.

Usage

nearest_node(network, target)

Arguments

network

A network object

target

The target geometry

Value

A node in the network as a simple feature geometry