-
Notifications
You must be signed in to change notification settings - Fork 0
/
TLLocation.h
45 lines (36 loc) · 1.24 KB
/
TLLocation.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
//
// TLLocation.h
// Mercatalog
//
// Created by Nathan Vander Wilt on 7/1/08.
// Copyright 2008 Calf Trail Software, LLC. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "TLCoordinate.h"
@class TLTrack;
@interface TLLocation : NSObject <NSCopying> {
@private
TLCoordinate coordinate;
TLCoordinateAccuracy horizontalAccuracy;
TLCoordinateAltitude altitude;
TLCoordinateAccuracy verticalAccuracy;
}
// Designated initializer
- (id)initWithCoordinate:(TLCoordinate)coord
horizontalAccuracy:(TLCoordinateAccuracy)hAccuracy
altitude:(TLCoordinateAltitude)alt
verticalAccuracy:(TLCoordinateAccuracy)vAccuracy;
// Helper initializers
+ (id)locationWithCoordinate:(TLCoordinate)coord
horizontalAccuracy:(TLCoordinateAccuracy)hAccuracy
altitude:(TLCoordinateAltitude)alt
verticalAccuracy:(TLCoordinateAccuracy)vAccuracy;
+ (id)locationWithCoordinate:(TLCoordinate)coord
horizontalAccuracy:(TLCoordinateAccuracy)hAccuracy;
- (id)perturbedLocation;
// Properties
@property (readonly, nonatomic) TLCoordinate coordinate;
@property (readonly, nonatomic) TLCoordinateAccuracy horizontalAccuracy;
@property (readonly, nonatomic) TLCoordinateAltitude altitude;
@property (readonly, nonatomic) TLCoordinateAccuracy verticalAccuracy;
@end