On-demand Rides and Deliveries Solution is currently available only to select partners. Contact sales to learn more.

GMTSSpeedReadingSpan Class Reference

Stay organized with collections Save and categorize content based on your preferences.
GMTSSpeedReadingSpan Class Reference

Overview

A data object that holds the traffic conditions for a contiguous segment of a polyline.

Inherits GMTSImmutableData.

Public Member Functions

(instancetype) - initWithSpeedType:startIndex:endIndex:
 Initializes the GMTSSpeedReadingSpan object by passing the speed interval attributes.

Properties

GMTSSpeedType speedType
 The traffic conditions for this segment.
int32_t startIndex
 The starting index (inclusive) for this interval of the routePath array of the owning GMTSTrafficData object.
int32_t endIndex
 The ending index for this interval of the routePath array of the owning GMTSTrafficData object.

Member Function Documentation

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

Initializes the GMTSSpeedReadingSpan object by passing the speed interval attributes.

Parameters:
speedTypeThe speed type for a segment of a polyline path.
startIndexThe start index for a segment of the routePath array of the owning GMTSTrafficData object.
endIndexThe end index for a segment of the routePath array of the owning GMTSTrafficData object.

Property Documentation

- (GMTSSpeedType) speedType [read, assign]

The traffic conditions for this segment.

- (int32_t) startIndex [read, assign]

The starting index (inclusive) for this interval of the routePath array of the owning GMTSTrafficData object.

- (int32_t) endIndex [read, assign]

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.