AvoidOptions

public struct AvoidOptions

Specifies avoidance criteria.

  • Creates a new AvoidOptions with given options.

    Note

    The parameter vignette is not yet supported with the Orbis map.

    Declaration

    Swift

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

    Parameters

    avoids

    A set of road types and travel modes to avoid.

    vignettes

    Specifies in which countries toll roads that require vignettes may be taken or should be avoided.

    avoidAreas

    A set of bounding boxes to avoid.

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

    Declaration

    Swift

    public var avoids: Set<AvoidType>
  • Specifies in which countries toll roads that require vignettes may be taken or should be avoided.

    Note

    This option is not yet supported with the Orbis map.

    Declaration

    Swift

    public var vignettes: Vignettes?
  • A set of bounding boxes to avoid.

    Declaration

    Swift

    public var avoidAreas: Set<BoundingBox>