Tailoring the directions to your specific needs
by leveraging the avoidHighwayTypes and excludeHighwayTypes parameters.
This is a continuation of the Directions Service article
miDirectionsServiceInstance.getRoute({
origin: { lat: 38.897389429704695, lng: -77.03740973527613, floor: 0 },
destination: { lat: 38.897579747054046, lng: -77.03658652944773, floor: 1 },
avoidHighwayTypes: ['stairs', 'escalator']
});miDirectionsServiceInstance.getRoute({
origin: { lat: 38.897389429704695, lng: -77.03740973527613, floor: 0 },
destination: { lat: 38.897579747054046, lng: -77.03658652944773, floor: 1 },
excludeHighwayTypes: ['stairs', 'escalator']
});The avoidHighwayTypes and excludeHighwayTypes parameters take priority over avoidStairs
avoidHighwayTypes and excludeHighwayTypes parameters take priority over avoidStairsUnrestricted routes
Last updated
Was this helpful?