| walk_compute_access | R Documentation |
Computes cumulative pedestrian accessibility from each network junction to urban facilities (e.g. schools, health centers, pharmacies, public transit stops) within a walking time budget (default 10 minutes at 4.5 km/h). Uses parallel compiled Rust to evaluate hundreds of thousands of shortest paths across CPU cores.
walk_compute_access(
network,
pois,
time_min = 10,
category_col = NULL,
weight_col = NULL,
target = c("largest_component", "all"),
n_threads = 2L,
verbose = TRUE
)
network |
A |
pois |
An |
time_min |
Walking time threshold in minutes (default 10.0 minutes). |
category_col |
Optional column name in |
weight_col |
Optional column name in |
target |
Character string: |
n_threads |
Number of CPU threads to use in parallel, from 1 to 2. The default is 2, the maximum permitted during CRAN checks. |
verbose |
Logical. If |
A walk_access S3 object containing:
nodes |
|
summary |
Summary statistics table per category. |
time_min |
The evaluated walking budget in minutes. |
pois |
The original POI points mapped to network nodes. |
network |
The input |
data(streets_cusco)
net <- walk_build_network(streets_cusco, verbose = FALSE)
sample_pois <- net$nodes[net$nodes$is_giant, ][seq(1, 100, by = 20), ]
acc <- walk_compute_access(net, pois = sample_pois, time_min = 5, verbose = FALSE)
print(acc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.