ConsumableTrafficPolylineLog

  • Traffic density is represented along a vehicle's path using ConsumableTrafficPolylineLog.

  • SpeedReadingIntervalLog indicates traffic density on a segment of the path, categorized by speed.

  • Each interval is defined by a start and end index within the path's points, along with its traffic speed.

  • Speed readings within intervals are classified using the Speed enum.

Traffic density along a vehicle's path.

JSON representation
{
  "speedReadingInterval": [
    {
      object (SpeedReadingIntervalLog)
    }
  ]
}
Fields
speedReadingInterval[]

object (SpeedReadingIntervalLog)

Traffic speed along the path from the previous waypoint to the current waypoint.

SpeedReadingIntervalLog

Traffic density indicator on a contiguous segment of a path. Given a path with points P_0, P_1, ... , P_N (zero-based index), the SpeedReadingIntervalLog defines an interval and describes its traffic using the following categories.

JSON representation
{
  "startPolylinePointIndex": integer,
  "endPolylinePointIndex": integer,
  "speed": enum (Speed)
}
Fields
startPolylinePointIndex

integer

The starting index of this interval in the path. In JSON, when the index is 0, the field will appear to be unpopulated.

endPolylinePointIndex

integer

The ending index of this interval in the path. In JSON, when the index is 0, the field will appear to be unpopulated.

speed

enum (Speed)

Traffic speed in this interval.