GMTSSpeedReadingSpan
@interface GMTSSpeedReadingSpan : GMTCImmutableData
A data object that holds the traffic conditions for a contiguous segment of a polyline.
-
The traffic conditions for this segment.
Declaration
Swift
var speedType: GMTSSpeedType { get }
Objective-C
@property (nonatomic, readonly) GMTSSpeedType speedType;
-
The starting index (inclusive) for this interval of the routePath array of the owning
GMTSTrafficData
object.Declaration
Swift
var startIndex: Int32 { get }
Objective-C
@property (nonatomic, readonly) int32_t startIndex;
-
The ending index for this interval of the routePath array of the owning
GMTSTrafficData
object. The index is exclusive; the implied points on the polyline between the previous index and this index are included in the interval, but the point specified by the index is not included.Declaration
Swift
var endIndex: Int32 { get }
Objective-C
@property (nonatomic, readonly) int32_t endIndex;
-
Initializes the
GMTSSpeedReadingSpan
object by passing the speed interval attributes.Declaration
Swift
init(speedType: GMTSSpeedType, start startIndex: Int32, end endIndex: Int32)
Objective-C
- (nonnull instancetype)initWithSpeedType:(GMTSSpeedType)speedType startIndex:(int32_t)startIndex endIndex:(int32_t)endIndex;
Parameters
speedType
The speed type for a segment of a polyline path.
startIndex
The start index for a segment of the routePath array of the owning
GMTSTrafficData
object.endIndex
The end index for a segment of the routePath array of the owning
GMTSTrafficData
object. -
Unavailable
Use
-initWithSpeedType:startIndex:endIndex
instead.Declaration
Objective-C
- (null_unspecified instancetype)init;