Routes Preferred API 目前僅適用於特定客戶。如需瞭解詳情,請
聯絡銷售人員。
Google 會運用 AI 技術將內容翻譯成你偏好的語言,但可能會出錯。
使用車輛停靠站限定詞
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您可以使用車輛停靠限定詞,指定路線控點用於停靠接送。這樣一來,系統就不會將不適合接送的路段 (例如高速公路或隧道) 設為計算路線的起點或終點。
用途範例
假設平面道路與隧道內的道路交叉。如果您指定的路線控點位於兩條道路的交會處 (如地圖所示),則產生的路線會從平面道路或隧道開始或結束。這會造成問題,因為您無法在隧道內停車接送乘客。
如要將路線控點用於接送,可以設定 vehicleStopover 欄位,確保產生的路線起點或終點位於允許接送的道路 (即平面道路)。
範例
以下範例說明如何設定 vehicleStopover 限定詞。
{
"vehicleStopover": true,
"location": {
"latLng": {
"latitude":37.419734,
"longitude":-122.0827784
}
}
}
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-11-03 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2026-11-03 (世界標準時間)。"],[],["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"]]