forked from samanderson/Route-Ranker
/
Route.h
46 lines (34 loc) · 1.04 KB
/
Route.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// Route.h
// RouteRanker
//
// Created by Chuck Anderson on 4/11/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
#import "RouteAnnotation.h"
@interface Route : NSObject <MKOverlay>
{
MKMapPoint *points;
NSMutableArray *timeArray;
NSUInteger numPoints;
NSUInteger pointSpace;
NSString *name;
MKMapRect boundingMapRect;
pthread_rwlock_t rwLock;
}
-(id) initWithStartPoint: (CLLocation *) loc;
-(MKMapRect) addPoint: (CLLocation *) loc;
-(double) getTotalDistanceTraveled;
-(void) lockForReading;
@property (readonly) MKMapPoint *points;
@property (readonly) NSMutableArray *timeArray;
@property (nonatomic, strong) NSMutableArray *annotations;
@property (copy) NSString *name;
@property (readonly) NSUInteger numPoints;
@property (nonatomic, readonly) MKMapRect boundingMapRect;
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
-(void) unlockForReading;
- (void) addAnnotation: (RouteAnnotation *) a;
@end