AvoidOptions
public struct AvoidOptions
Specifies avoidance criteria.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Declaration
Parameters
avoidsA set of road types and travel modes to avoid.
vignetteEither .avoidVignette or .allowVignette to specify in which countries toll roads that require vignettes may be taken.
avoidAreasA set of bounding boxes to avoid.
-
A set of road types and travel modes to avoid.
Declaration
Swift
public let avoids: Set<AvoidType>? -
Either .avoidVignette or .allowVignette to specify in which countries toll roads that require vignettes may be taken.
Declaration
Swift
public let vignette: Vignette? -
A set of bounding boxes to avoid.
Declaration
Swift
public let avoidAreas: Set<BoundingBox>?
-
Copies the current AvoidOptions with changes specified in build closure
Declaration
Swift
public func copy(build: (inout Builder) -> ()) -> AvoidOptionsParameters
buildThis closure allows for change of AvoidOptions values
Return Value
AvoidOptions with the changes set on the closure
-
The
Buildercreates a new instance ofAvoidOptionswith modified fields.Declaration
Swift
public struct Builder
AvoidOptions Structure Reference