Enum Avoid
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
避免
表示查找路线时要避免的限制类型的枚举。
若要调用枚举,您可以调用其父类、名称和属性。例如
Maps.Avoid.TOLLS
。
属性
媒体资源 | 类型 | 说明 |
TOLLS | Enum | 避开收费站。 |
HIGHWAYS | Enum | 避开高速公路。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eMaps.Avoid\u003c/code\u003e is an enum used to specify route restrictions when requesting directions.\u003c/p\u003e\n"],["\u003cp\u003eIt includes options like \u003ccode\u003eTOLLS\u003c/code\u003e and \u003ccode\u003eHIGHWAYS\u003c/code\u003e to avoid specific road types.\u003c/p\u003e\n"],["\u003cp\u003eYou can use these options by calling the enum property through the parent class, for example, \u003ccode\u003eMaps.Avoid.TOLLS\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum Avoid\n\nAvoid\n\nAn enum representing the types of restrictions to avoid when finding directions.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nMaps.Avoid.TOLLS`. \n\n### Properties\n\n| Property | Type | Description |\n|------------|--------|-----------------|\n| `TOLLS` | `Enum` | Avoid tolls. |\n| `HIGHWAYS` | `Enum` | Avoid highways. |"]]