ルートのデモ
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ルートのデモでは、出発地と目的地を緯度と経度の座標ペアまたはプレイス ID として指定できます。緯度と経度の座標をコピーするには、地図上で場所を見つけてクリックし、その場所をフォームに貼り付けます。
[ルートを取得] を選択すると、デモで computeRoutes メソッドからのレスポンスが地図上のルートとして表示されます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-28 UTC。
[null,null,["最終更新日 2025-08-28 UTC。"],[],[],null,["**European Economic Area (EEA) developers** If your billing address is in the European Economic Area, effective on 8 July 2025, the [Google Maps Platform EEA Terms of Service](https://cloud.google.com/terms/maps-platform/eea) will apply to your use of the Services. Functionality varies by region. [Learn more](/maps/comms/eea/faq).\n\nThe Route demo lets you specify an origin and destination as a\nlatitude/longitude coordinates pair or as a place ID. To copy the latitude/longitude\ncoordinates, find and click a location on the map, and then paste the location into the\nform.\n\nAfter you select **Get route** , the demo displays the response from the\n[computeRoutes](/maps/documentation/javascript/reference/route#Route.computeRoutes)\nmethod as a route on the map."]]