TKDirection
@interface TKDirection : NSObject
A particular direction variant carrying information about a route, its distance and duration.
-
Calculated duration of the direction.
Declaration
Objective-C
@property (readonly) NSTimeInterval duration;
Swift
var duration: TimeInterval { get }
-
Calculated distance of the direction.
Declaration
Objective-C
@property (readonly) CLLocationDistance distance;
Swift
var distance: CLLocationDistance { get }
-
Mode of the direction.
Declaration
Objective-C
@property (readonly) TKDirectionMode mode;
Swift
var mode: TKDirectionMode { get }
-
Particular steps of the direction.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSArray<TKDirectionStep *> *_Nonnull steps;
Swift
var steps: [TKDirectionStep] { get }
-
Calculated polyline.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull calculatedPolyline;
Swift
var calculatedPolyline: String { get }
-
Source attribution.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *source;
Swift
var source: String? { get }