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 |
渋滞を検出しました。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-06 UTC。
[null,null,["最終更新日 2024-11-06 UTC。"],[[["ConsumableTrafficPolyline provides traffic density information along a vehicle's path using encoded polylines and speed readings."],["SpeedReadingInterval objects represent traffic conditions on segments of the path, indicating speed levels like normal, slow, or traffic jam."],["The `speed` field within SpeedReadingInterval classifies traffic speed into categories: `SPEED_UNSPECIFIED`, `NORMAL`, `SLOW`, and `TRAFFIC_JAM`."],["`encodedPathToWaypoint` is a string representing the path with landmarks, enabling the display of traffic markers; decoding is not yet supported."]]],["The provided content describes traffic data along a vehicle's path using JSON representations. Key information includes `speedReadingInterval`, which details traffic speed between waypoints. This is represented by a list of segments, each defined by `startPolylinePointIndex`, `endPolylinePointIndex`, and `speed`. The `encodedPathToWaypoint` field indicates the path from the previous to the current waypoint. The speed within each interval is categorized as `NORMAL`, `SLOW`, or `TRAFFIC_JAM`. Fields with 0 index will be unpopulated in the JSON representation.\n"]]