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 )
מהירות התנועה במרווח הזמן הזה.
|
מהירות
הסיווג של מהירות קו פוליגוני על סמך נתוני תנועה.
טיפוסים בני מנייה (enum) |
SPEED_UNSPECIFIED |
ערך ברירת המחדל. הערך הזה לא בשימוש. |
NORMAL |
מהירות רגילה, לא זוהתה האטה. |
SLOW |
זוהתה האטה, אבל לא נוצרה פקק תנועה. |
TRAFFIC_JAM |
זוהה פקק תנועה. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-06 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 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"]]