View source: R/extendr-wrappers.R
| rust_isochrone_subgraph | R Documentation |
Extract reachable edges and nodes within cutoff time from an origin node.
rust_isochrone_subgraph(n_nodes, head_num, to, wt, wl, src_node, cutoff)
n_nodes |
Total number of nodes. |
head_num |
CSR head array. |
to |
CSR destination array. |
wt |
CSR travel time array (seconds). |
wl |
CSR length array (meters). |
src_node |
Origin node (0-indexed). |
cutoff |
Travel time cutoff in seconds. |
A named list with reached_nodes and their node_times, plus edge_from, edge_to, edge_fraction, edge_length, and edge_reached_length describing reachable portions of street edges. Node IDs are zero based, times are seconds, and lengths are meters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.