GMTSSpeedReadingSpan
@interface GMTSSpeedReadingSpan : GMTCImmutableDataA 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
GMTSTrafficDataobject.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
GMTSTrafficDataobject. 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
GMTSSpeedReadingSpanobject 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
speedTypeThe speed type for a segment of a polyline path.
startIndexThe start index for a segment of the routePath array of the owning
GMTSTrafficDataobject.endIndexThe end index for a segment of the routePath array of the owning
GMTSTrafficDataobject. -
Unavailable
Use
-initWithSpeedType:startIndex:endIndexinstead.Declaration
Objective-C
- (null_unspecified instancetype)init;