AvoidOptions

public struct AvoidOptions

Specifies avoidance criteria.

Lifecycle

  • Initializer.

    Note

    Parameter vignette is not yet supported with the Orbis map.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public init
        (
            avoids: Set<AvoidType> = Set<AvoidType>(),
            vignette: Vignette? = nil,
            avoidAreas: Set<BoundingBox> = Set<BoundingBox>()
        )

    Parameters

    avoids

    A set of road types and travel modes to avoid.

    vignette

    Either .avoidVignette or .allowVignette to specify in which countries toll roads that require vignettes may be taken.

    avoidAreas

    A set of bounding boxes to avoid.

Public

  • A set of road types and travel modes to avoid.

    Declaration

    Swift

    public var avoids: Set<AvoidType>
  • Either .avoidVignette or .allowVignette to specify in which countries toll roads that require vignettes may be taken.

    Note

    This option is not yet supported with the Orbis map.

    Important

    This is a Public Preview API. It may be changed or removed at any time.

    Declaration

    Swift

    public var vignette: Vignette?
  • A set of bounding boxes to avoid.

    Declaration

    Swift

    public var avoidAreas: Set<BoundingBox>