The Debugger
The Debugger

Reputation: 340

Generate KML file on iPhone

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:

but I need this to be done programmatically...

Upvotes: 2

Views: 3166

Answers (1)

omz
omz

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

Related Questions