Routes Preferred API 目前僅適用於特定客戶。如需瞭解詳情,請
聯絡銷售人員。
ComputeRoutesResponse
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
| JSON 表示法 |
{
"routes": [
{
object (Route)
}
],
"fallbackInfo": {
object (FallbackInfo)
}
} |
| 欄位 |
routes[] |
object (Route)
指定 compute_alternatives_routes 時,包含計算路徑的陣列 (最多三個),且如未指定,則只會包含一個路線。如果這個陣列包含多個項目,第一個項目就是最建議的路徑。如果陣列空白,表示找不到路線。
|
fallbackInfo |
object (FallbackInfo)
在某些情況下,如果伺服器無法根據所有輸入偏好設定計算路徑結果,可能會改用其他計算方式。使用備用模式時,這個欄位會包含備用回應的詳細資訊。否則,系統會取消設定這個欄位。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-31 (世界標準時間)。
[null,null,["上次更新時間:2025-08-31 (世界標準時間)。"],[],["The `ComputeRoutes` response includes a `routes` array, which contains computed routes. The array can hold up to three alternative routes, with the first being the most recommended. If no routes are found, the array is empty. A `fallbackInfo` object is also included in certain cases when the server uses a different computation method due to the inability to compute routes with the input preferences. Otherwise the object will be unset.\n"]]