Get KML data in Google Map in JSON format

Is there a way to get a KML file attached to this Google Map in JSON format instead of XML ?:

I am currently writing an application that should download this KML data. I would prefer it to be in JSON format. Is there any way to get it in this format?

+5
source share
2 answers

Since KML is simply an aroma of XML, you can use any XML to JSON converter, of which there are many.

Here, which has been around for several years: http://www.thomasfrank.se/xml_to_json.html

+5
source

KML JSON, ,

https://github.com/mapbox/togeojson#using-it-as-a-console-utility

nodejs, - cli

togeojson file.kml > file.geojson

json

,

+1

All Articles