Compute Pedestrian Isochrone Polygons and Reachable Subgraphs
Source:R/isochrone.R
walk_isochrone.RdGenerates spatial polygon isochrones (concave hulls or buffered envelopes) and extracts the exact reachable street network from an origin location for specified walking time budgets (e.g. 5, 10, 15 minutes).
Arguments
- network
A
walk_networkobject produced bywalk_build_network().- origin
Origin location: an integer node ID, coordinate vector
c(x, y), or ansfPOINT.- time_min
Numeric vector of walking time thresholds in minutes (e.g.
c(5, 10, 15)or10.0).- method
Polygon generation technique:
"concave"for concave hull envelopes or"buffer"for street network buffering.- buffer_m
Buffer width in meters applied along reachable edges when synthesizing pedestrian walkable corridors (default 25.0 m).
- concave_ratio
Ratio parameter passed to
sf::st_concave_hull()(0 to 1, default 0.3).- rings
Logical. If
TRUE(default), multi-threshold polygons are transformed into mutually disjoint, non-overlapping concentric rings (e.g. 0-5 min, 5-10 min, 10-15 min) via topological differences, avoiding polygon occlusion. Cumulative envelopes are still preserved in thecumulative_polygonselement.
Value
A walk_isochrone S3 object containing:
- polygons
sfpolygons representing the isochrones (rings or cumulative).- cumulative_polygons
sfpolygons with full cumulative envelopes.- edges
sflines of all reached street segments with travel time.- origin
sfpoint of the resolved origin node.- time_min
The evaluated time thresholds.
- rings
Logical indicating whether disjoint rings were generated.
- network
The input
walk_network.
Examples
data(streets_cusco)
net <- walk_build_network(streets_cusco, verbose = FALSE)
orig <- sf::st_coordinates(net$nodes[net$nodes$is_giant, ])[1, 1:2]
iso <- walk_isochrone(net, origin = orig, time_min = c(5, 10), rings = TRUE)
print(iso)
#>
#> ── Walkability Isochrones ──────────────────────────────────────────────────────
#> ✔ Origin Node: 0
#> ✔ Enveloping Method: concave
#> ✔ Topology Type: Non-overlapping concentric rings (Disjoint)
#> ✔ Cutoffs Evaluated: 5 min, 10 min
#> • [0 - 5 min] Reachable length: 3.04 km | Area: 0.31 km² | Edges: 53
#> • [5 - 10 min] Reachable length: 10.36 km | Area: 0.56 km² | Edges: 123