@googlemaps/routing 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +202 -0
  3. package/README.md +238 -0
  4. package/build/protos/google/geo/type/viewport.proto +69 -0
  5. package/build/protos/google/maps/routing/v2/fallback_info.proto +72 -0
  6. package/build/protos/google/maps/routing/v2/location.proto +43 -0
  7. package/build/protos/google/maps/routing/v2/maneuver.proto +88 -0
  8. package/build/protos/google/maps/routing/v2/navigation_instruction.proto +40 -0
  9. package/build/protos/google/maps/routing/v2/polyline.proto +74 -0
  10. package/build/protos/google/maps/routing/v2/route.proto +208 -0
  11. package/build/protos/google/maps/routing/v2/route_modifiers.proto +64 -0
  12. package/build/protos/google/maps/routing/v2/route_travel_mode.proto +46 -0
  13. package/build/protos/google/maps/routing/v2/routes_service.proto +311 -0
  14. package/build/protos/google/maps/routing/v2/routing_preference.proto +55 -0
  15. package/build/protos/google/maps/routing/v2/speed_reading_interval.proto +57 -0
  16. package/build/protos/google/maps/routing/v2/toll_info.proto +40 -0
  17. package/build/protos/google/maps/routing/v2/toll_passes.proto +321 -0
  18. package/build/protos/google/maps/routing/v2/units.proto +40 -0
  19. package/build/protos/google/maps/routing/v2/vehicle_emission_type.proto +43 -0
  20. package/build/protos/google/maps/routing/v2/vehicle_info.proto +37 -0
  21. package/build/protos/google/maps/routing/v2/waypoint.proto +71 -0
  22. package/build/protos/protos.d.ts +8392 -0
  23. package/build/protos/protos.js +22576 -0
  24. package/build/protos/protos.json +2144 -0
  25. package/build/src/index.d.ts +11 -0
  26. package/build/src/index.js +28 -0
  27. package/build/src/index.js.map +1 -0
  28. package/build/src/v2/index.d.ts +1 -0
  29. package/build/src/v2/index.js +23 -0
  30. package/build/src/v2/index.js.map +1 -0
  31. package/build/src/v2/routes_client.d.ts +289 -0
  32. package/build/src/v2/routes_client.js +356 -0
  33. package/build/src/v2/routes_client.js.map +1 -0
  34. package/build/src/v2/routes_client_config.json +34 -0
  35. package/package.json +66 -0
@@ -0,0 +1,311 @@
1
+ // Copyright 2022 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.maps.routing.v2;
18
+
19
+ import "google/api/annotations.proto";
20
+ import "google/api/client.proto";
21
+ import "google/api/field_behavior.proto";
22
+ import "google/maps/routing/v2/fallback_info.proto";
23
+ import "google/maps/routing/v2/polyline.proto";
24
+ import "google/maps/routing/v2/route.proto";
25
+ import "google/maps/routing/v2/route_modifiers.proto";
26
+ import "google/maps/routing/v2/route_travel_mode.proto";
27
+ import "google/maps/routing/v2/routing_preference.proto";
28
+ import "google/maps/routing/v2/units.proto";
29
+ import "google/maps/routing/v2/waypoint.proto";
30
+ import "google/protobuf/duration.proto";
31
+ import "google/protobuf/timestamp.proto";
32
+ import "google/rpc/status.proto";
33
+
34
+ option cc_enable_arenas = true;
35
+ option csharp_namespace = "Google.Maps.Routing.V2";
36
+ option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing";
37
+ option java_multiple_files = true;
38
+ option java_outer_classname = "RoutesServiceProto";
39
+ option java_package = "com.google.maps.routing.v2";
40
+ option objc_class_prefix = "GMRV2";
41
+ option php_namespace = "Google\\Maps\\Routing\\V2";
42
+ option ruby_package = "Google::Maps::Routing::V2";
43
+
44
+ // The Routes API.
45
+ service Routes {
46
+ option (google.api.default_host) = "routes.googleapis.com";
47
+
48
+ // Returns the primary route along with optional alternate routes, given a set
49
+ // of terminal and intermediate waypoints.
50
+ //
51
+ // **NOTE:** This method requires that you specify a response field mask in
52
+ // the input. You can provide the response field mask by using URL parameter
53
+ // `$fields` or `fields`, or by using an HTTP/gRPC header `X-Goog-FieldMask`
54
+ // (see the [available URL parameters and
55
+ // headers](https://cloud.google.com/apis/docs/system-parameters). The value
56
+ // is a comma separated list of field paths. See detailed documentation about
57
+ // [how to construct the field
58
+ // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).
59
+ //
60
+ // For example, in this method:
61
+ //
62
+ // * Field mask of all available fields (for manual inspection):
63
+ // `X-Goog-FieldMask: *`
64
+ // * Field mask of Route-level duration, distance, and polyline (an example
65
+ // production setup):
66
+ // `X-Goog-FieldMask:
67
+ // routes.duration,routes.distanceMeters,routes.polyline.encodedPolyline`
68
+ //
69
+ // Google discourage the use of the wildcard (`*`) response field mask, or
70
+ // specifying the field mask at the top level (`routes`), because:
71
+ //
72
+ // * Selecting only the fields that you need helps our server save computation
73
+ // cycles, allowing us to return the result to you with a lower latency.
74
+ // * Selecting only the fields that you need
75
+ // in your production job ensures stable latency performance. We might add
76
+ // more response fields in the future, and those new fields might require
77
+ // extra computation time. If you select all fields, or if you select all
78
+ // fields at the top level, then you might experience performance degradation
79
+ // because any new field we add will be automatically included in the
80
+ // response.
81
+ // * Selecting only the fields that you need results in a smaller response
82
+ // size, and thus higher network throughput.
83
+ rpc ComputeRoutes(ComputeRoutesRequest) returns (ComputeRoutesResponse) {
84
+ option (google.api.http) = {
85
+ post: "/directions/v2:computeRoutes"
86
+ body: "*"
87
+ };
88
+ }
89
+
90
+ // Takes in a list of origins and destinations and returns a stream containing
91
+ // route information for each combination of origin and destination.
92
+ //
93
+ // **NOTE:** This method requires that you specify a response field mask in
94
+ // the input. You can provide the response field mask by using the URL
95
+ // parameter `$fields` or `fields`, or by using the HTTP/gRPC header
96
+ // `X-Goog-FieldMask` (see the [available URL parameters and
97
+ // headers](https://cloud.google.com/apis/docs/system-parameters). The value
98
+ // is a comma separated list of field paths. See this detailed documentation
99
+ // about [how to construct the field
100
+ // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).
101
+ //
102
+ // For example, in this method:
103
+ //
104
+ // * Field mask of all available fields (for manual inspection):
105
+ // `X-Goog-FieldMask: *`
106
+ // * Field mask of route durations, distances, element status, condition, and
107
+ // element indices (an example production setup):
108
+ // `X-Goog-FieldMask:
109
+ // originIndex,destinationIndex,status,condition,distanceMeters,duration`
110
+ //
111
+ // It is critical that you include `status` in your field mask as otherwise
112
+ // all messages will appear to be OK. Google discourages the use of the
113
+ // wildcard (`*`) response field mask, because:
114
+ //
115
+ // * Selecting only the fields that you need helps our server save computation
116
+ // cycles, allowing us to return the result to you with a lower latency.
117
+ // * Selecting only the fields that you need in your production job ensures
118
+ // stable latency performance. We might add more response fields in the
119
+ // future, and those new fields might require extra computation time. If you
120
+ // select all fields, or if you select all fields at the top level, then you
121
+ // might experience performance degradation because any new field we add will
122
+ // be automatically included in the response.
123
+ // * Selecting only the fields that you need results in a smaller response
124
+ // size, and thus higher network throughput.
125
+ rpc ComputeRouteMatrix(ComputeRouteMatrixRequest) returns (stream RouteMatrixElement) {
126
+ option (google.api.http) = {
127
+ post: "/distanceMatrix/v2:computeRouteMatrix"
128
+ body: "*"
129
+ };
130
+ }
131
+ }
132
+
133
+ // ComputeRoutes request message.
134
+ message ComputeRoutesRequest {
135
+ // Required. Origin waypoint.
136
+ Waypoint origin = 1 [(google.api.field_behavior) = REQUIRED];
137
+
138
+ // Required. Destination waypoint.
139
+ Waypoint destination = 2 [(google.api.field_behavior) = REQUIRED];
140
+
141
+ // Optional. A set of waypoints along the route (excluding terminal points),
142
+ // for either stopping at or passing by. Up to 25 intermediate waypoints are
143
+ // supported.
144
+ repeated Waypoint intermediates = 3 [(google.api.field_behavior) = OPTIONAL];
145
+
146
+ // Optional. Specifies the mode of transportation.
147
+ RouteTravelMode travel_mode = 4 [(google.api.field_behavior) = OPTIONAL];
148
+
149
+ // Optional. Specifies how to compute the route. The server
150
+ // attempts to use the selected routing preference to compute the route. If
151
+ // the routing preference results in an error or an extra long latency, then
152
+ // an error is returned. In the future, we might implement a fallback
153
+ // mechanism to use a different option when the preferred option does not give
154
+ // a valid result. You can specify this option only when the `travel_mode` is
155
+ // `DRIVE` or `TWO_WHEELER`, otherwise the request fails.
156
+ RoutingPreference routing_preference = 5 [(google.api.field_behavior) = OPTIONAL];
157
+
158
+ // Optional. Specifies your preference for the quality of the polyline.
159
+ PolylineQuality polyline_quality = 6 [(google.api.field_behavior) = OPTIONAL];
160
+
161
+ // Optional. Specifies the preferred encoding for the polyline.
162
+ PolylineEncoding polyline_encoding = 12 [(google.api.field_behavior) = OPTIONAL];
163
+
164
+ // Optional. The departure time. If you don't set this value, then this value
165
+ // defaults to the time that you made the request. If you set this value to a
166
+ // time that has already occurred, then the request fails.
167
+ google.protobuf.Timestamp departure_time = 7 [(google.api.field_behavior) = OPTIONAL];
168
+
169
+ // Optional. Specifies whether to calculate alternate routes in addition to the route.
170
+ bool compute_alternative_routes = 8 [(google.api.field_behavior) = OPTIONAL];
171
+
172
+ // Optional. A set of conditions to satisfy that affect the way routes are
173
+ // calculated.
174
+ RouteModifiers route_modifiers = 9 [(google.api.field_behavior) = OPTIONAL];
175
+
176
+ // Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
177
+ // information, see
178
+ // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. See
179
+ // [Language Support](https://developers.google.com/maps/faq#languagesupport)
180
+ // for the list of supported languages. When you don't provide this value, the
181
+ // display language is inferred from the location of the route request.
182
+ string language_code = 10 [(google.api.field_behavior) = OPTIONAL];
183
+
184
+ // Optional. Specifies the units of measure for the display fields. This
185
+ // includes the `instruction` field in `NavigationInstruction`. The units of
186
+ // measure used for the route, leg, step distance, and duration are not
187
+ // affected by this value. If you don't provide this value, then the display
188
+ // units are inferred from the location of the request.
189
+ Units units = 11 [(google.api.field_behavior) = OPTIONAL];
190
+ }
191
+
192
+ // ComputeRoutes the response message.
193
+ message ComputeRoutesResponse {
194
+ // Contains an array of computed routes (up to three) when you specify
195
+ // compute_alternatives_routes, and contains just one route when you don't.
196
+ // When this array contains multiple entries, the first one is the most
197
+ // recommended route. If the array is empty, then it means no route could be
198
+ // found.
199
+ repeated Route routes = 1;
200
+
201
+ // In some cases when the server is not able to compute the route results with
202
+ // all of the input preferences, it may fallback to using a different way of
203
+ // computation. When fallback mode is used, this field contains detailed info
204
+ // about the fallback response. Otherwise this field is unset.
205
+ FallbackInfo fallback_info = 2;
206
+ }
207
+
208
+ // ComputeRouteMatrix request message
209
+ message ComputeRouteMatrixRequest {
210
+ // Required. Array of origins, which determines the rows of the response matrix.
211
+ // Several size restrictions apply to the cardinality of origins and
212
+ // destinations:
213
+ //
214
+ // * The number of elements (origins × destinations) must be no greater than
215
+ // 625 in any case.
216
+ // * The number of elements (origins × destinations) must be no greater than
217
+ // 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`.
218
+ // * The number of waypoints (origins + destinations) specified as `place_id`
219
+ // must be no greater than 50.
220
+ repeated RouteMatrixOrigin origins = 1 [(google.api.field_behavior) = REQUIRED];
221
+
222
+ // Required. Array of destinations, which determines the columns of the response matrix.
223
+ repeated RouteMatrixDestination destinations = 2 [(google.api.field_behavior) = REQUIRED];
224
+
225
+ // Optional. Specifies the mode of transportation.
226
+ RouteTravelMode travel_mode = 3 [(google.api.field_behavior) = OPTIONAL];
227
+
228
+ // Optional. Specifies how to compute the route. The server attempts to use the selected
229
+ // routing preference to compute the route. If the routing preference results
230
+ // in an error or an extra long latency, an error is returned. In the future,
231
+ // we might implement a fallback mechanism to use a different option when the
232
+ // preferred option does not give a valid result. You can specify this option
233
+ // only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the
234
+ // request fails.
235
+ RoutingPreference routing_preference = 4 [(google.api.field_behavior) = OPTIONAL];
236
+
237
+ // Optional. The departure time. If you don't set this value, this defaults to the time
238
+ // that you made the request. If you set this value to a time that has already
239
+ // occurred, the request fails.
240
+ google.protobuf.Timestamp departure_time = 5 [(google.api.field_behavior) = OPTIONAL];
241
+ }
242
+
243
+ // A single origin for ComputeRouteMatrixRequest
244
+ message RouteMatrixOrigin {
245
+ // Required. Origin waypoint
246
+ Waypoint waypoint = 1 [(google.api.field_behavior) = REQUIRED];
247
+
248
+ // Optional. Modifiers for every route that takes this as the origin
249
+ RouteModifiers route_modifiers = 2 [(google.api.field_behavior) = OPTIONAL];
250
+ }
251
+
252
+ // A single destination for ComputeRouteMatrixRequest
253
+ message RouteMatrixDestination {
254
+ // Required. Destination waypoint
255
+ Waypoint waypoint = 1 [(google.api.field_behavior) = REQUIRED];
256
+ }
257
+
258
+ // Encapsulates route information computed for an origin/destination pair in the
259
+ // ComputeRouteMatrix API. This proto can be streamed to the client.
260
+ message RouteMatrixElement {
261
+ // Zero-based index of the origin in the request.
262
+ optional int32 origin_index = 1;
263
+
264
+ // Zero-based index of the destination in the request.
265
+ optional int32 destination_index = 2;
266
+
267
+ // Error status code for this element.
268
+ google.rpc.Status status = 3;
269
+
270
+ // Indicates whether the route was found or not. Independent of status.
271
+ RouteMatrixElementCondition condition = 9;
272
+
273
+ // The travel distance of the route, in meters.
274
+ int32 distance_meters = 4;
275
+
276
+ // The length of time needed to navigate the route. If you set the
277
+ // `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
278
+ // `static_duration`. If you set the `routing_preference` to either
279
+ // `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
280
+ // taking traffic conditions into account.
281
+ google.protobuf.Duration duration = 5;
282
+
283
+ // The duration of traveling through the route without taking traffic
284
+ // conditions into consideration.
285
+ google.protobuf.Duration static_duration = 6;
286
+
287
+ // Additional information about the route. For example: restriction
288
+ // information and toll information
289
+ RouteTravelAdvisory travel_advisory = 7;
290
+
291
+ // In some cases when the server is not able to compute the route with the
292
+ // given preferences for this particular origin/destination pair, it may
293
+ // fall back to using a different mode of computation. When fallback mode is
294
+ // used, this field contains detailed information about the fallback response.
295
+ // Otherwise this field is unset.
296
+ FallbackInfo fallback_info = 8;
297
+ }
298
+
299
+ // The condition of the route being returned.
300
+ enum RouteMatrixElementCondition {
301
+ // Only used when the `status` of the element is not OK.
302
+ ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED = 0;
303
+
304
+ // A route was found, and the corresponding information was filled out for the
305
+ // element.
306
+ ROUTE_EXISTS = 1;
307
+
308
+ // No route could be found. Fields containing route information, such as
309
+ // `distance_meters` or `duration`, will not be filled out in the element.
310
+ ROUTE_NOT_FOUND = 2;
311
+ }
@@ -0,0 +1,55 @@
1
+ // Copyright 2022 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.maps.routing.v2;
18
+
19
+ option cc_enable_arenas = true;
20
+ option csharp_namespace = "Google.Maps.Routing.V2";
21
+ option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing";
22
+ option java_multiple_files = true;
23
+ option java_outer_classname = "RoutingPreferenceProto";
24
+ option java_package = "com.google.maps.routing.v2";
25
+ option objc_class_prefix = "GMRV2";
26
+ option php_namespace = "Google\\Maps\\Routing\\V2";
27
+ option ruby_package = "Google::Maps::Routing::V2";
28
+
29
+ // A set of values that specify factors to take into consideration when
30
+ // calculating the route.
31
+ enum RoutingPreference {
32
+ // No routing preference specified. Default to `TRAFFIC_UNAWARE`.
33
+ ROUTING_PREFERENCE_UNSPECIFIED = 0;
34
+
35
+ // Computes routes without taking live traffic conditions into consideration.
36
+ // Suitable when traffic conditions don't matter or are not applicable.
37
+ // Using this value produces the lowest latency.
38
+ // Note: For `RouteTravelMode` DRIVE and TWO_WHEELER choice of route and
39
+ // duration are based on road network and average time-independent traffic
40
+ // conditions. Results for a given request may vary over time due to changes
41
+ // in the road network, updated average traffic conditions, and the
42
+ // distributed nature of the service. Results may also vary between
43
+ // nearly-equivalent routes at any time or frequency.
44
+ TRAFFIC_UNAWARE = 1;
45
+
46
+ // Calculates routes taking live traffic conditions into consideration.
47
+ // In contrast to `TRAFFIC_AWARE_OPTIMAL`, some optimizations are applied to
48
+ // significantly reduce latency.
49
+ TRAFFIC_AWARE = 2;
50
+
51
+ // Calculates the routes taking live traffic conditions into consideration,
52
+ // without applying most performance optimizations. Using this value produces
53
+ // the highest latency.
54
+ TRAFFIC_AWARE_OPTIMAL = 3;
55
+ }
@@ -0,0 +1,57 @@
1
+ // Copyright 2022 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.maps.routing.v2;
18
+
19
+ option cc_enable_arenas = true;
20
+ option csharp_namespace = "Google.Maps.Routing.V2";
21
+ option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing";
22
+ option java_multiple_files = true;
23
+ option java_outer_classname = "SpeedReadingIntervalProto";
24
+ option java_package = "com.google.maps.routing.v2";
25
+ option objc_class_prefix = "GMRV2";
26
+ option php_namespace = "Google\\Maps\\Routing\\V2";
27
+ option ruby_package = "Google::Maps::Routing::V2";
28
+
29
+ // Traffic density indicator on a contiguous segment of a polyline or path.
30
+ // Given a path with points P_0, P_1, ... , P_N (zero-based index), the
31
+ // SpeedReadingInterval defines an interval and describes its traffic using the
32
+ // following categories.
33
+ message SpeedReadingInterval {
34
+ // The classification of polyline speed based on traffic data.
35
+ enum Speed {
36
+ // Default value. This value is unused.
37
+ SPEED_UNSPECIFIED = 0;
38
+
39
+ // Normal speed, no slowdown is detected.
40
+ NORMAL = 1;
41
+
42
+ // Slowdown detected, but no traffic jam formed.
43
+ SLOW = 2;
44
+
45
+ // Traffic jam detected.
46
+ TRAFFIC_JAM = 3;
47
+ }
48
+
49
+ // The starting index of this interval in the polyline.
50
+ optional int32 start_polyline_point_index = 1;
51
+
52
+ // The ending index of this interval in the polyline.
53
+ optional int32 end_polyline_point_index = 2;
54
+
55
+ // Traffic speed in this interval.
56
+ Speed speed = 3;
57
+ }
@@ -0,0 +1,40 @@
1
+ // Copyright 2022 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.maps.routing.v2;
18
+
19
+ import "google/type/money.proto";
20
+
21
+ option cc_enable_arenas = true;
22
+ option csharp_namespace = "Google.Maps.Routing.V2";
23
+ option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing";
24
+ option java_multiple_files = true;
25
+ option java_outer_classname = "TollInfoProto";
26
+ option java_package = "com.google.maps.routing.v2";
27
+ option objc_class_prefix = "GMRV2";
28
+ option php_namespace = "Google\\Maps\\Routing\\V2";
29
+ option ruby_package = "Google::Maps::Routing::V2";
30
+
31
+ // Encapsulates toll information on a `Route` or on a `RouteLeg`.
32
+ message TollInfo {
33
+ // The monetary amount of tolls for the corresponding Route or RouteLeg.
34
+ // This list contains a money amount for each currency that is expected
35
+ // to be charged by the toll stations. Typically this list will contain only
36
+ // one item for routes with tolls in one currency. For international trips,
37
+ // this list may contain multiple items to reflect tolls in different
38
+ // currencies.
39
+ repeated google.type.Money estimated_price = 1;
40
+ }