-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataPoint.h
41 lines (32 loc) · 938 Bytes
/
DataPoint.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
//
// DataPoint.h
// Traffic Sense
//
// Created by Alex Pereira on 3/13/12.
// Copyright (c) 2012 UBC. All rights reserved.
//
#import "MapKit/Mapkit.h"
typedef enum {
Still,
Walk,
Run,
Bike,
Bus,
Drive,
ERROR
} TransportType;
@interface DataPoint : NSObject <MKAnnotation> {
CLLocationCoordinate2D coordinate;
NSString *title;
NSString *subtitle;
}
@property (nonatomic, strong) NSString *userID;
@property (nonatomic, strong) NSString *timeStamp;
@property (nonatomic) double speed;
@property (nonatomic) CLLocationCoordinate2D coordinate;
@property (nonatomic) TransportType transportMode;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *subtitle;
+ (DataPoint *)dataPointWithID:(NSString *)userID latitude:(double)lat longitude:(double)lng speed:(double)sp timeStamp:(NSString *)time transportMode:(NSString *)mode;
- (void)printToConsole;
@end