Routes Preferred API 目前僅適用於特定客戶。如需瞭解詳情,請
聯絡銷售人員。
使用車輛停靠站限定詞
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
你可以使用「車輛停靠」限定符,指定中途點用於停靠接送。這樣一來,系統計算出的路線就不會從不適合接送的地點 (例如高速公路或隧道) 開始或結束。
用途範例
假設地面道路與隧道內的道路交會。如果您指定路線控點位於兩條道路的交會處 (如地圖所示),則產生的路線會從地面道路或隧道開始或結束。這會造成問題,因為你無法在隧道中停車接送乘客。
如要將途中的停靠點設為上車或下車地點,可以設定 vehicleStopover
欄位,確保產生的路線會從允許上車和下車的地點 (即平面道路) 開始或結束。
範例
以下範例說明如何設定 vehicleStopover
限定符。
{
"vehicleStopover": true,
"location": {
"latLng": {
"latitude":37.419734,
"longitude":-122.0827784
}
}
}
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-09-20 (世界標準時間)。
[null,null,["上次更新時間:2025-09-20 (世界標準時間)。"],[],["The `vehicleStopover` qualifier designates a waypoint for pick-up or drop-off. Setting `vehicleStopover` to `true` ensures the route begins or ends on a suitable road, avoiding unsuitable locations like highways or tunnels. Without this, a waypoint at an intersection (e.g., surface road over a tunnel) could lead to a route beginning or ending in the tunnel. The example demonstrates setting `vehicleStopover` to `true` within a waypoint's definition.\n"],null,[]]