SpeedReadingInterval
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
多段线或路径的连续路段上的流量密度指示器。假设某个路径包含点 P_0、P_1、...、P_N(从零开始的索引),SpeedReadingInterval
定义了一个区间,并使用以下类别描述该区间的流量。
JSON 表示法 |
{
"startPolylinePointIndex": integer,
"endPolylinePointIndex": integer,
// Union field speed_type can be only one of the following:
"speed": enum (Speed )
// End of list of possible types for union field speed_type .
} |
字段 |
startPolylinePointIndex |
integer
相应间隔在多段线中的起始索引。
|
endPolylinePointIndex |
integer
多段线中相应区间的结束索引。
|
联合字段 speed_type 。相应时间段内的速度类型。speed_type 只能是下列其中一项: |
speed |
enum (Speed )
相应时间间隔内的流量速度。
|
速度
枚举 |
SPEED_UNSPECIFIED |
默认值。此值未使用。 |
NORMAL |
正常速度,交通顺畅。 |
SLOW |
检测到减速,车流量中等。 |
TRAFFIC_JAM |
交通拥堵。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-31。
[null,null,["最后更新时间 (UTC):2025-08-31。"],[[["\u003cp\u003e\u003ccode\u003eSpeedReadingInterval\u003c/code\u003e indicates traffic density on a path segment using start and end points.\u003c/p\u003e\n"],["\u003cp\u003eIt classifies traffic speed into categories: \u003ccode\u003eNORMAL\u003c/code\u003e, \u003ccode\u003eSLOW\u003c/code\u003e, and \u003ccode\u003eTRAFFIC_JAM\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe interval is represented in JSON format including start/end point indexes and speed information.\u003c/p\u003e\n"]]],[],null,["# SpeedReadingInterval\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [Speed](#Speed)\n\nTraffic density indicator on a contiguous segment of a polyline or 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, // Union field `speed_type` can be only one of the following: \"speed\": enum (/maps/documentation/routes/reference/rest/v2/SpeedReadingInterval#Speed) // End of list of possible types for union field `speed_type`. } ``` |\n\n| Fields ||\n|---------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| `startPolylinePointIndex` | `integer` The starting index of this interval in the polyline. |\n| `endPolylinePointIndex` | `integer` The ending index of this interval in the polyline. |\n| Union field `speed_type`. The type of speed in this interval. `speed_type` can be only one of the following: ||\n| `speed` | `enum (`[Speed](/maps/documentation/routes/reference/rest/v2/SpeedReadingInterval#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. |"]]