AvoidOptions

fun AvoidOptions(avoidTypes: Set<AvoidType> = emptySet(), vignettes: Vignettes? = null, avoidAreas: Set<GeoBoundingBox> = emptySet())

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.