AvoidOptions

@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
constructor(avoidTypes: Set<AvoidType> = emptySet(), avoidAreas: Set<GeoBoundingBox> = emptySet(), vignettes: Vignettes? = null)

Specifies avoidance criteria.

Note: On the Orbis map, vignettes is always ignored and avoidAreas is ignored for range calculation.

Parameters

avoidTypes

A set of road types and travel modes to avoid.

vignettes

Either Vignettes.Allow or Vignettes.Avoid to specify in which countries toll roads may be taken.

avoidAreas

A set of bounding boxes to avoid.