ConsumableTrafficPolyline
Stay organized with collections
Save and categorize content based on your preferences.
Traffic density along a Vehicle's path.
JSON representation |
{
"speedReadingInterval": [
{
object (SpeedReadingInterval )
}
],
"encodedPathToWaypoint": string
} |
Fields |
speedReadingInterval[] |
object (SpeedReadingInterval )
Traffic speed along the path from the previous waypoint to the current waypoint.
|
encodedPathToWaypoint |
string
The path the driver is taking from the previous waypoint to the current waypoint. This path has landmarks in it so clients can show traffic markers along the path (see speedReadingInterval ). Decoding is not yet supported.
|
SpeedReadingInterval
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 SpeedReadingInterval 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.
|
Speed
The classification of polyline speed based on traffic data.
Enums |
SPEED_UNSPECIFIED |
Default value. This value is unused. |
NORMAL |
Normal speed, no slowdown is detected. |
SLOW |
Slowdown detected, but no traffic jam formed. |
TRAFFIC_JAM |
Traffic jam detected. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-26 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"]]