Converting JSON to KML

Do you know how can I convert a google walking directions JSON response to KML?

I am using this method to get driving directions from Google in JSON format:

How can I process this and export it to KML to view it on Google Earth? Is there a Java API or something else?


I think you will be able to tackle this conversion as follows:

  1. You can parse the JSON data from Google using the org.json.JSONObject.

  2. Then to export the KML, you may want to use JAK - Java API for KML. You can also try to do this manually by following the Google KML Documentation.

Need Your Help

WPF Binding window height to ViewModel property

c# wpf mvvm

This question has been asked once before however it did not get a satisfactory answer...

Entity Framework Code First - select based on type of child TPH class

c# entity-framework linq-to-entities table-per-hierarchy

I am currently working with Entity Framework 4 on a project that is using Table Per Hierarchy to represent one set of classes using a single table. The way this works is that this table represents ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.