iOS KML Framework

What is KML

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

Faster and Easier

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.

Open Source

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.

iOS-KML-Framework is available through CocoaPods, to install it simply add the following line to your Podfile:

pod 'iOS-KML-Framework', :git => 'https://github.com/FLCLjp/iOS-KML-Framework.git'

Import the header file.

#import <KML/KML.h>

Parsing the KML

To parsing the KML file, simply call the parse method.

KMLRoot *root = [KMLParser parseKMLWithString:kml];

Generating the 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;

KML Viewer

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.

Download Sourcecode from GitHub

KML Viewer - NextBusinessSystem Co., Ltd.

KML Logger

This application logging your location and export the log as KML format.

Download Sourcecode from GitHub

License

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

Acknowledgements of external libraries and components used.

  • TBXML : Copyright (c) 2009 Tom Bradley

Feedback

We welcome your feedback, good or bad, as well as any suggestions you may have.
t@flcl.jp