{"via": boolean,"vehicleStopover": boolean,"sideOfRoad": boolean,// Union field location_type can be only one of the following:"location": {object (Location)},"placeId": string,"address": string// End of list of possible types for union field location_type.}
欄位
via
boolean
將這個路線控點標示為里程碑,而不是停靠點。對於要求中的每個非透過路線控點,回應會在 legs 陣列中附加一個項目,提供行程中該路段的停靠站詳細資料。如果您想讓路線經過這個路線點而不停靠,請將這個值設為 true。透過路線控點,系統不會將項目加入 legs 陣列,但會讓路線經過路線控點。您只能在為中繼的路線控點設定此值。如果您在終端路線控點設定這個欄位,要求就會失敗。如果將 ComputeRoutesRequest.optimize_waypoint_order 設為 true,則這個欄位無法設為 true;否則要求失敗。
[[["容易理解","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-04-29 (世界標準時間)。"],[[["Waypoints define the start, end, and intermediate points of a route."],["Waypoints can be specified using geographic coordinates, Place IDs, or addresses."],["The `via` field allows a waypoint to be a pass-through point without stopping."],["`vehicleStopover` is used for pickup/drop-off optimization, while `sideOfRoad` indicates preferred stopping side."]]],["Waypoints, marking route start, end, and intermediate stops, are defined using a JSON format. Key properties include `via` (boolean) for non-stopping waypoints, `vehicleStopover` (boolean) for pickup/drop-off locations, and `sideOfRoad` (boolean) for preferred stopping side. A waypoint's `location_type` can be specified via geographic coordinates (`location`), a place ID (`placeId`), or a human-readable address (`address`). `via` cannot be true for terminal waypoints or if `optimize_waypoint_order` is true.\n"]]