Generates an sf
collection of line strings representing the pathway
taken over the map.
pathway_to_sf(graph, pathway)
graph | |
---|---|
pathway | A |
A list with two elements:
- pathway
An sf
data frame with LINESTRING features
representing the pathway
- terminals
An sf
data frame with two POINT features
representing the start and end nodes of the path.