The polyline decoder lets you see what an encoded polyline looks like on a dynamic map. Common use cases are evaluating route quality and debugging routing issues.
Polyline decoder utility
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,["# Polyline decoder utility\n\nThe polyline decoder lets you see what an encoded polyline looks like on a dynamic map. Common use cases are evaluating route quality and debugging routing issues. \n\n### Encoded polyline\n\nEnter a polyline that is encoded using the [polyline encoding algorithm](http://developers.google.com/maps/documentation/utilities/polylinealgorithm). You can get the encoded polyline from the [Routes API](http://developers.google.com/maps/documentation/routes). To get the encoded polyline from the Routes API, you need to set the [polylineEncoding](http://developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#polylineencoding) parameter to `ENCODED_POLYLINE`.\n\nThe special characters in the encoded polylines returned in JSON responses of the Routes API are escaped. You do not need to escape them or unescape them before using this tool. \nDecode\n\n### GeoJSON Linestring\n\nEnter a polyline that uses the [GeoJSON LineString format](https://datatracker.ietf.org/doc/html/rfc7946#section-3.1.4). You can get the encoded polyline from the [Routes API](http://developers.google.com/maps/documentation/routes). To get the encoded polyline from the Routes API, you need to set the [polylineEncoding](http://developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#polylineencoding) parameter to `GEO_JSON_LINESTRING`. \nDisplay"]]