Skip to content

krystofcelba/iOS-GPX-Parser

Repository files navigation

iOS GPX Parser

Copyright © 2012 Krystof Celba [email protected]

Examples

Example use:

GPXParser *gpxParser = [[GPXParser alloc] initWithGPXFile:@"AirSpace.gpx"];
NSArray *airSpace = [gpxParser getTracks];
[mapView addOverlays:airSpace];

And in - (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id <MKOverlay>)overlay :

- (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id <MKOverlay>)overlay 
{
	MKPolylineView *polylineView = [[MKPolylineView alloc] initWithPolyline:overlay];
	polylineView.strokeColor = ((GPXTrackPolyLine *)overlay).color;
	polylineView.lineWidth = 1.5;
	return polylineView;
}

About

An iOS GPX parse. It uses tbxml.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published