@googlemaps/routing 1.1.0 → 1.3.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 (31) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/build/protos/google/geo/type/viewport.proto +1 -1
  3. package/build/protos/google/maps/routing/v2/fallback_info.proto +5 -4
  4. package/build/protos/google/maps/routing/v2/geocoding_results.proto +4 -4
  5. package/build/protos/google/maps/routing/v2/localized_time.proto +1 -1
  6. package/build/protos/google/maps/routing/v2/location.proto +2 -2
  7. package/build/protos/google/maps/routing/v2/maneuver.proto +2 -2
  8. package/build/protos/google/maps/routing/v2/navigation_instruction.proto +5 -4
  9. package/build/protos/google/maps/routing/v2/polyline.proto +3 -3
  10. package/build/protos/google/maps/routing/v2/route.proto +11 -11
  11. package/build/protos/google/maps/routing/v2/route_label.proto +3 -3
  12. package/build/protos/google/maps/routing/v2/route_modifiers.proto +6 -6
  13. package/build/protos/google/maps/routing/v2/route_travel_mode.proto +1 -1
  14. package/build/protos/google/maps/routing/v2/routes_service.proto +49 -40
  15. package/build/protos/google/maps/routing/v2/routing_preference.proto +6 -4
  16. package/build/protos/google/maps/routing/v2/speed_reading_interval.proto +3 -3
  17. package/build/protos/google/maps/routing/v2/toll_info.proto +5 -5
  18. package/build/protos/google/maps/routing/v2/toll_passes.proto +17 -2
  19. package/build/protos/google/maps/routing/v2/traffic_model.proto +1 -1
  20. package/build/protos/google/maps/routing/v2/transit.proto +1 -1
  21. package/build/protos/google/maps/routing/v2/transit_preferences.proto +1 -1
  22. package/build/protos/google/maps/routing/v2/units.proto +1 -1
  23. package/build/protos/google/maps/routing/v2/vehicle_emission_type.proto +2 -2
  24. package/build/protos/google/maps/routing/v2/vehicle_info.proto +2 -2
  25. package/build/protos/google/maps/routing/v2/waypoint.proto +5 -5
  26. package/build/protos/protos.d.ts +779 -16
  27. package/build/protos/protos.js +3019 -257
  28. package/build/protos/protos.json +358 -16
  29. package/build/src/v2/routes_client.d.ts +45 -36
  30. package/build/src/v2/routes_client.js +34 -27
  31. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.3.0](https://github.com/googleapis/google-cloud-node/compare/routing-v1.2.0...routing-v1.3.0) (2024-05-21)
4
+
5
+
6
+ ### Features
7
+
8
+ * [Many APIs] update Nodejs generator to send API versions in headers for GAPICs ([#5351](https://github.com/googleapis/google-cloud-node/issues/5351)) ([01f48fc](https://github.com/googleapis/google-cloud-node/commit/01f48fce63ec4ddf801d59ee2b8c0db9f6fb8372))
9
+ * [Many APIs] update Nodejs generator to send API versions in headers for GAPICs ([#5354](https://github.com/googleapis/google-cloud-node/issues/5354)) ([a9784ed](https://github.com/googleapis/google-cloud-node/commit/a9784ed3db6ee96d171762308bbbcd57390b6866))
10
+ * [Many APIs] update Nodejs generator to send API versions in headers for GAPICs ([#5357](https://github.com/googleapis/google-cloud-node/issues/5357)) ([66111e8](https://github.com/googleapis/google-cloud-node/commit/66111e8d285a2357bc477004d1880b70934a60d2))
11
+
12
+ ## [1.2.0](https://github.com/googleapis/google-cloud-node/compare/routing-v1.1.0...routing-v1.2.0) (2024-03-29)
13
+
14
+
15
+ ### Features
16
+
17
+ * [Many APIs] add several fields to manage state of database encryption update ([#5193](https://github.com/googleapis/google-cloud-node/issues/5193)) ([333b409](https://github.com/googleapis/google-cloud-node/commit/333b40951a255ecfab249bd6e7ace5877270ec85))
18
+
3
19
  ## [1.1.0](https://github.com/googleapis/google-cloud-node/compare/routing-v1.0.2...routing-v1.1.0) (2024-02-09)
4
20
 
5
21
 
@@ -1,4 +1,4 @@
1
- // Copyright 2019 Google LLC.
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -62,12 +62,13 @@ enum FallbackRoutingMode {
62
62
  // Not used.
63
63
  FALLBACK_ROUTING_MODE_UNSPECIFIED = 0;
64
64
 
65
- // Indicates the `TRAFFIC_UNAWARE` [google.maps.routing.v2.RoutingPreference]
66
- // was used to compute the response.
65
+ // Indicates the `TRAFFIC_UNAWARE`
66
+ // [`RoutingPreference`][google.maps.routing.v2.RoutingPreference] was used to
67
+ // compute the response.
67
68
  FALLBACK_TRAFFIC_UNAWARE = 1;
68
69
 
69
70
  // Indicates the `TRAFFIC_AWARE`
70
- // [RoutingPreference][google.maps.routing.v2.RoutingPreference] was used to
71
+ // [`RoutingPreference`][google.maps.routing.v2.RoutingPreference] was used to
71
72
  // compute the response.
72
73
  FALLBACK_TRAFFIC_AWARE = 2;
73
74
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@ option objc_class_prefix = "GMRV2";
28
28
  option php_namespace = "Google\\Maps\\Routing\\V2";
29
29
  option ruby_package = "Google::Maps::Routing::V2";
30
30
 
31
- // Contains [GeocodedWaypoints][google.maps.routing.v2.GeocodedWaypoint] for
31
+ // Contains [`GeocodedWaypoints`][google.maps.routing.v2.GeocodedWaypoint] for
32
32
  // origin, destination and intermediate waypoints. Only populated for address
33
33
  // waypoints.
34
34
  message GeocodingResults {
@@ -57,8 +57,8 @@ message GeocodedWaypoint {
57
57
  optional int32 intermediate_waypoint_request_index = 2;
58
58
 
59
59
  // The type(s) of the result, in the form of zero or more type tags.
60
- // Supported types:
61
- // https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types
60
+ // Supported types: [Address types and address component
61
+ // types](https://developers.google.com/maps/documentation/geocoding/requests-geocoding#Types).
62
62
  repeated string type = 3;
63
63
 
64
64
  // Indicates that the geocoder did not return an exact match for the original
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -39,6 +39,6 @@ message Location {
39
39
  // values can be from 0 to 360, where 0 specifies a heading of due North, 90
40
40
  // specifies a heading of due East, and so on. You can use this field only for
41
41
  // `DRIVE` and `TWO_WHEELER`
42
- // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
42
+ // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
43
43
  google.protobuf.Int32Value heading = 2;
44
44
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ option php_namespace = "Google\\Maps\\Routing\\V2";
27
27
  option ruby_package = "Google::Maps::Routing::V2";
28
28
 
29
29
  // A set of values that specify the navigation action to take for the current
30
- // step (e.g., turn left, merge, straight, etc.).
30
+ // step (for example, turn left, merge, or straight).
31
31
  enum Maneuver {
32
32
  // Not used.
33
33
  MANEUVER_UNSPECIFIED = 0;
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -29,10 +29,11 @@ option php_namespace = "Google\\Maps\\Routing\\V2";
29
29
  option ruby_package = "Google::Maps::Routing::V2";
30
30
 
31
31
  // Encapsulates navigation instructions for a
32
- // [RouteLegStep][google.maps.routing.v2.RouteLegStep]
32
+ // [`RouteLegStep`][google.maps.routing.v2.RouteLegStep].
33
33
  message NavigationInstruction {
34
- // Encapsulates the navigation instructions for the current step (e.g., turn
35
- // left, merge, straight, etc.). This field determines which icon to display.
34
+ // Encapsulates the navigation instructions for the current step (for example,
35
+ // turn left, merge, or straight). This field determines which icon to
36
+ // display.
36
37
  Maneuver maneuver = 1;
37
38
 
38
39
  // Instructions for navigating this step.
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -37,7 +37,7 @@ message Polyline {
37
37
  string encoded_polyline = 1;
38
38
 
39
39
  // Specifies a polyline using the [GeoJSON LineString
40
- // format](https://tools.ietf.org/html/rfc7946#section-3.1.4)
40
+ // format](https://tools.ietf.org/html/rfc7946#section-3.1.4).
41
41
  google.protobuf.Struct geo_json_linestring = 2;
42
42
  }
43
43
  }
@@ -65,7 +65,7 @@ enum PolylineEncoding {
65
65
  POLYLINE_ENCODING_UNSPECIFIED = 0;
66
66
 
67
67
  // Specifies a polyline encoded using the [polyline encoding
68
- // algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm).
68
+ // algorithm](/maps/documentation/utilities/polylinealgorithm).
69
69
  ENCODED_POLYLINE = 1;
70
70
 
71
71
  // Specifies a polyline using the [GeoJSON LineString
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -51,11 +51,11 @@ message Route {
51
51
 
52
52
  // Duration taking traffic conditions into consideration, represented in
53
53
  // text form. Note: If you did not request traffic information, this value
54
- // will be the same value as static_duration.
54
+ // will be the same value as `static_duration`.
55
55
  google.type.LocalizedText duration = 2;
56
56
 
57
- // Duration without taking traffic conditions into
58
- // consideration, represented in text form.
57
+ // Duration without taking traffic conditions into consideration,
58
+ // represented in text form.
59
59
  google.type.LocalizedText static_duration = 3;
60
60
 
61
61
  // Transit fare represented in text form.
@@ -68,8 +68,8 @@ message Route {
68
68
 
69
69
  // A collection of legs (path segments between waypoints) that make up the
70
70
  // route. Each leg corresponds to the trip between two non-`via`
71
- // [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
72
- // intermediate waypoints has only one leg. A route that includes one
71
+ // [`Waypoints`][google.maps.routing.v2.Waypoint]. For example, a route with
72
+ // no intermediate waypoints has only one leg. A route that includes one
73
73
  // non-`via` intermediate waypoint has two legs. A route that includes one
74
74
  // `via` intermediate waypoint has one leg. The order of the legs matches the
75
75
  // order of waypoints from `origin` to `intermediates` to `destination`.
@@ -106,7 +106,7 @@ message Route {
106
106
  RouteTravelAdvisory travel_advisory = 9;
107
107
 
108
108
  // If you set
109
- // [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
109
+ // [`optimize_waypoint_order`][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order]
110
110
  // to true, this field contains the optimized ordering of intermediate
111
111
  // waypoints. Otherwise, this field is empty.
112
112
  // For example, if you give an input of Origin: LA; Intermediate waypoints:
@@ -136,7 +136,7 @@ message Route {
136
136
  message RouteTravelAdvisory {
137
137
  // Contains information about tolls on the route. This field is only populated
138
138
  // if tolls are expected on the route. If this field is set, but the
139
- // estimatedPrice subfield is not populated, then the route contains tolls,
139
+ // `estimatedPrice` subfield is not populated, then the route contains tolls,
140
140
  // but the estimated price is unknown. If this field is not set, then there
141
141
  // are no tolls expected on the route.
142
142
  TollInfo toll_info = 2;
@@ -287,7 +287,7 @@ message RouteLeg {
287
287
  StepsOverview steps_overview = 10;
288
288
  }
289
289
 
290
- // Contains a segment of a [RouteLeg][google.maps.routing.v2.RouteLeg]. A
290
+ // Contains a segment of a [`RouteLeg`][google.maps.routing.v2.RouteLeg]. A
291
291
  // step corresponds to a single navigation instruction. Route legs are made up
292
292
  // of steps.
293
293
  message RouteLegStep {
@@ -338,7 +338,7 @@ message RouteLegStep {
338
338
 
339
339
  // Additional information for the `RouteLegStep` related to `TRANSIT` routes.
340
340
  message RouteLegStepTransitDetails {
341
- // Details about the transit stops for the `RouteLegStep`
341
+ // Details about the transit stops for the `RouteLegStep`.
342
342
  message TransitStopDetails {
343
343
  // Information about the arrival stop for the step.
344
344
  TransitStop arrival_stop = 1;
@@ -353,7 +353,7 @@ message RouteLegStepTransitDetails {
353
353
  google.protobuf.Timestamp departure_time = 4;
354
354
  }
355
355
 
356
- // Localized descriptions of values for RouteTransitDetails.
356
+ // Localized descriptions of values for `RouteTransitDetails`.
357
357
  message TransitDetailsLocalizedValues {
358
358
  // Time in its formatted text representation with a corresponding time zone.
359
359
  LocalizedTime arrival_time = 1;
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ option objc_class_prefix = "GMRV2";
26
26
  option php_namespace = "Google\\Maps\\Routing\\V2";
27
27
  option ruby_package = "Google::Maps::Routing::V2";
28
28
 
29
- // Labels for the [Route][google.maps.routing.v2.Route] that are useful to
29
+ // Labels for the [`Route`][google.maps.routing.v2.Route] that are useful to
30
30
  // identify specific properties of the route to compare against others.
31
31
  enum RouteLabel {
32
32
  // Default - not used.
@@ -37,7 +37,7 @@ enum RouteLabel {
37
37
 
38
38
  // An alternative to the default "best" route. Routes like this will be
39
39
  // returned when
40
- // [compute_alternative_routes][google.maps.routing.v2.ComputeRoutesRequest.compute_alternative_routes]
40
+ // [`compute_alternative_routes`][google.maps.routing.v2.ComputeRoutesRequest.compute_alternative_routes]
41
41
  // is specified.
42
42
  DEFAULT_ROUTE_ALTERNATE = 2;
43
43
 
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -34,22 +34,22 @@ option ruby_package = "Google::Maps::Routing::V2";
34
34
  message RouteModifiers {
35
35
  // When set to true, avoids toll roads where reasonable, giving preference to
36
36
  // routes not containing toll roads. Applies only to the `DRIVE` and
37
- // `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
37
+ // `TWO_WHEELER` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
38
38
  bool avoid_tolls = 1;
39
39
 
40
40
  // When set to true, avoids highways where reasonable, giving preference to
41
41
  // routes not containing highways. Applies only to the `DRIVE` and
42
- // `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
42
+ // `TWO_WHEELER` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
43
43
  bool avoid_highways = 2;
44
44
 
45
45
  // When set to true, avoids ferries where reasonable, giving preference to
46
46
  // routes not containing ferries. Applies only to the `DRIVE` and`TWO_WHEELER`
47
- // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
47
+ // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
48
48
  bool avoid_ferries = 3;
49
49
 
50
50
  // When set to true, avoids navigating indoors where reasonable, giving
51
51
  // preference to routes not containing indoor navigation. Applies only to the
52
- // `WALK` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
52
+ // `WALK` [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
53
53
  bool avoid_indoor = 4;
54
54
 
55
55
  // Specifies the vehicle information.
@@ -60,6 +60,6 @@ message RouteModifiers {
60
60
  // toll passes are not provided, the API treats the toll pass as unknown and
61
61
  // tries to return the cash price.
62
62
  // Applies only to the `DRIVE` and `TWO_WHEELER`
63
- // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
63
+ // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
64
64
  repeated TollPass toll_passes = 6;
65
65
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -56,7 +56,7 @@ service Routes {
56
56
  // the input. You can provide the response field mask by using URL parameter
57
57
  // `$fields` or `fields`, or by using an HTTP/gRPC header `X-Goog-FieldMask`
58
58
  // (see the [available URL parameters and
59
- // headers](https://cloud.google.com/apis/docs/system-parameters). The value
59
+ // headers](https://cloud.google.com/apis/docs/system-parameters)). The value
60
60
  // is a comma separated list of field paths. See detailed documentation about
61
61
  // [how to construct the field
62
62
  // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).
@@ -98,9 +98,9 @@ service Routes {
98
98
  // the input. You can provide the response field mask by using the URL
99
99
  // parameter `$fields` or `fields`, or by using the HTTP/gRPC header
100
100
  // `X-Goog-FieldMask` (see the [available URL parameters and
101
- // headers](https://cloud.google.com/apis/docs/system-parameters). The value
102
- // is a comma separated list of field paths. See this detailed documentation
103
- // about [how to construct the field
101
+ // headers](https://cloud.google.com/apis/docs/system-parameters)).
102
+ // The value is a comma separated list of field paths. See this detailed
103
+ // documentation about [how to construct the field
104
104
  // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto).
105
105
  //
106
106
  // For example, in this method:
@@ -161,8 +161,7 @@ message ComputeRoutesRequest {
161
161
  // Traffic aware polylines for the route(s).
162
162
  TRAFFIC_ON_POLYLINE = 3;
163
163
 
164
- // [Navigation
165
- // Instructions][google.maps.routing.v2.NavigationInstructions.instructions]
164
+ // [`NavigationInstructions`](google.maps.routing.v2.NavigationInstructions.instructions)
166
165
  // presented as a formatted HTML text string. This content
167
166
  // is meant to be read as-is. This content is for display only.
168
167
  // Do not programmatically parse it.
@@ -201,16 +200,18 @@ message ComputeRoutesRequest {
201
200
  // Optional. The departure time. If you don't set this value, then this value
202
201
  // defaults to the time that you made the request.
203
202
  // NOTE: You can only specify a `departure_time` in the past when
204
- // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
205
- // `TRANSIT`.
203
+ // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to
204
+ // `TRANSIT`. Transit trips are available for up to 7 days in the past or 100
205
+ // days in the future.
206
206
  google.protobuf.Timestamp departure_time = 7
207
207
  [(google.api.field_behavior) = OPTIONAL];
208
208
 
209
209
  // Optional. The arrival time.
210
210
  // NOTE: Can only be set when
211
211
  // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
212
- // `TRANSIT`. You can specify either departure_time or arrival_time, but not
213
- // both.
212
+ // `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but
213
+ // not both. Transit trips are available for up to 7 days in the past or 100
214
+ // days in the future.
214
215
  google.protobuf.Timestamp arrival_time = 19
215
216
  [(google.api.field_behavior) = OPTIONAL];
216
217
 
@@ -224,23 +225,24 @@ message ComputeRoutesRequest {
224
225
  RouteModifiers route_modifiers = 9 [(google.api.field_behavior) = OPTIONAL];
225
226
 
226
227
  // Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
227
- // information, see
228
- // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. See
229
- // [Language Support](https://developers.google.com/maps/faq#languagesupport)
228
+ // information, see [Unicode Locale
229
+ // Identifier](http://www.unicode.org/reports/tr35/#Unicode_locale_identifier).
230
+ // See [Language
231
+ // Support](https://developers.google.com/maps/faq#languagesupport)
230
232
  // for the list of supported languages. When you don't provide this value, the
231
233
  // display language is inferred from the location of the route request.
232
234
  string language_code = 10 [(google.api.field_behavior) = OPTIONAL];
233
235
 
234
236
  // Optional. The region code, specified as a ccTLD ("top-level domain")
235
- // two-character value. For more information see
236
- // https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains
237
+ // two-character value. For more information see [Country code top-level
238
+ // domains](https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains).
237
239
  string region_code = 16 [(google.api.field_behavior) = OPTIONAL];
238
240
 
239
241
  // Optional. Specifies the units of measure for the display fields. These
240
242
  // fields include the `instruction` field in
241
- // [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
242
- // units of measure used for the route, leg, step distance, and duration are
243
- // not affected by this value. If you don't provide this value, then the
243
+ // [`NavigationInstruction`][google.maps.routing.v2.NavigationInstruction].
244
+ // The units of measure used for the route, leg, step distance, and duration
245
+ // are not affected by this value. If you don't provide this value, then the
244
246
  // display units are inferred from the location of the first origin.
245
247
  Units units = 11 [(google.api.field_behavior) = OPTIONAL];
246
248
 
@@ -273,20 +275,21 @@ message ComputeRoutesRequest {
273
275
 
274
276
  // Optional. Specifies the assumptions to use when calculating time in
275
277
  // traffic. This setting affects the value returned in the duration field in
276
- // the [Route][google.maps.routing.v2.Route] and
277
- // [RouteLeg][google.maps.routing.v2.RouteLeg] which contains the predicted
278
+ // the
279
+ // [`Route`][google.maps.routing.v2.Route] and
280
+ // [`RouteLeg`][google.maps.routing.v2.RouteLeg] which contains the predicted
278
281
  // time in traffic based on historical averages.
279
282
  // `TrafficModel` is only available for requests that have set
280
- // [RoutingPreference][google.maps.routing.v2.RoutingPreference] to
283
+ // [`RoutingPreference`][google.maps.routing.v2.RoutingPreference] to
281
284
  // `TRAFFIC_AWARE_OPTIMAL` and
282
- // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
285
+ // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] to `DRIVE`.
283
286
  // Defaults to `BEST_GUESS` if traffic is requested and `TrafficModel` is not
284
287
  // specified.
285
288
  TrafficModel traffic_model = 18 [(google.api.field_behavior) = OPTIONAL];
286
289
 
287
290
  // Optional. Specifies preferences that influence the route returned for
288
291
  // `TRANSIT` routes. NOTE: You can only specify a `transit_preferences` when
289
- // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
292
+ // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to
290
293
  // `TRANSIT`.
291
294
  TransitPreferences transit_preferences = 20
292
295
  [(google.api.field_behavior) = OPTIONAL];
@@ -295,7 +298,7 @@ message ComputeRoutesRequest {
295
298
  // ComputeRoutes the response message.
296
299
  message ComputeRoutesResponse {
297
300
  // Contains an array of computed routes (up to three) when you specify
298
- // compute_alternatives_routes, and contains just one route when you don't.
301
+ // `compute_alternatives_routes`, and contains just one route when you don't.
299
302
  // When this array contains multiple entries, the first one is the most
300
303
  // recommended route. If the array is empty, then it means no route could be
301
304
  // found.
@@ -326,12 +329,14 @@ message ComputeRouteMatrixRequest {
326
329
  // matrix. Several size restrictions apply to the cardinality of origins and
327
330
  // destinations:
328
331
  //
329
- // * The number of elements (origins × destinations) must be no greater than
330
- // 625 in any case.
331
- // * The number of elements (origins × destinations) must be no greater than
332
- // 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`.
333
- // * The number of waypoints (origins + destinations) specified as `place_id`
334
- // must be no greater than 50.
332
+ // * The sum of the number of origins + the number of destinations specified
333
+ // as either `place_id` or `address` must be no greater than 50.
334
+ // * The product of number of origins × number of destinations must be no
335
+ // greater than 625 in any case.
336
+ // * The product of the number of origins × number of destinations must be no
337
+ // greater than 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`.
338
+ // * The product of the number of origins × number of destinations must be no
339
+ // greater than 100 if travel_mode is set to `TRANSIT`.
335
340
  repeated RouteMatrixOrigin origins = 1
336
341
  [(google.api.field_behavior) = REQUIRED];
337
342
 
@@ -354,32 +359,36 @@ message ComputeRouteMatrixRequest {
354
359
  // Optional. The departure time. If you don't set this value, then this value
355
360
  // defaults to the time that you made the request.
356
361
  // NOTE: You can only specify a `departure_time` in the past when
357
- // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
362
+ // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to
358
363
  // `TRANSIT`.
359
364
  google.protobuf.Timestamp departure_time = 5
360
365
  [(google.api.field_behavior) = OPTIONAL];
361
366
 
362
367
  // Optional. The arrival time.
363
368
  // NOTE: Can only be set when
364
- // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] is set to
365
- // `TRANSIT`. You can specify either departure_time or arrival_time, but not
366
- // both.
369
+ // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode] is set to
370
+ // `TRANSIT`. You can specify either `departure_time` or `arrival_time`, but
371
+ // not both.
367
372
  google.protobuf.Timestamp arrival_time = 11
368
373
  [(google.api.field_behavior) = OPTIONAL];
369
374
 
370
375
  // Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
371
- // information, see
372
- // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. See
373
- // [Language Support](https://developers.google.com/maps/faq#languagesupport)
376
+ // information, see [Unicode Locale
377
+ // Identifier](http://www.unicode.org/reports/tr35/#Unicode_locale_identifier).
378
+ // See [Language
379
+ // Support](https://developers.google.com/maps/faq#languagesupport)
374
380
  // for the list of supported languages. When you don't provide this value, the
375
381
  // display language is inferred from the location of the first origin.
376
382
  string language_code = 6 [(google.api.field_behavior) = OPTIONAL];
377
383
 
378
384
  // Optional. The region code, specified as a ccTLD ("top-level domain")
379
- // two-character value. For more information see
380
- // https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains
385
+ // two-character value. For more information see [Country code top-level
386
+ // domains](https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains).
381
387
  string region_code = 9 [(google.api.field_behavior) = OPTIONAL];
382
388
 
389
+ // Optional. Specifies the units of measure for the display fields.
390
+ Units units = 7 [(google.api.field_behavior) = OPTIONAL];
391
+
383
392
  // Optional. A list of extra computations which may be used to complete the
384
393
  // request. Note: These extra computations may return extra fields on the
385
394
  // response. These extra fields must also be specified in the field mask to be
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -35,9 +35,11 @@ enum RoutingPreference {
35
35
  // Computes routes without taking live traffic conditions into consideration.
36
36
  // Suitable when traffic conditions don't matter or are not applicable.
37
37
  // Using this value produces the lowest latency.
38
- // Note: For [RouteTravelMode][google.maps.routing.v2.RouteTravelMode] `DRIVE`
39
- // and `TWO_WHEELER` choice of route and duration are based on road network
40
- // and average time-independent traffic conditions. Results for a given
38
+ // Note: For [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode]
39
+ // `DRIVE` and `TWO_WHEELER`, the route and duration chosen are based on road
40
+ // network and average time-independent traffic conditions, not current road
41
+ // conditions. Consequently, routes may include roads that are temporarily
42
+ // closed. Results for a given
41
43
  // request may vary over time due to changes in the road network, updated
42
44
  // average traffic conditions, and the distributed nature of the service.
43
45
  // Results may also vary between nearly-equivalent routes at any time or
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -28,8 +28,8 @@ option ruby_package = "Google::Maps::Routing::V2";
28
28
 
29
29
  // Traffic density indicator on a contiguous segment of a polyline or path.
30
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.
31
+ // `SpeedReadingInterval` defines an interval and describes its traffic using
32
+ // the following categories.
33
33
  message SpeedReadingInterval {
34
34
  // The classification of polyline speed based on traffic data.
35
35
  enum Speed {
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -28,12 +28,12 @@ option objc_class_prefix = "GMRV2";
28
28
  option php_namespace = "Google\\Maps\\Routing\\V2";
29
29
  option ruby_package = "Google::Maps::Routing::V2";
30
30
 
31
- // Encapsulates toll information on a [Route][google.maps.routing.v2.Route] or
32
- // on a [RouteLeg][google.maps.routing.v2.RouteLeg].
31
+ // Encapsulates toll information on a [`Route`][google.maps.routing.v2.Route] or
32
+ // on a [`RouteLeg`][google.maps.routing.v2.RouteLeg].
33
33
  message TollInfo {
34
34
  // The monetary amount of tolls for the corresponding
35
- // [Route][google.maps.routing.v2.Route] or
36
- // [RouteLeg][google.maps.routing.v2.RouteLeg]. This list contains a money
35
+ // [`Route`][google.maps.routing.v2.Route] or
36
+ // [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
37
37
  // amount for each currency that is expected to be charged by the toll
38
38
  // stations. Typically this list will contain only one item for routes with
39
39
  // tolls in one currency. For international trips, this list may contain
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -31,7 +31,8 @@ enum TollPass {
31
31
  // Not used. If this value is used, then the request fails.
32
32
  TOLL_PASS_UNSPECIFIED = 0;
33
33
 
34
- // Sydney toll pass. See additional details at https://www.myetoll.com.au.
34
+ // Sydney toll pass. See additional details at
35
+ // https://www.myetoll.com.au.
35
36
  AU_ETOLL_TAG = 82;
36
37
 
37
38
  // Sydney toll pass. See additional details at https://www.tollpay.com.au.
@@ -95,6 +96,17 @@ enum TollPass {
95
96
  // India, HP state plate exemption.
96
97
  IN_LOCAL_HP_PLATE_EXEMPT = 79;
97
98
 
99
+ // Japan
100
+ // ETC. Electronic wireless system to collect tolls.
101
+ // https://www.go-etc.jp/
102
+ JP_ETC = 98;
103
+
104
+ // Japan
105
+ // ETC2.0. New version of ETC with further discount and bidirectional
106
+ // communication between devices on vehicles and antennas on the road.
107
+ // https://www.go-etc.jp/etc2/index.html
108
+ JP_ETC2 = 99;
109
+
98
110
  // Mexico toll pass.
99
111
  // https://iave.capufe.gob.mx/#/
100
112
  MX_IAVE = 90;
@@ -329,6 +341,9 @@ enum TollPass {
329
341
  // WV, USA.
330
342
  US_WV_MEMORIAL_BRIDGE_TICKETS = 63;
331
343
 
344
+ // WV, USA
345
+ US_WV_MOV_PASS = 100;
346
+
332
347
  // WV, USA.
333
348
  US_WV_NEWELL_TOLL_BRIDGE_TICKET = 64;
334
349
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2023 Google LLC
1
+ // Copyright 2024 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.