| ox_as_sfnetwork | R Documentation |
sfnetworkReturns the graph as a sfnetworks::sfnetwork() object, ready for the
sfnetworks/tidygraph spatial-network workflow.
ox_as_sfnetwork(g, directed = TRUE)
g |
An osm_graph. |
directed |
Build a directed network. Default |
An sfnetwork.
g <- example_osm_graph()
ox_as_sfnetwork(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.