From 793cd56ceba3fbdcabd99b8e24a5c49be0fe8c12 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 1 Oct 2020 11:10:59 -0700 Subject: [PATCH] docs: Update Traffic-related comments. PiperOrigin-RevId: 334854494 --- google/maps/routes/v1/route.proto | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/google/maps/routes/v1/route.proto b/google/maps/routes/v1/route.proto index 5b3e3884..39cb18a4 100644 --- a/google/maps/routes/v1/route.proto +++ b/google/maps/routes/v1/route.proto @@ -272,11 +272,10 @@ enum Maneuver { ROUNDABOUT_RIGHT = 18; } -// Traffic density indicator on a contiguous segment of a polyline. -// Given a polyline with polyline points P_0, P_1, ... , P_N -// (the indexing is zero-based), the SpeedReadingInterval defines an -// interval (including the start, exclusing the end point) and describes the -// traffic density on the respective interval using the below style categories. +// Traffic 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. message SpeedReadingInterval { // The classification of polyline speed based on traffic data. enum Speed { @@ -293,16 +292,14 @@ message SpeedReadingInterval { TRAFFIC_JAM = 3; } - // The index of the starting polyline point of the interval - // in the ordered list of polyline points. + // The starting index of this interval in the polyline. // In JSON, when the index is 0, the field will appear to be unpopulated. int32 start_polyline_point_index = 1; - // The index of the ending polyline point of the interval - // (with off-by-one ending) in the ordered list of polyline points. + // The ending index of this interval in the polyline. // In JSON, when the index is 0, the field will appear to be unpopulated. int32 end_polyline_point_index = 2; - // Traffic information speed at the interval. + // Traffic speed in this interval. Speed speed = 3; }