{"via": boolean,"vehicleStopover": boolean,"sideOfRoad": boolean,// Union field location_type can be only one of the following:"location": {object (Location)},"placeId": string,"address": string,"navigationPointToken": 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"]],["最終更新日 2026-03-05 UTC。"],[],["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"]]