Routes Preferred API 目前仅适用于部分客户。如需了解详情,请
与销售人员联系。
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 )
此时间间隔内的交通速度。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-29。
[null,null,["最后更新时间 (UTC):2025-08-29。"],[[["\u003cp\u003e\u003ccode\u003eSpeedReadingInterval\u003c/code\u003e indicates traffic density on a segment of a path using start and end points and a speed category.\u003c/p\u003e\n"],["\u003cp\u003eThe interval is defined by \u003ccode\u003estartPolylinePointIndex\u003c/code\u003e and \u003ccode\u003eendPolylinePointIndex\u003c/code\u003e, representing the segment's start and end points on the path.\u003c/p\u003e\n"],["\u003cp\u003eTraffic speed within the interval is categorized using the \u003ccode\u003espeed\u003c/code\u003e enum, providing information about traffic flow.\u003c/p\u003e\n"],["\u003cp\u003eWhen an index value is 0 in the JSON representation, the corresponding field (\u003ccode\u003estartPolylinePointIndex\u003c/code\u003e or \u003ccode\u003eendPolylinePointIndex\u003c/code\u003e) may appear unpopulated.\u003c/p\u003e\n"]]],["The `SpeedReadingInterval` defines traffic density on a path segment using a start and end index within a polyline (P_0 to P_N). It uses `startPolylinePointIndex` and `endPolylinePointIndex` (integers) to mark the segment's boundaries. The `speed` field, an enum, categorizes the traffic speed within this segment. If either the start or end index is 0, it is treated as unpopulated. The JSON representation details this structure.\n"],null,["# SpeedReadingInterval\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\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, \"speed\": enum (/maps/documentation/routes_preferred/reference/rest/Shared.Types/Speed) } ``` |\n\n| Fields ||\n|---------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| `start``Polyline``Point``Index` | `integer` The starting index of this interval in the polyline. In JSON, when the index is 0, the field appears to be unpopulated. |\n| `end``Polyline``Point``Index` | `integer` The ending index of this interval in the polyline. In JSON, when the index is 0, the field appears to be unpopulated. |\n| `speed` | `enum (`[Speed](/maps/documentation/routes_preferred/reference/rest/Shared.Types/Speed)`)` Traffic speed in this interval. |"]]