AI-generated Key Takeaways
- 
          GMTSSpeedReadingSpan is a data object representing traffic conditions for a continuous segment of a polyline. 
- 
          The speedTypeproperty indicates the traffic conditions for the segment, as defined by a related enum.
- 
          startIndexandendIndexproperties specify the inclusive starting and exclusive ending indices, respectively, of the segment within the routePath array of a GMTSTrafficData object.
- 
          The initWithSpeedType:startIndex:endIndex:method is used to initialize a GMTSSpeedReadingSpan object with the appropriate attributes, while theinitmethod is unavailable.
GMTSSpeedReadingSpan
@interface GMTSSpeedReadingSpan : GMTCImmutableDataA data object that holds the traffic conditions for a contiguous segment of a polyline.
- 
                  
                  The traffic conditions for this segment. DeclarationSwift 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.DeclarationSwift 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.DeclarationSwift var endIndex: Int32 { get }Objective-C @property (nonatomic, readonly) int32_t endIndex;
- 
                  
                  Initializes the GMTSSpeedReadingSpanobject by passing the speed interval attributes.DeclarationSwift init(speedType: GMTSSpeedType, start startIndex: Int32, end endIndex: Int32)Objective-C - (nonnull instancetype)initWithSpeedType:(GMTSSpeedType)speedType startIndex:(int32_t)startIndex endIndex:(int32_t)endIndex;ParametersspeedTypeThe 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.DeclarationObjective-C - (null_unspecified instancetype)init;