TTTrafficDetail
Objective-C
@interface TTTrafficDetail : TTTrafficDetailBase
Swift
class TTTrafficDetail : TTTrafficDetailBase
TTTrafficDetail
-
Gets the point representing the actual position of the incident. Only present if requested othervise kCLLocationCoordinate2DInvalid
Declaration
Objective-C
@property (nonatomic, readonly) CLLocationCoordinate2D originalPosition;Swift
var originalPosition: CLLocationCoordinate2D { get } -
Gets cause of the incident, where available, in the language requested.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull cause;Swift
var cause: String { get } -
Gets description of the incident in the language requested.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull desc;Swift
var desc: String { get } -
Gets the name of the intersection or location where the traffic due to the incident starts.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull from;Swift
var from: String { get } -
Gets the name of the intersection or location where the traffic due to the incident ends.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull to;Swift
var to: String { get } -
Gets the delay caused by the incident in seconds (except in road closures). Delay is optional if not available then returns -1
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger delay;Swift
var delay: Int { get } -
Gets the road number(s) affected by the incident.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<NSString *> *_Nonnull affectedRoadNumbers;Swift
var affectedRoadNumbers: [String] { get } -
Gets a vector representing the geometry of the incident. Not available for clusters and incidents that do not have a shape/length.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<NSValue *> *_Nonnull geometry;Swift
var geometry: [NSValue] { get }
TTTrafficDetail Class Reference