Routes Preferred API 目前僅適用於特定客戶。如需瞭解詳情,請
聯絡銷售人員。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
RoutingPreference
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
| 列舉 |
ROUTING_PREFERENCE_UNSPECIFIED |
未指定轉送偏好設定。預設為 TRAFFIC_AWARE。 |
TRAFFIC_UNAWARE |
不考量即時交通狀況來計算路線。適合用於交通狀況不重要或不適用的情況。使用這個值會產生最低延遲時間。注意:RouteTravelModeDRIVE 和 TWO_WHEELER 時,會根據路網及與時間無關的平均路況來選擇路線和時間,不會考量目前路況。因此,路線可能會包含暫時封閉的道路。受到路網變動、平均路況更新以及這項服務的分散性質影響,特定要求的結果可能會隨時間而改變。此外,在時間或頻率都沒有限制的情況下,即使兩條路線幾乎相同,結果還是有可能不同。 |
TRAFFIC_AWARE |
計算將路況納入考量的路線。與 TRAFFIC_AWARE_OPTIMAL 相較,此類型會套用部分最佳化項目,大幅縮短延遲時間。 |
TRAFFIC_AWARE_OPTIMAL |
計算將路況納入考量的路徑,但不套用大多數效能最佳化設定。使用這個值會產生最高的延遲時間。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[[["容易理解","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-29 (世界標準時間)。"],[],["The provided information details routing preferences for route calculation. `TRAFFIC_UNAWARE` computes routes disregarding live traffic, prioritizing low latency based on road network and average traffic conditions. `TRAFFIC_AWARE` considers traffic but optimizes for lower latency. `TRAFFIC_AWARE_OPTIMAL` prioritizes traffic considerations without performance optimizations, resulting in higher latency. If no preference is specified (`ROUTING_PREFERENCE_UNSPECIFIED`), the system defaults to `TRAFFIC_AWARE`.\n"]]