1- // Copyright 2025 Google LLC
1+ // Copyright 2026 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -121,8 +121,8 @@ message Route {
121121 RouteLocalizedValues localized_values = 11 ;
122122
123123 // An opaque token that can be passed to [Navigation
124- // SDK](https://developers.google.com/maps/documentation/navigation) to
125- // reconstruct the route during navigation, and, in the event of rerouting,
124+ // SDK](https://developers.google.com/maps/documentation/mobility/driver-sdk/ navigation)
125+ // to reconstruct the route during navigation, and, in the event of rerouting,
126126 // honor the original intention when the route was created. Treat this token
127127 // as an opaque blob. Don't compare its value across requests as its value
128128 // may change even if the service returns the exact same route.
@@ -141,16 +141,21 @@ message Route {
141141// about, such as possible traffic zone restrictions.
142142message RouteTravelAdvisory {
143143 // Contains information about tolls on the route. This field is only populated
144- // if tolls are expected on the route. If this field is set, but the
145- // `estimatedPrice` subfield is not populated, then the route contains tolls,
146- // but the estimated price is unknown. If this field is not set, then there
147- // are no tolls expected on the route.
144+ // if tolls are expected on the route and `TOLLS` is included in the request's
145+ // [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations].
146+ // If this field is set, but the `estimatedPrice` subfield is not populated,
147+ // then the route contains tolls, but the estimated price is unknown. If
148+ // `toll_info` is not set, then there are no tolls expected on the route.
148149 TollInfo toll_info = 2 ;
149150
150- // Speed reading intervals detailing traffic density. Applicable in case of
151- // `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
152- // The intervals cover the entire polyline of the route without overlap.
153- // The start point of a specified interval is the same as the end point of the
151+ // Speed reading intervals indicating traffic density. This field is only
152+ // populated for requests when the request has a `TRAFFIC_AWARE` or
153+ // `TRAFFIC_AWARE_OPTIMAL`
154+ // [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference]
155+ // value, and `TRAFFIC_ON_POLYLINE` is included in the
156+ // [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations].
157+ // The intervals cover the entire polyline of the route without overlap. The
158+ // start point of a specified interval is the same as the end point of the
154159 // preceding interval.
155160 //
156161 // Example:
@@ -160,6 +165,9 @@ message RouteTravelAdvisory {
160165 repeated SpeedReadingInterval speed_reading_intervals = 3 ;
161166
162167 // The predicted fuel consumption in microliters.
168+ // This field is only populated when `FUEL_CONSUMPTION` is included in the
169+ // request's
170+ // [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations].
163171 int64 fuel_consumption_microliters = 5 ;
164172
165173 // Returned route may have restrictions that are not suitable for requested
@@ -177,14 +185,20 @@ message RouteTravelAdvisory {
177185message RouteLegTravelAdvisory {
178186 // Contains information about tolls on the specific `RouteLeg`.
179187 // This field is only populated if we expect there are tolls on the
180- // `RouteLeg`. If this field is set but the estimated_price subfield is not
188+ // `RouteLeg` and `TOLLS` is included in the request's
189+ // [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations].
190+ // If this field is set but the estimated_price subfield is not
181191 // populated, we expect that road contains tolls but we do not know an
182- // estimated price. If this field does not exist, then there is no toll on the
183- // `RouteLeg`.
192+ // estimated price. If `toll_info` does not exist, then there is no toll on
193+ // the `RouteLeg`.
184194 TollInfo toll_info = 1 ;
185195
186- // Speed reading intervals detailing traffic density. Applicable in case of
187- // `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences.
196+ // Speed reading intervals indicating traffic density. This field is only
197+ // populated for requests when the request has a `TRAFFIC_AWARE` or
198+ // `TRAFFIC_AWARE_OPTIMAL`
199+ // [ComputeRoutesRequest.routing_preference][google.maps.routing.v2.ComputeRoutesRequest.routing_preference]
200+ // value, and `TRAFFIC_ON_POLYLINE` is included in the
201+ // [ComputeRoutesRequest.extra_computations][google.maps.routing.v2.ComputeRoutesRequest.extra_computations].
188202 // The intervals cover the entire polyline of the `RouteLeg` without overlap.
189203 // The start point of a specified interval is the same as the end point of the
190204 // preceding interval.
0 commit comments