Cap the corridor by connecting the edge end points
Arguments
- edges
 A simple feature geometry representing the corridor edges
- method
 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
- network
 A spatial network object, only required if
method = 'shortest-path'
Value
An sf::sfc_POLYGON object representing the corridor