CostModel

public struct CostModel

Criteria that specify what paths to prefer during routing.

Lifecycle

  • Initializer.

    Declaration

    Swift

    public init
        (
            routeType: RouteType = .fast,
            considerTraffic: ConsiderTraffic? = .yes,
            avoidOptions: AvoidOptions? = nil
        )

    Parameters

    routeType

    The overall path preference.

    considerTraffic

    Specifies whether current traffic should be considered when planning the route.

    avoidOptions

    What to avoid.

Public

  • The overall path preference.

    Declaration

    Swift

    public var routeType: RouteType
  • Specifies whether current traffic should be considered when planning the route.

    Declaration

    Swift

    public var considerTraffic: ConsiderTraffic?
  • avoidOptions What to avoid.

    Declaration

    Swift

    public var avoidOptions: AvoidOptions?