現在、
Routes Preferred API は一部のお客様のみご利用いただけます。詳しくは、
営業担当者までお問い合わせください。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
Vehicle Stop-over Qualifier を使用する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
車両の途中降車修飾子を使用すると、ウェイポイントが乗降のための停車に使用されることを指定できます。これにより、計算されたルートが、乗降に適さない道路(高速道路やトンネルなど)で開始または終了しないようにします。
使用例
一般道がトンネル内の道路を横切る状況を考えてみましょう。
2 つの道路が交差する場所(地図に表示されている)にウェイポイントを指定すると、結果のルートは一般道またはトンネルのいずれかで開始または終了します。トンネル内では停車して乗降できないため、これは問題になります。
ウェイポイントを乗降に使用する場合は、vehicleStopover フィールドを設定します。これにより、結果のルートは乗降が可能な道路(一般道)で開始または終了します。
例
次の例は、
vehicleStopover 修飾子を設定する方法を示しています。
{
"vehicleStopover": true,
"location": {
"latLng": {
"latitude":37.419734,
"longitude":-122.0827784
}
}
}
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2026-05-13 UTC。
[[["わかりやすい","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-05-13 UTC。"],[],["The `vehicleStopover` qualifier designates a waypoint for pick-up or drop-off. Setting `vehicleStopover` to `true` ensures the route begins or ends on a suitable road, avoiding unsuitable locations like highways or tunnels. Without this, a waypoint at an intersection (e.g., surface road over a tunnel) could lead to a route beginning or ending in the tunnel. The example demonstrates setting `vehicleStopover` to `true` within a waypoint's definition.\n"]]