Enum Avoid
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
避免
列舉代表尋找路線時應避免的限制類型。
如要呼叫列舉,您可以呼叫其父項類別、名稱和屬性。例如
Maps.Avoid.TOLLS
。
屬性
屬性 | 類型 | 說明 |
TOLLS | Enum | 避開收費站。 |
HIGHWAYS | Enum | 避開高速公路。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]