TTTrafficDetail
@interface TTTrafficDetail : TTTrafficDetailBase
TTTrafficDetail
-
Gets the point representing the actual position of the incident. Only present if requested othervise kCLLocationCoordinate2DInvalid
Declaration
Objective-C
@property (readonly, nonatomic) CLLocationCoordinate2D originalPosition;
Swift
var originalPosition: CLLocationCoordinate2D { get }
-
Gets cause of the incident, where available, in the language requested.
Declaration
Objective-C
@property (readonly, nonatomic) NSString *_Nonnull cause;
Swift
var cause: String { get }
-
Gets description of the incident in the language requested.
Declaration
Objective-C
@property (readonly, nonatomic) 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 (readonly, nonatomic) 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 (readonly, nonatomic) 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 (readonly, nonatomic) NSInteger delay;
Swift
var delay: Int { get }
-
Gets the road number(s) affected by the incident.
Declaration
Objective-C
@property (readonly, nonatomic) 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 (readonly, nonatomic) NSArray<NSValue *> *_Nonnull geometry;
Swift
var geometry: [NSValue] { get }