Skip to Content
MapQuest SDK
API Reference

AvoidFeature

const preferences = { avoids: [AvoidFeature.TOLL_ROAD, AvoidFeature.FERRY] }

Pass one or more values in itinerary.preferences.avoids. A route can still include a feature if there is no suitable alternative.

Values

ValueDescription
AvoidFeature.TOLL_ROADRoads that charge a toll.
AvoidFeature.LIMITED_ACCESSHighways with restricted entry and exit, such as freeways.
AvoidFeature.FERRYCrossings that require taking a ferry.
AvoidFeature.TUNNELRoad segments that pass through tunnels.
AvoidFeature.DIRT_ROADRoads classified as dirt roads.
AvoidFeature.SEASONAL_CLOSURERoads or crossings that close seasonally. Closure dates are estimates.
AvoidFeature.U_TURNA maneuver that reverses the direction of travel on the same road.

On this page