{"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"]],["上次更新時間:2024-11-27 (世界標準時間)。"],[[["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."]]],[]]