ConsumableTrafficPolyline

车辆路径沿线的交通密度。

JSON 表示法
{
  "speedReadingInterval": [
    {
      object (SpeedReadingInterval)
    }
  ],
  "encodedPathToWaypoint": string
}
字段
speedReadingInterval[]

object (SpeedReadingInterval)

从上一个航点到当前航点的路径沿线的车流速度。

encodedPathToWaypoint

string

司机从上一个航点到当前航点的路径。此路径中包含地标,因此客户端可以显示路径沿线的路况标记(参见 speedReadingInterval)。目前尚不支持解码。

SpeedReadingInterval

路径连续路段上的交通密度指示器。给定一条包含点 P_0、P_1、...、P_N(从零开始的索引)的路径,SpeedReadingInterval 会定义间隔,并使用以下类别描述其流量。

JSON 表示法
{
  "startPolylinePointIndex": integer,
  "endPolylinePointIndex": integer,
  "speed": enum (Speed)
}
字段
startPolylinePointIndex

integer

此间隔在路径中的起始索引。在 JSON 中,当索引为 0 时,该字段将显示为未填充字段。

endPolylinePointIndex

integer

此间隔在路径中的结束索引。在 JSON 中,当索引为 0 时,该字段将显示为未填充字段。

speed

enum (Speed)

此时间间隔内的交通速度。

速度

基于路况数据的多段线速度分类。

枚举
SPEED_UNSPECIFIED 默认值。此值未使用。
NORMAL 速度正常,未检测到行驶速度。
SLOW 检测到行驶缓慢路段,但并未形成交通拥堵。
TRAFFIC_JAM 检测到交通拥堵。