{"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,否則將導致要求失敗。