science This product or feature is in the pre-GA Experimental launch stage (pre-GA). Pre-GA products and features might have limited support, and changes to pre-GA products and features might not be compatible with other pre-GA versions. Pre-GA Offerings are covered by the Google Maps Platform Service Specific Terms. For more information, see the launch stage descriptions.
Traffic density indicator on a contiguous segment of a polyline or path. Given a path with points P_0, P_1, ... , P_N (zero-based index), the SpeedReadingInterval defines an interval and describes its traffic using the following categories.
JSON representation
{"startPolylinePointIndex": integer,"endPolylinePointIndex": integer,// Union field speed_type can be only one of the following:"speed": enum (Speed)// End of list of possible types for union field speed_type.}
Fields
startPolylinePointIndex
integer
The starting index of this interval in the polyline.
endPolylinePointIndex
integer
The ending index of this interval in the polyline.