Enum Avoid
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
หลีกเลี่ยง
Enum ที่แทนประเภทข้อจำกัดที่ต้องหลีกเลี่ยงเมื่อหาเส้นทาง
หากต้องการเรียก enum คุณจะต้องเรียกคลาส ชื่อ และพร็อพเพอร์ตี้ระดับบนสุด เช่น
Maps.Avoid.TOLLS
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | Type | คำอธิบาย |
TOLLS | Enum | เลี่ยงค่าผ่านทาง |
HIGHWAYS | Enum | เลี่ยงทางหลวง |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\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. |"]]