All the road and route features that route calculation can avoid.
Use it to derive the Avoidable type or to validate user input against the supported
avoidance options.
Remarks
This readonly tuple is the source of truth for valid avoidance types. The Avoidable
type derives from it, for type safety.
Example
// Check if a string is a valid avoidance type constuserInput = 'tollRoads'; if (avoidableTypes.includes(userInputasAvoidable)) { // userInput is valid }
// Iterate over all available options avoidableTypes.forEach(type=> { console.log(`Available option: ${type}`); });
All the road and route features that route calculation can avoid.
Use it to derive the Avoidable type or to validate user input against the supported avoidance options.