isodistances | R Documentation |
Based on a road network (osm_roads
), this function calculates isodistances.
An isodistance is a polyline of equal distance from a given point. All street segments belonging to a range will be summarized.
isodistances( x, road_network, speed = 78.5, tag = NA, isochrones_seq = c(5, 10, 15, 20), cores = 1 )
x |
object of class |
road_network |
object of class |
speed |
numeric or character; either numeric value of speed (meters/minute) or string containing the column name, that indicates the speed. |
tag |
character or NA; string containing the column name, that indicates the unique tag column. |
isochrones_seq |
a numeric vector of isochrone values (in minutes). |
cores |
the number of cores to use. |
An sf MULTILINESTRING
of isodistances is returned. The sf object contains two fields:
tag (id of the original point feature) and time (range of the segments).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.