Pilih preferensi cookie Anda

Kami menggunakan cookie penting serta alat serupa yang diperlukan untuk menyediakan situs dan layanan. Kami menggunakan cookie performa untuk mengumpulkan statistik anonim sehingga kami dapat memahami cara pelanggan menggunakan situs dan melakukan perbaikan. Cookie penting tidak dapat dinonaktifkan, tetapi Anda dapat mengklik “Kustom” atau “Tolak” untuk menolak cookie performa.

Jika Anda setuju, AWS dan pihak ketiga yang disetujui juga akan menggunakan cookie untuk menyediakan fitur situs yang berguna, mengingat preferensi Anda, dan menampilkan konten yang relevan, termasuk iklan yang relevan. Untuk menerima atau menolak semua cookie yang tidak penting, klik “Terima” atau “Tolak”. Untuk membuat pilihan yang lebih detail, klik “Kustomisasi”.

RouteAvoidanceOptions - Amazon Location Service
Halaman ini belum diterjemahkan ke dalam bahasa Anda. Minta terjemahan

RouteAvoidanceOptions

Specifies options for areas to avoid when calculating the route. This is a best-effort avoidance setting, meaning the router will try to honor the avoidance preferences but may still include restricted areas if no feasible alternative route exists. If avoidance options are not followed, the response will indicate that the avoidance criteria were violated.

Contents

Areas

Areas to be avoided.

Type: Array of RouteAvoidanceArea objects

Required: No

CarShuttleTrains

Avoid car-shuttle-trains while calculating the route.

Type: Boolean

Required: No

ControlledAccessHighways

Avoid controlled access highways while calculating the route.

Type: Boolean

Required: No

DirtRoads

Avoid dirt roads while calculating the route.

Type: Boolean

Required: No

Ferries

Avoid ferries while calculating the route.

Type: Boolean

Required: No

SeasonalClosure

Avoid roads that have seasonal closure while calculating the route.

Type: Boolean

Required: No

TollRoads

Avoids roads where the specified toll transponders are the only mode of payment.

Type: Boolean

Required: No

TollTransponders

Avoids roads where the specified toll transponders are the only mode of payment.

Type: Boolean

Required: No

TruckRoadTypes

Truck road type identifiers. BK1 through BK4 apply only to Sweden. A2,A4,B2,B4,C,D,ET2,ET4 apply only to Mexico.

Note

There are currently no other supported values as of 26th April 2024.

Type: Array of strings

Array Members: Minimum number of 1 item. Maximum number of 12 items.

Length Constraints: Minimum length of 1. Maximum length of 3.

Required: No

Tunnels

Avoid tunnels while calculating the route.

Type: Boolean

Required: No

UTurns

Avoid U-turns for calculation on highways and motorways.

Type: Boolean

Required: No

ZoneCategories

Zone categories to be avoided.

Type: Array of RouteAvoidanceZoneCategory objects

Array Members: Minimum number of 0 items. Maximum number of 3 items.

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

PrivasiSyarat situsPreferensi cookie
© 2025, Amazon Web Services, Inc. atau afiliasinya. Semua hak dilindungi undang-undang.