Description Usage Arguments Value Note
Calculate travel times on a street network
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | streetnet_traveltimes(x, od_pairs, ...)
## S3 method for class 'sfnetwork'
streetnet_traveltimes(
x,
od_pairs,
time_column = "time",
weight_column = "weight",
...
)
## S3 method for class 'dodgr_streetnet'
streetnet_traveltimes(x, od_pairs, ...)
## S3 method for class 'dodgr_streetnet_sc'
streetnet_traveltimes(x, od_pairs, ...)
|
x |
The street network as an object of class
|
od_pairs |
A |
... |
Ignored. |
time_column |
Name of the column in the edges table of the street network that contains the travel time values for each edge. |
weight_column |
Name of the column in the edges table of the street network that contains the weight of each edge. These value are used to find the shortest path (i.e. the path with minimum weight) between an origin and a destination. |
An integer vector of travel times in seconds for each of the given OD pairs.
Coordinates should be expressed in coordinate reference system EPSG:4326. The function assumes this to be true, and does not check for it.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.