Route demo
Stay organized with collections
Save and categorize content based on your preferences.
The Route demo lets you specify an origin and destination as a
latitude/longitude coordinates pair or as a place ID. To copy the latitude/longitude
coordinates, find and click a location on the map, and then paste the location into the
form.
After you select Get route, the demo displays the response from the
computeRoutes
method as a route on the map.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[],[],null,["The 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."]]