AI-generated Key Takeaways
-
TrafficData.SpeedReadingIntervaldescribes traffic conditions for a segment of a polyline path withinTrafficData. -
It uses
startIndexandendIndexto define the segment on the polyline. -
speedTypeindicates 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, andgetStartIndex.
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 |
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 |
toString()
|
Inherited Method Summary
Public Constructors
public SpeedReadingInterval ()
Public Methods
public static TrafficData.SpeedReadingInterval.Builder builder ()
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.