GMTSSpeedReadingSpan 类参考

GMTSSpeedReadingSpan 类参考

概览

用于存储多段线一个连续路段的路况的数据对象。

继承 GMTCImmutableData

公共成员函数

(instancetype)- initWithSpeedType:startIndex:endIndex:initWithSpeedType:startIndex:endIndex:
 通过传递速度间隔属性初始化 GMTSSpeedReadingSpan 对象。

属性

GMTSSpeedTypespeedType
 此路段的路况。
int32_tstartIndex
 所属 GMTSTrafficData 对象的 routePath 数组的此区间的起始索引(含此间隔)。
int32_tendIndex
 所属 GMTSTrafficData 对象的 routePath 数组的此区间的结束索引。

成员函数文档

- (instancetype) initWithSpeedType: (GMTSSpeedType) speedType
startIndex: (int32_t) startIndex
endIndex: (int32_t) endIndex

通过传递速度间隔属性初始化 GMTSSpeedReadingSpan 对象。

参数:
speedType多段线路径的路段的速度类型。
startIndex所属 GMTSTrafficData 对象的 routePath 数组中某个路段的起始索引。
endIndex所属 GMTSTrafficData 对象的 routePath 数组中某个路段的结束索引。

属性说明

- (GMTSSpeedType) speedType [read, assign]

此路段的路况。

- (int32_t) startIndex [read, assign]

所属 GMTSTrafficData 对象的 routePath 数组的此区间的起始索引(含此间隔)。

- (int32_t) endIndex [read, assign]

所属 GMTSTrafficData 对象的 routePath 数组的此区间的结束索引。

索引不包含在内;区间中包含折线上前一个索引和此索引之间的隐含点,但不包含索引指定的点。