Reputation: 340
In my app I have to draw route between user location and destination location in MKMapView
with help of MKAnnotation
and MKOverlay
classes. I had gone through the KMLViewer
sample code from Apple in there they mentioned to create KML file outside the programming steps, but I need KML file generation inside iPhone app programming.
Is it possible? And I need help on doing that..
Steps to get KML file manually
The process to obtain a KML is as follows:
&output=kml
to the end of the URL and press the enter key.but I need this to be done programmatically...
Upvotes: 2
Views: 3166
Reputation: 53551
KML is just XML and there are various methods for generating XML files in Cocoa, e.g. using KissXML.
The KML format is documented here: http://code.google.com/apis/kml/documentation/kmlreference.html.
Upvotes: 3