SpeedReadingInterval
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Chỉ báo mật độ giao thông trên một đoạn liền kề của một đường nhiều đoạn hoặc đường dẫn. Cho trước một đường dẫn có các điểm P_0, P_1, ... , P_N (chỉ mục từ 0), SpeedReadingInterval
xác định một khoảng thời gian và mô tả lưu lượng truy cập của khoảng thời gian đó bằng các danh mục sau.
Biểu diễn dưới dạng 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 .
} |
Trường |
startPolylinePointIndex |
integer
Chỉ mục bắt đầu của khoảng thời gian này trong đường nhiều đoạn.
|
endPolylinePointIndex |
integer
Chỉ mục kết thúc của khoảng thời gian này trong đường nhiều đoạn.
|
Trường nhóm speed_type . Loại tốc độ trong khoảng thời gian này. speed_type chỉ có thể là một trong những trạng thái sau: |
speed |
enum (Speed )
Tốc độ giao thông trong khoảng thời gian này.
|
Tốc độ
Phân loại tốc độ của đường nhiều đường dựa trên dữ liệu giao thông.
Enum |
SPEED_UNSPECIFIED |
Giá trị mặc định. Giá trị này không được dùng. |
NORMAL |
Tốc độ bình thường, không có trở ngại giao thông. |
SLOW |
Đã phát hiện tình trạng giảm tốc độ, lượng giao thông ở mức trung bình. |
TRAFFIC_JAM |
Trở ngại giao thông. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-31 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-31 UTC."],[[["\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. |"]]