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
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.
-
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) -> ()) -> AvoidOptions
Parameters
build
This closure allows for change of AvoidOptions values
Return Value
AvoidOptions with the changes set on the closure
-
The
Builder
creates a new instance ofAvoidOptions
with modified fields.Declaration
Swift
public struct Builder