AvoidType

public enum AvoidType

Defines what kind of roads should be avoided while calculating a route. The given road types can still be considered during route planning but the computed routes will only contain them if no other routes exist or if avoiding such roads would result in a large detour. Please use Route Sections to check for violations.

  • Avoids toll roads.

    Declaration

    Swift

    case tollRoads
  • Avoids motorways.

    Declaration

    Swift

    case motorways
  • Avoids ferries.

    Declaration

    Swift

    case ferries
  • Avoids unpaved roads.

    Declaration

    Swift

    case unpavedRoads
  • Avoids routes that require the use of carpool (HOV/High Occupancy Vehicle) lanes.

    Declaration

    Swift

    case carpools
  • Avoids using the same road multiple times.

    Declaration

    Swift

    case alreadyUsedRoads
  • Avoids crossing country borders.

    Declaration

    Swift

    case borderCrossings
  • Avoids tunnels.

    Declaration

    Swift

    case tunnels
  • Avoids car trains.

    Declaration

    Swift

    case carTrains
  • Avoids low-emission zones.

    Declaration

    Swift

    case lowEmissionZones