Routes API
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
routes.googleapis.com API を使用します。
サービス: routes.googleapis.com
サービス名 routes.googleapis.com
は、RPC クライアント スタブの作成に必要です。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003eThe \u003ccode\u003eroutes.googleapis.com\u003c/code\u003e service provides access to Google Maps Routes API for route planning and optimization.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two main RPC methods: \u003ccode\u003eComputeRouteMatrix\u003c/code\u003e and \u003ccode\u003eComputeRoutes\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eComputeRouteMatrix\u003c/code\u003e calculates routes for all combinations of origins and destinations, returning route information in a stream.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eComputeRoutes\u003c/code\u003e determines the best route and optional alternatives between specified waypoints.\u003c/p\u003e\n"]]],["The `routes.googleapis.com` service, used for creating RPC client stubs, features the `google.maps.routing.v2.Routes` service. This service includes two primary methods: `ComputeRouteMatrix`, which generates a stream of route information for multiple origin-destination pairs, and `ComputeRoutes`, which provides the primary and potentially alternate routes for a given set of waypoints. Both of them can be used to calculate routes.\n"],null,["# Routes API\n\nroutes.googleapis.com API.\n\nService: routes.googleapis.com\n------------------------------\n\nThe Service name `routes.googleapis.com` is needed to create RPC client stubs.\n\n[google.maps.routing.v2.Routes](/maps/documentation/routes/reference/rpc/google.maps.routing.v2#google.maps.routing.v2.Routes)\n------------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| [ComputeRouteMatrix](/maps/documentation/routes/reference/rpc/google.maps.routing.v2#google.maps.routing.v2.Routes.ComputeRouteMatrix) | Takes in a list of origins and destinations and returns a stream containing route information for each combination of origin and destination. |\n| [ComputeRoutes](/maps/documentation/routes/reference/rpc/google.maps.routing.v2#google.maps.routing.v2.Routes.ComputeRoutes) | Returns the primary route along with optional alternate routes, given a set of terminal and intermediate waypoints. |"]]