Creates sf of geometry type point for each source feature with the minimum distance and duration values to the nearest target feature.

create_time_distance_sf(odm_object)

Arguments

odm_object

of type list encompassing a duration and a distance matrix, the source and target locations. Created by using either calc_odm or calc_odm_multicore

Value

sf object of geometry type point

See also

calc_odm() or calc_odm_multicore() for odm_object creation and create_time_distance_n_sf to calculate the n nearest target locations

Examples

data(testdata) od_result <- testdata$od_result output_sf <- create_time_distance_sf(odm_object = od_result)
#> New names: #> * `` -> ...1 #> * `` -> ...2
#> New names: #> * `` -> ...1 #> * `` -> ...2