Routes Preferred API 目前僅適用於特定客戶。如需瞭解詳情,請
聯絡銷售人員。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
RouteModifiers
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
| JSON 表示法 |
{
"avoidTolls": boolean,
"avoidHighways": boolean,
"avoidFerries": boolean,
"avoidIndoor": boolean,
"vehicleInfo": {
object (VehicleInfo)
},
"tollPasses": [
enum (TollPass)
]
} |
| 欄位 |
avoidTolls |
boolean
如果設為 true,系統會在合理情況下避開收費道路,並優先選擇不含收費道路的路線。僅適用於 DRIVE 和 TWO_WHEELER 交通方式。
|
avoidHighways |
boolean
如果設為 true,系統會在合理情況下避開高速公路,並優先選擇不含高速公路的路線。僅適用於 DRIVE 和 TWO_WHEELER 的移動模式。
|
avoidFerries |
boolean
如果設為 true,系統會在合理情況下避開渡輪,並優先選擇不含渡輪的路線。僅適用於 DRIVE 和 TWO_WHEELER 的交通模式。
|
avoidIndoor |
boolean
如果設為 true,系統會在合理情況下避免室內導航,優先選擇不含室內導航的路線。僅適用於 WALK 的移動模式。
|
vehicleInfo |
object (VehicleInfo)
指定車輛資訊。
|
tollPasses[] |
enum (TollPass)
封裝通行證的相關資訊。如果提供道路收費通行證,API 會嘗試傳回通行證價格。如未提供收費通行證,API 會將收費通行證視為未知,並嘗試傳回現金價格。僅適用於 DRIVE 和 TWO_WHEELER 交通方式。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-31 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-31 (世界標準時間)。"],[],["The content details optional route conditions, including avoiding tolls, highways, ferries, and indoor navigation. These avoidance options are set using boolean values. Vehicle information, such as `emissionType`, can also be specified. The user can provide information regarding toll passes. The API will try to return the pass price for routes if toll passes are provided, and cash prices if not. These options apply to different travel modes.\n"]]