ConsumableTrafficPolyline
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ความหนาแน่นของการจราจรตามเส้นทางของยานพาหนะ
การแสดง JSON |
{
"speedReadingInterval": [
{
object (SpeedReadingInterval )
}
],
"encodedPathToWaypoint": string
} |
ช่อง |
speedReadingInterval[] |
object (SpeedReadingInterval )
ความเร็วการจราจรตลอดเส้นทางจากจุดสังเกตก่อนหน้าไปยังจุดสังเกตปัจจุบัน
|
encodedPathToWaypoint |
string
เส้นทางที่ผู้ขับขี่ใช้จากจุดสังเกตก่อนหน้าไปยังจุดสังเกตปัจจุบัน เส้นทางนี้มีจุดสังเกตเพื่อให้ไคลเอ็นต์แสดงเครื่องหมายการจราจรตามเส้นทางได้ (ดู speedReadingInterval ) ระบบยังไม่รองรับการถอดรหัส
|
SpeedReadingInterval
ตัวบ่งชี้ความหนาแน่นของการเข้าชมในเส้นทางที่ต่อเนื่องกัน เมื่อพิจารณาเส้นทางที่มีจุด P_0, P_1, ... , P_N (ดัชนีฐาน 0) 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 |
การจราจรล่าช้า |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[[["\u003cp\u003eConsumableTrafficPolyline provides traffic density information along a vehicle's path using encoded polylines and speed readings.\u003c/p\u003e\n"],["\u003cp\u003eSpeedReadingInterval objects represent traffic conditions on segments of the path, indicating speed levels like normal, slow, or traffic jam.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003espeed\u003c/code\u003e field within SpeedReadingInterval classifies traffic speed into categories: \u003ccode\u003eSPEED_UNSPECIFIED\u003c/code\u003e, \u003ccode\u003eNORMAL\u003c/code\u003e, \u003ccode\u003eSLOW\u003c/code\u003e, and \u003ccode\u003eTRAFFIC_JAM\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eencodedPathToWaypoint\u003c/code\u003e is a string representing the path with landmarks, enabling the display of traffic markers; decoding is not yet supported.\u003c/p\u003e\n"]]],["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"],null,["# ConsumableTrafficPolyline\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [SpeedReadingInterval](#SpeedReadingInterval)\n - [JSON representation](#SpeedReadingInterval.SCHEMA_REPRESENTATION)\n- [Speed](#Speed)\n\nTraffic density along a Vehicle's path.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"speedReadingInterval\": [ { object (/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/ConsumableTrafficPolyline#SpeedReadingInterval) } ], \"encodedPathToWaypoint\": string } ``` |\n\n| Fields ||\n|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `speedReadingInterval[]` | `object (`[SpeedReadingInterval](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/ConsumableTrafficPolyline#SpeedReadingInterval)`)` Traffic speed along the path from the previous waypoint to the current waypoint. |\n| `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. |\n\nSpeedReadingInterval\n--------------------\n\nTraffic 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.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"startPolylinePointIndex\": integer, \"endPolylinePointIndex\": integer, \"speed\": enum (/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/ConsumableTrafficPolyline#Speed) } ``` |\n\n| Fields ||\n|---------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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. |\n| `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. |\n| `speed` | `enum (`[Speed](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/ConsumableTrafficPolyline#Speed)`)` Traffic speed in this interval. |\n\nSpeed\n-----\n\nThe classification of polyline speed based on traffic data.\n\n| Enums ||\n|---------------------|----------------------------------------------|\n| `SPEED_UNSPECIFIED` | Default value. This value is unused. |\n| `NORMAL` | Normal speed, no traffic delays. |\n| `SLOW` | Slowdown detected, medium amount of traffic. |\n| `TRAFFIC_JAM` | Traffic delays. |"]]