Enum Avoid
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Hindari
Enum yang mewakili jenis batasan yang harus dihindari saat menemukan rute.
Untuk memanggil enum, panggil class, nama, dan properti induknya. Misalnya,
Maps.Avoid.TOLLS
.
Properti
Properti | Jenis | Deskripsi |
TOLLS | Enum | Hindari jalan tol. |
HIGHWAYS | Enum | Hindari jalan raya. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 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. |"]]