The Routes API Compute Routes 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.

If you have an encoded polyline or a GeoJSON linestring, and you'd like to
view the polyline on map, go to
[Interactive polyline decoder utility](https://developers.google.com/maps/documentation/routes/polylinedecoder.md.txt).

After you select **Get route** , the demo displays the response from the
[computeRoutes](https://developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes.md.txt) method as a route on
the map.
<iframe src="https://developers.devsite.google/frame/maps/documentation/routes/demo_1de2536603dea675caa7d30ad4287703be6b97ad1976f5f8f92143baa6254993.frame" class="framebox inherit-locale " allow="clipboard-write https://developers.devsite.google" allowfullscreen is-upgraded></iframe>