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/netgen documentation built on Feb. 11, 2024, 1:02 a.m.