Get Google Map KML data in JSON format

Camsoft picture Camsoft · Nov 17, 2011 · Viewed 15.1k times · Source

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

I'm currently writing an app that needs to load this KML data. I would prefer that it's in JSON format. Is there a way of getting it in this format?

Answer

yalestar picture yalestar · Nov 17, 2011

Since KML is just a flavor of XML, you could use any XML to JSON converter, of which there are many.

Here's one that's been around for a few years: http://www.thomasfrank.se/xml_to_json.html