Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 30 lines (23 sloc) 0.858 kb
a268a17 @elbryan Initial commit
authored
1 //
2 // FFMapRoute.h
3 //
4 // Created by Fabiano Francesconi on 19/07/10.
5 // Copyright 2010 Fabiano Francesconi. All rights reserved.
6 //
7
8 #import <Foundation/Foundation.h>
9 #import <MapKit/MapKit.h>
10
11 @interface FFMapRoute : NSObject {
f674df5 @elbryan Implemented the algorithm
authored
12 NSMutableArray *points;
a268a17 @elbryan Initial commit
authored
13 NSUInteger level;
14 MKPolyline *line;
15 }
16
17 @property (nonatomic, retain) MKPolyline *line;
f674df5 @elbryan Implemented the algorithm
authored
18 @property (nonatomic, retain) NSMutableArray *points;
a268a17 @elbryan Initial commit
authored
19 @property (nonatomic, assign) NSUInteger level;
20
4e1319b @elbryan Code improvement
authored
21 /* Init the object with a list of points */
22 - (id) initWithPoints:(NSArray *)newPoints;
f674df5 @elbryan Implemented the algorithm
authored
23
24 /* Add coordinate to the local array by wrapping it into a NSData object */
4e1319b @elbryan Code improvement
authored
25 /* This method is useful when you created a placeholder that is an empty FFMapRoute instance. */
26 /* With this method you can drop the existing points and regenerate the new polyline */
27 - (void) updateRouteWithPoints:(NSArray *)newPoints;
f674df5 @elbryan Implemented the algorithm
authored
28
a268a17 @elbryan Initial commit
authored
29 @end
Something went wrong with that request. Please try again.