| ox_as_dodgr | R Documentation |
dodgr graphReturns a data.frame in the column layout expected by the dodgr routing
package (from_id, from_lon, from_lat, to_id, to_lon, to_lat,
d), suitable for dodgr::dodgr_dists() and friends.
ox_as_dodgr(g, weight = "length")
g |
An osm_graph. |
weight |
Edge column used as the distance/weight |
A data.frame dodgr graph.
g <- example_osm_graph()
head(ox_as_dodgr(g))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.