Search code examples
javascriptjsongoogle-mapskml

Get Google Map KML data in JSON format


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?


Solution

  • 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