The KML is a standard file format that represents the data on the Map. It has been adopted in various applications and services such as Google Maps and Google Earth.
KML Reference
When you parsing the KML, you needed to using XML parser and analyzing the structure of the KML tags. The KML Framework parses the KML from a URL or Strings and create Objective-C Instances of KML structure.
The iOS KML Framework is open source project, it is absolutely free and can be used as is. Anyone can modify its codes and make's it as he like.
Download the Framework and unzip it.
Drag the framework file into the project's Frameworks group, and import the header file.
#import <KML/KML.h>
To parsing the KML file, simply call the parse method.
KMLRoot *root = [KMLParser parseKMLWithString:kml];
To generating the KML file, creating KML objects.
KMLRoot *root = [KMLRoot new]; KMLDocument *doc = [KMLDocument new]; root.feature = doc; KMLPlacemark *placemark = [KMLPlacemark new]; placemark.name = @"Simple placemark"; placemark.descriptionValue = @"Attached to the ground."; [doc addFeature:placemark]; KMLPoint *point = [KMLPoint new]; placemark.geometry = point; KMLCoordinate *coordinate = [KMLCoordinate new]; coordinate.latitude = 37.422f; coordinate.longitude = -122.082f; point.coordinate = coordinate;
This application parsed the KML passed from other applications or Safari, and displayed the placemarks to the map. This application includes the extensions of the KML Framework, and the extensions of the MapKit Framework.
This application logging your location and export the log as KML format.
The iOS KML Framework is free under the MIT license. You may use the framework for any purpose, including commercial without paying any additional license fees.
Acknowledgements of external libraries and components used.
We welcome your feedback, good or bad, as well as any suggestions you may have.
support@nextapps.info