isodistances: Calculate isodistances

View source: R/isodistances.R

isodistancesR Documentation

Calculate isodistances

Description

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.

Usage

isodistances(
  x,
  road_network,
  speed = 78.5,
  tag = NA,
  isochrones_seq = c(5, 10, 15, 20),
  cores = 1
)

Arguments

x

object of class sf of the origin point(s). Must contain one or more POINT features.

road_network

object of class sf containing road features, derived from the osm_roads function.

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.

Value

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).


STBrinkmann/DRIGLUCoSE documentation built on Oct. 14, 2022, 11:26 a.m.