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
}

Try the netgen package in your browser

Any scripts or data that you put into this service are public.

netgen documentation built on Jan. 9, 2020, 1:07 a.m.