GMTSSpeedReadingSpan 類別參考資料

GMTSSpeedReadingSpan 類別參考資料

總覽

保留折線連續部分路況的資料物件。

沿用 GMTCImmutableData

公開成員函式

(instancetype)- 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 陣列此區間的結束索引。

索引並不包含在內;前一個索引和這個索引之間的折線上隱含點會包含在間隔內,但不包含索引指定的點。