| example_osm_graph | R Documentation |
osm_graph for examples and testsBuilds a tiny n x n regular street grid as an osm_graph, with no
network access. Edges are bidirectional and weighted by their planar length.
Useful for examples, tests and learning the API offline.
example_osm_graph(n = 4, spacing = 100)
n |
Grid size; the network has |
spacing |
Distance between adjacent nodes, in CRS units. Default |
An osm_graph in an arbitrary projected CRS.
g <- example_osm_graph()
g
ox_basic_stats(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.