TrafficData.SpeedReadingInterval

  • TrafficData.SpeedReadingInterval describes traffic conditions for a segment of a polyline path within TrafficData.

  • It uses startIndex and endIndex to define the segment on the polyline.

  • speedType indicates the traffic condition (e.g., slow, moderate, fast) for the segment.

  • You can create an instance using its builder or access information through methods like getEndIndex, getSpeedType, and getStartIndex.

public static abstract class TrafficData.SpeedReadingInterval extends Object

Describes the traffic conditions for a segment of the polyline path in the containing TrafficData.

Nested Class Summary

class TrafficData.SpeedReadingInterval.Builder Builder for TrafficData.SpeedReadingInterval
@interface TrafficData.SpeedReadingInterval.SpeedType Constant describing the classification of the speed on this path. 

Public Constructor Summary

Public Method Summary

static TrafficData.SpeedReadingInterval.Builder
abstract int
getEndIndex()
The ending index of this interval.
abstract int
getSpeedType()
Describes the traffic conditions for this path.
abstract int
getStartIndex()
The starting index (inclusive) of this interval.
abstract TrafficData.SpeedReadingInterval.Builder
final String

Inherited Method Summary

Public Constructors

public SpeedReadingInterval ()

Public Methods

public abstract int getEndIndex ()

The ending index of this interval. It is exclusive; the implied points on the polyline between the previous index up until this index are included in the interval, but the actual point specified by the index is not included. Associate with the polyline in the encapsulating TrafficData.

public abstract int getSpeedType ()

Describes the traffic conditions for this path.

public abstract int getStartIndex ()

The starting index (inclusive) of this interval. Associate with the polyline in the encapsulating TrafficData.

public abstract TrafficData.SpeedReadingInterval.Builder toBuilder ()

public final String toString ()