Create and Plot Encoded PolyLine on Map
Use the page to plot an encoded polyline on a map. You can also create your own polyline to produce an encoded polyline string of text.
Encoded PolyLine Map
Plot an encoded polyline :
Loading...












Plotted Polyline Encoded :
Options
How To Use
Plot Encoded Polyline
- Paste the encoded polyline text in to the textbox above the map
- Click Plot
- The polyline is then plotted on the map
- You are able to edit the polyline to create a new encoded output
Create an Encoded Polyline
- Click on the map to draw a polyline
- As you add more points, the textbox below the map will display the encoded polyline
- You can copy the text in the textbox below the map
Future Ideas and Features
- Add export to KML/KMZ
- Allow multiple polylines to be plotted
- Allow a parameter in the URL to load an encoded polyline when the page loads. Can be used for sharing a link easily
Version History
- 11th February 2020 : V1 : Initial Version
References
- Leaflet : https://leafletjs.com/
- Leaflet.Editable : http://leaflet.github.io/Leaflet.Editable/
- Encoded Polyline Algorithm Format : https://developers.google.com/maps/documentation/utilities/polylinealgorithm
Comments For This Page
Max, it's not possible to close the polygon if its not already closed. If the polygon was closed before it was encoded, then it will appear closed here. Export to KML has been added to the Future Ideas and Features list.
By Free Map Tools on 13th November 2020
How do you finish the polygon i.e. close the loop from last point plotted to first? Would it be possible to make the created polygon available as a .kml file?
By Max on 12th November 2020
Add your own comment below and let others know what you think:
Comments
Your Name (optional)