| ox_distances | R Documentation |
Minimum-weight distance from from to every node in the graph.
ox_distances(g, from, weight = "length")
g |
An osm_graph. |
from |
A node |
weight |
Edge column used as weight. Default |
A tibble with columns osmid and distance
(Inf for unreachable nodes).
g <- example_osm_graph()
ox_distances(g, ox_nearest_nodes(g, 0, 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.