gh_get_spt {graphhopper} | R Documentation |
Get the shortest path tree for a given start point
Description
Get the shortest path tree for a given start point
Usage
gh_get_spt(start_point, time_limit = 600, distance_limit = -1,
columns = gh_spt_columns(), reverse_flow = FALSE, profile = "car")
Arguments
start_point |
The start point as (lat, lon) pair. |
time_limit |
The travel time limit in seconds.
Ignored if |
distance_limit |
The distance limit in meters. |
columns |
The columns to be returned. See gh_spt_columns and gh_available_spt_columns for available columns. |
reverse_flow |
Use |
profile |
The profile for which the spt should be calculated. |
Examples
if (FALSE) {
start_point <- c(52.53961, 13.36487)
columns <- gh_spt_columns(
prev_longitude = TRUE,
prev_latitude = TRUE,
prev_time = TRUE
)
points_sf <- gh_get_spt(start_point, time_limit = 180, columns = columns) %>%
gh_as_sf()
}
[Package graphhopper version 0.1.2 Index]