R/getDepotCoordinates.R

Defines functions getDepotCoordinates

Documented in getDepotCoordinates

#' Get coordinates of depots.
#'
#' @template arg_network
#' @return [\code{matrix}]
#' @export
getDepotCoordinates = function(x) {
  if (!hasDepots(x)) {
    stop("Object has no depots.")
  }
  x$depot.coordinates
}
jakobbossek/salesperson documentation built on Dec. 11, 2021, 4:54 a.m.