Enum Avoid
Avoid
An enum representing the types of restrictions to avoid when finding directions.
To call an enum, you call its parent class, name, and property. For example,
Maps.Avoid.TOLLS
.
Properties
Property | Type | Description |
TOLLS | Enum | Avoid tolls. |
HIGHWAYS | Enum | Avoid highways. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["`Maps.Avoid` is an enum used to specify route restrictions when requesting directions."],["It includes options like `TOLLS` and `HIGHWAYS` to avoid specific road types."],["You can use these options by calling the enum property through the parent class, for example, `Maps.Avoid.TOLLS`."]]],[]]