Search code examples
jsongoogle-mapsexportgeojsonpolyline

Export polyline from google maps as JSON or GeoJSON


Is there a way to save/export a poly-line from google maps in some file format (eg. JSON), without using any JS.

Google map with polyline

I am thinking, if a client would set up a private google map with poly-lines if she could export the paths from there in some format? The path files would then get imported into a CMS and displayed on a custom map on the front-end.


Solution

  • There is a way to export as KML, which can be converted to JSON.

    enter image description here