Calculate isodistance or isochrone contours from specified points, and return
lists of all network vertices contained within the contours. Function is
fully vectorized to calculate accept vectors of central points and vectors
defining multiple isochrone thresholds. Provide one or more
dlim values for
isodistances, or one or more
tlim values for isochrones.
Vector or matrix of points from which isodistances or isochrones are to be calculated.
Vector of desired limits of isodistances in metres.
Vector of desired limits of isochrones in seconds
Type of heap to use in priority queue. Options include
Fibonacci Heap (default;
data.frame of vertex IDs, with columns denoting the
tlim value(s). The isochrones are given as
id values and
associated coordinates of the series of points from each
from point at the
specified isochrone times.
Isoverts are calculated by default using parallel computation with the
maximal number of available cores or threads. This number can be reduced by
specifying a value via
RcppParallel::setThreadOptions (numThreads = <desired_number>).
1 2 3 4 5 6 7 8 9 10 11 12
## Not run: # Use osmdata package to extract 'SC'-format data: library (osmdata) dat <- opq ("hampi india") %>% add_osm_feature (key = "highway") %>% osmdata_sc () graph <- weight_streetnet (dat) from <- sample (graph$.vx0, size = 100) tlim <- c (5, 10, 20, 30, 60) * 60 # times in seconds x <- dodgr_isoverts (graph, from = from, tlim) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.