| ox_nearest_edges | R Documentation |
Returns, for each supplied coordinate, the graph edge closest in planar distance.
ox_nearest_edges(g, x, y)
g |
An osm_graph. |
x, y |
Numeric vectors of coordinates in the graph's CRS. |
An sf subset of g$edges, one row per input point.
g <- example_osm_graph()
ox_nearest_edges(g, x = 50, y = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.