Page Summary
-
TrafficDatadescribes traffic information for a specific road segment, including path and speed readings. -
It provides methods to get the path (as a polyline) and speed reading intervals for the road segment.
-
A
Builderclass is used to create instances ofTrafficData. -
SpeedReadingIntervalobjects provide details about traffic conditions within segments of the path.
Describes the traffic data for a stretch of road.
Nested Class Summary
| class | TrafficData.Builder | Builder for
TrafficData. |
|
| class | TrafficData.SpeedReadingInterval | Describes the traffic conditions for a segment
of the polyline path in the containing
TrafficData. |
|
Public Constructor Summary
Public Method Summary
| static TrafficData.Builder |
builder()
|
| abstract List<LatLng> |
getPath()
Polyline representing the path for this stretch of data.
|
| abstract List<TrafficData.SpeedReadingInterval> | |
| abstract TrafficData.Builder | |
| final String |
toString()
|
Inherited Method Summary
Public Constructors
public TrafficData ()
Public Methods
public static TrafficData.Builder builder ()
public abstract List<LatLng> getPath ()
Polyline representing the path for this stretch of data.