Cap the corridor by connecting the edge end points
cap_corridor(edges, method = "shortest-path", network = NULL)An sf::sfc_POLYGON object representing the corridor
A simple feature geometry representing the corridor edges
The method employed for the capping:
shortest-path (default): find the network-based shortest-path
connections between the edge end points.
direct: connect the start points and the end points of the
edges via straight segments
A spatial network object, only required if
method = 'shortest-path'