Description Usage Arguments Value Examples
Select vertices on graph that are closest to the specified coordinates.
1 | select_vertices_by_coordinates(graph, start_coords, end_coords)
|
graph |
|
start_coords |
|
end_coords |
|
list
containing the two rows of the input data.frame
that are closest to the start and end coordinates
1 2 3 4 5 6 7 8 | ## Not run:
road <- road_data_sample
start_pt <- c (11.603, 48.163)
end_pt <- c (11.608, 48.167)
pts <- select_vertices_by_coordinates (graph = road, start_coords = start_pt,
end_coords = end_pt)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.