Calculate matrix of pair-wise travel times between points using a single mode of transport.
Source:R/times-single-mode.R
m4ra_times_single_mode.Rd
Calculate matrix of pair-wise travel times between points using a single mode of transport.
Arguments
- graph
A
dodgr
network returned from the weight_streetnet function using a network obtained with the osmdataosmdata_sc
function.- from
Vector or matrix of points from which route distances are to be calculated (see Notes)
- to
Vector or matrix of points to which route distances are to be calculated (see Notes)
- path
If specified, save individual travel time vectors for each 'from' point at that local directory.
from
andto
values can be either two-column matrices or equivalent of longitude and latitude coordinates, or else single columns precisely matching node numbers or names given ingraph$from
orgraph$to
. Ifto
isNULL
, pairwise distances are calculated between all points specified infrom
. If bothfrom
andto
areNULL
, pairwise distances are calculated between all nodes ingraph
.
See also
Other main:
m4ra_dists_n_pts()
,
m4ra_gtfs_traveltimes()
,
m4ra_times_multi_mode()
Examples
net <- dodgr::weight_streetnet (m4ra_hampi, wt_profile = "foot")
#> Loading required namespace: geodist
#> Loading required namespace: dplyr
traveltimes <- m4ra_times_single_mode (net)