現在、
Routes Preferred API は一部のお客様のみご利用いただけます。詳しくは、
営業担当者までお問い合わせください。
ComputeRoutesResponse
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ComputeRoutes はレスポンス メッセージを返します。
| JSON 表現 |
{
"routes": [
{
object (Route)
}
],
"fallbackInfo": {
object (FallbackInfo)
}
} |
| フィールド |
routes[] |
object (Route)
compute_alternatives_routes を指定すると、計算されたルートの配列(最大 3 つ)が含まれ、指定しない場合、1 つのルートのみ含まれます。この配列に複数のエントリが含まれている場合は、最初のエントリが最も推奨されるルートになります。配列が空の場合は、ルートが見つからなかったことを意味します。
|
fallbackInfo |
object (FallbackInfo)
サーバーがすべての入力設定を使用してルートの結果を計算できない場合、別の計算方法を使用するようにフォールバックすることがあります。フォールバック モードが使用されている場合、このフィールドにはフォールバック レスポンスに関する詳細情報が含まれます。それ以外の場合、このフィールドは設定されません。
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-31 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"]],["最終更新日 2025-08-31 UTC。"],[],["The `ComputeRoutes` response includes a `routes` array, which contains computed routes. The array can hold up to three alternative routes, with the first being the most recommended. If no routes are found, the array is empty. A `fallbackInfo` object is also included in certain cases when the server uses a different computation method due to the inability to compute routes with the input preferences. Otherwise the object will be unset.\n"]]