Nothing
#' Calculate matrix of pair-wise travel times between points.
#'
#' @inherit dodgr_dists
#' @inheritParams dodgr_dists
#'
#' @family distances
#' @export
dodgr_times <- function (graph,
from = NULL,
to = NULL,
shortest = FALSE,
heap = "BHeap") {
graph <- tbl_to_df (graph)
gr_cols <- dodgr_graph_cols (graph)
if (is.na (gr_cols$time)) {
stop ("graph has no time column")
}
graph [[gr_cols$d]] <- graph [[gr_cols$time]]
if (!shortest) {
if (is.na (gr_cols$time_weighted)) {
stop (
"Graph does not contain a weighted time column from ",
"which to calculate fastest paths."
)
}
graph [[gr_cols$d_weighted]] <- graph [[gr_cols$time_weighted]]
}
dodgr_dists (graph, from, to, heap = heap)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.