ComputedAs

public enum ComputedAs

Determines if the route was computed as primary with regards to the given cost model, or if it is a path alternative, meaning a distinct path depending on the previous computed routes.

  • The primary route is the best path for the given request.

    Declaration

    Swift

    case primary
  • A path alternative request leads to a set of distinct route path depending on the previously computed routes. Neither of them is optimal with regards to the cost model.

    Declaration

    Swift

    case pathAlternative