View source: R/street_network_to_sf.R
street_network_to_sf | R Documentation |
Extracts the OpenStreetMap network in sf
format from a routable transport
network built with build_network()
).
street_network_to_sf(r5r_network, r5r_core = deprecated())
r5r_network |
A routable transport network created with |
r5r_core |
The |
A list with two components of a street network in sf format: vertices (POINT) and edges (LINESTRING).
Other network functions:
find_snap()
,
transit_network_to_sf()
library(r5r)
# build transport network
path <- system.file("extdata/poa", package = "r5r")
r5r_network <- build_network(path)
# extract street network from r5r_network
street_net <- street_network_to_sf(r5r_network)
stop_r5(r5r_network)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.