{"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 に設定することはできません。そうでない場合、リクエストは失敗します。
vehicleStopover
boolean
車両の停車地点で、乗車または降車が目的のウェイポイントであることを示します。この値を設定すると、乗車や降車に適さない道路上の via 以外のウェイポイントは計算されたルートに含まれません。このオプションは、移動手段が DRIVE と TWO_WHEELER で、locationType が Location の場合にのみ機能します。
[[["わかりやすい","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 UTC。"],[[["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"]]