-
Notifications
You must be signed in to change notification settings - Fork 1
/
FT2GMapsDirectionRequest.h
57 lines (44 loc) · 1.78 KB
/
FT2GMapsDirectionRequest.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
47
48
49
50
51
52
53
54
55
56
57
//
// FT2GMapDirectionRequest.h
// Mercedes Map Test
//
// Created by Baldoph Pourprix on 09/04/2013.
// Copyright (c) 2013 Fuerte Int. All rights reserved.
//
#import "FT2GMapsRequest.h"
#import <CoreLocation/CoreLocation.h>
/* Not supported
* • waypoints
* • language
*/
typedef enum {
FT2GMapDirectionModeDriving = 0,
FT2GMapDirectionModeWalking,
FT2GMapDirectionModeBicycling,
FT2GMapDirectionModePublicTransport
} FT2GMapDirectionMode;
enum {
FT2GMapDirectionAvoidTolls = 1 << 0,
FT2GMapDirectionAvoidHighway = 2 << 0,
};
typedef NSUInteger FT2GMapDirectionAvoidOptions;
typedef enum {
FT2GMapDirectionUnitDefault = 0, //take the default unit of the start location
FT2GMapDirectionUnitMetric,
FT2GMapDirectionUnitImperial
} FT2GMapDirectionUnit;
@class FT2GMapsLocation;
@interface FT2GMapsDirectionRequest : FT2GMapsRequest
- (id)initWithStart:(FT2GMapsLocation *)startLocation end:(FT2GMapsLocation *)endLocation;
+ (FT2GMapsDirectionRequest *)requestWithStart:(FT2GMapsLocation *)startLocation end:(FT2GMapsLocation *)endLocation;
+ (FT2GMapsDirectionRequest *)requestWithStartCoordinates:(CLLocationCoordinate2D)start endCoordinates:(CLLocationCoordinate2D)end;
+ (FT2GMapsDirectionRequest *)requestWithStartAddress:(NSString *)start endAddress:(NSString *)end;
@property (nonatomic) FT2GMapsLocation *startLocation;
@property (nonatomic) FT2GMapsLocation *endLocation;
@property (nonatomic) FT2GMapDirectionMode directionMode; //default to FT2GMapDirectionModeDriving
@property (nonatomic) FT2GMapDirectionAvoidOptions avoidOptions; //bitmask
@property (nonatomic) FT2GMapDirectionUnit unit;
@property (nonatomic) NSString *region; //specified as ccTLD 2-character value. Default is nil
@property (nonatomic) NSDate *departureDate;
@property (nonatomic) NSDate *arrivalDate;
@end