Routes Preferred API 目前僅適用於特定客戶。如需瞭解詳情,請
聯絡銷售人員。
使用車輛停靠站限定詞
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您可以使用「Vehicle Stop-over」限定詞,指定路徑點用於上車/下車停靠站。這樣一來,系統計算的路線就不會開始或結束於不適合上車/下車的道路 (例如高速公路或隧道)。
用途範例
請考慮地面道路與隧道內道路交叉的情況。如果您指定位於兩條道路交會處的路線點 (如地圖所示),則產生的路線會從/至地面道路或隧道開始/結束。這會造成問題,因為您無法在隧道中停車接送乘客。
如果您想使用目的地點來進行上車或下車,可以設定 vehicleStopover
欄位,確保產生的路線會在允許上車或下車的道路 (也就是地面道路) 上開始或結束。
範例
以下範例說明如何設定 vehicleStopover
限定詞。
{
"vehicleStopover": true,
"location": {
"latLng": {
"latitude":37.419734,
"longitude":-122.0827784
}
}
}
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-23 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2024-11-23 (世界標準時間)。"],[[["The Vehicle Stop-over qualifier ensures routes start and end at locations suitable for pickups and drop-offs, avoiding unsuitable roads like highways or tunnels."],["By setting `vehicleStopover` to true for a waypoint, the calculated route will prioritize accessible roads for pickup and drop-off points."],["This feature is particularly useful when a waypoint is located near restricted areas like tunnels, ensuring the route directs to a safe and accessible nearby road."]]],["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"]]