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 )
이 간격의 트래픽 속도입니다.
|
속도
트래픽 데이터를 기반으로 한 다중선 속도 분류입니다.
열거형 |
SPEED_UNSPECIFIED |
기본값 이 값은 사용되지 않습니다. |
NORMAL |
정상 속도이며 교통 지연이 없습니다. |
SLOW |
속도 저하 감지됨, 트래픽 양이 중간 수준입니다. |
TRAFFIC_JAM |
교통 지연 |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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. |"]]