@googlemaps/routing 0.4.0 → 0.5.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 (27) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/protos/google/maps/routing/v2/fallback_info.proto +6 -5
  3. package/build/protos/google/maps/routing/v2/geocoding_results.proto +3 -2
  4. package/build/protos/google/maps/routing/v2/location.proto +3 -2
  5. package/build/protos/google/maps/routing/v2/maneuver.proto +1 -1
  6. package/build/protos/google/maps/routing/v2/navigation_instruction.proto +1 -1
  7. package/build/protos/google/maps/routing/v2/polyline.proto +1 -1
  8. package/build/protos/google/maps/routing/v2/route.proto +10 -9
  9. package/build/protos/google/maps/routing/v2/route_label.proto +6 -5
  10. package/build/protos/google/maps/routing/v2/route_modifiers.proto +9 -6
  11. package/build/protos/google/maps/routing/v2/route_travel_mode.proto +3 -3
  12. package/build/protos/google/maps/routing/v2/routes_service.proto +30 -10
  13. package/build/protos/google/maps/routing/v2/routing_preference.proto +8 -7
  14. package/build/protos/google/maps/routing/v2/speed_reading_interval.proto +5 -3
  15. package/build/protos/google/maps/routing/v2/toll_info.proto +10 -8
  16. package/build/protos/google/maps/routing/v2/toll_passes.proto +4 -1
  17. package/build/protos/google/maps/routing/v2/units.proto +1 -1
  18. package/build/protos/google/maps/routing/v2/vehicle_emission_type.proto +4 -3
  19. package/build/protos/google/maps/routing/v2/vehicle_info.proto +2 -2
  20. package/build/protos/google/maps/routing/v2/waypoint.proto +13 -12
  21. package/build/protos/protos.d.ts +23 -1
  22. package/build/protos/protos.js +96 -6
  23. package/build/protos/protos.json +27 -0
  24. package/build/src/v2/routes_client.d.ts +21 -5
  25. package/build/src/v2/routes_client.js +11 -0
  26. package/build/src/v2/routes_client.js.map +1 -1
  27. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.0](https://github.com/googleapis/google-cloud-node/compare/routing-v0.4.0...routing-v0.5.0) (2023-03-28)
4
+
5
+
6
+ ### Features
7
+
8
+ * [routing] adds support for specifying region_code in the ComputeRoutesRequest ([#4103](https://github.com/googleapis/google-cloud-node/issues/4103)) ([1106a82](https://github.com/googleapis/google-cloud-node/commit/1106a824dbddc7296f069a0a3e063b0ec9fc914f))
9
+ * [routing] moved speed in SpeedReadingInterval into a oneof speed_type, this is a breaking change for Go client libraries ([#4121](https://github.com/googleapis/google-cloud-node/issues/4121)) ([9878d72](https://github.com/googleapis/google-cloud-node/commit/9878d722f634f356590014ea8f2f035bb1b134db))
10
+
3
11
  ## [0.4.0](https://github.com/googleapis/google-cloud-node/compare/routing-v0.3.1...routing-v0.4.0) (2023-03-13)
4
12
 
5
13
 
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 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,11 +62,12 @@ enum FallbackRoutingMode {
62
62
  // Not used.
63
63
  FALLBACK_ROUTING_MODE_UNSPECIFIED = 0;
64
64
 
65
- // Indicates the "TRAFFIC_UNAWARE" routing mode was used to compute the
66
- // response.
65
+ // Indicates the `TRAFFIC_UNAWARE` [google.maps.routing.v2.RoutingPreference]
66
+ // was used to compute the response.
67
67
  FALLBACK_TRAFFIC_UNAWARE = 1;
68
68
 
69
- // Indicates the "TRAFFIC_AWARE" routing mode was used to compute the
70
- // response.
69
+ // Indicates the `TRAFFIC_AWARE`
70
+ // [RoutingPreference][google.maps.routing.v2.RoutingPreference] was used to
71
+ // compute the response.
71
72
  FALLBACK_TRAFFIC_AWARE = 2;
72
73
  }
@@ -28,8 +28,9 @@ 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 for origin, destination and intermediate
32
- // waypoints. Only populated for address waypoints.
31
+ // Contains [GeocodedWaypoints][google.maps.routing.v2.GeocodedWaypoint] for
32
+ // origin, destination and intermediate waypoints. Only populated for address
33
+ // waypoints.
33
34
  message GeocodingResults {
34
35
  // Origin geocoded waypoint.
35
36
  GeocodedWaypoint origin = 1;
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 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.
@@ -38,6 +38,7 @@ message Location {
38
38
  // This value is used to specify the side of the road to use for pickup and
39
39
  // drop-off. Heading values can be from 0 to 360, where 0 specifies a heading
40
40
  // of due North, 90 specifies a heading of due East, etc. You can use this
41
- // field only for `DRIVE` and `TWO_WHEELER` travel modes.
41
+ // field only for `DRIVE` and `TWO_WHEELER`
42
+ // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
42
43
  google.protobuf.Int32Value heading = 2;
43
44
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 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 2022 Google LLC
1
+ // Copyright 2023 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 2022 Google LLC
1
+ // Copyright 2023 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 2022 Google LLC
1
+ // Copyright 2023 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.
@@ -43,12 +43,12 @@ message Route {
43
43
  repeated RouteLabel route_labels = 13;
44
44
 
45
45
  // A collection of legs (path segments between waypoints) that make-up the
46
- // route. Each leg corresponds to the trip between two non-`via` Waypoints.
47
- // For example, a route with no intermediate waypoints has only one leg. A
48
- // route that includes one non-`via` intermediate waypoint has two legs. A
49
- // route that includes one `via` intermediate waypoint has one leg. The order
50
- // of the legs matches the order of Waypoints from `origin` to `intermediates`
51
- // to `destination`.
46
+ // route. Each leg corresponds to the trip between two non-`via`
47
+ // [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no
48
+ // intermediate waypoints has only one leg. A route that includes one
49
+ // non-`via` intermediate waypoint has two legs. A route that includes one
50
+ // `via` intermediate waypoint has one leg. The order of the legs matches the
51
+ // order of Waypoints from `origin` to `intermediates` to `destination`.
52
52
  repeated RouteLeg legs = 1;
53
53
 
54
54
  // The travel distance of the route, in meters.
@@ -188,8 +188,9 @@ message RouteLeg {
188
188
  RouteLegTravelAdvisory travel_advisory = 8;
189
189
  }
190
190
 
191
- // Encapsulates a segment of a `RouteLeg`. A step corresponds to a single
192
- // navigation instruction. Route legs are made up of steps.
191
+ // Encapsulates a segment of a [RouteLeg][google.maps.routing.v2.RouteLeg]. A
192
+ // step corresponds to a single navigation instruction. Route legs are made up
193
+ // of steps.
193
194
  message RouteLegStep {
194
195
  // The travel distance of this step, in meters. In some circumstances, this
195
196
  // field might not have a value.
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 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,8 +26,8 @@ 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` that are useful to identify specific properties
30
- // of the route to compare against others.
29
+ // Labels for the [Route][google.maps.routing.v2.Route] that are useful to
30
+ // identify specific properties of the route to compare against others.
31
31
  enum RouteLabel {
32
32
  // Default - not used.
33
33
  ROUTE_LABEL_UNSPECIFIED = 0;
@@ -36,8 +36,9 @@ enum RouteLabel {
36
36
  DEFAULT_ROUTE = 1;
37
37
 
38
38
  // An alternative to the default "best" route. Routes like this will be
39
- // returned when `ComputeRoutesRequest.compute_alternative_routes` is
40
- // specified.
39
+ // returned when
40
+ // [compute_alternative_routes][google.maps.routing.v2.ComputeRoutesRequest.compute_alternative_routes]
41
+ // is specified.
41
42
  DEFAULT_ROUTE_ALTERNATE = 2;
42
43
 
43
44
  // Fuel efficient route. Routes labeled with this value are determined to be
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 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,24 @@ option ruby_package = "Google::Maps::Routing::V2";
34
34
  message RouteModifiers {
35
35
  // Specifies whether to avoid toll roads where reasonable. Preference will be
36
36
  // given to routes not containing toll roads. Applies only to the `DRIVE` and
37
- // `TWO_WHEELER` travel modes.
37
+ // `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
38
38
  bool avoid_tolls = 1;
39
39
 
40
40
  // Specifies whether to avoid highways where reasonable. Preference will be
41
41
  // given to routes not containing highways. Applies only to the `DRIVE` and
42
- // `TWO_WHEELER` travel modes.
42
+ // `TWO_WHEELER` [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
43
43
  bool avoid_highways = 2;
44
44
 
45
45
  // Specifies whether to avoid ferries where reasonable. Preference will be
46
46
  // given to routes not containing travel by ferries.
47
- // Applies only to the `DRIVE` and`TWO_WHEELER` travel modes.
47
+ // Applies only to the `DRIVE` and`TWO_WHEELER`
48
+ // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
48
49
  bool avoid_ferries = 3;
49
50
 
50
51
  // Specifies whether to avoid navigating indoors where reasonable. Preference
51
52
  // will be given to routes not containing indoor navigation.
52
- // Applies only to the `WALK` travel mode.
53
+ // Applies only to the `WALK`
54
+ // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
53
55
  bool avoid_indoor = 4;
54
56
 
55
57
  // Specifies the vehicle information.
@@ -59,6 +61,7 @@ message RouteModifiers {
59
61
  // If toll passes are provided, the API tries to return the pass price. If
60
62
  // toll passes are not provided, the API treats the toll pass as unknown and
61
63
  // tries to return the cash price.
62
- // Applies only to the DRIVE and TWO_WHEELER travel modes.
64
+ // Applies only to the `DRIVE` and `TWO_WHEELER`
65
+ // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
63
66
  repeated TollPass toll_passes = 6;
64
67
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 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,8 +27,8 @@ option php_namespace = "Google\\Maps\\Routing\\V2";
27
27
  option ruby_package = "Google::Maps::Routing::V2";
28
28
 
29
29
  // A set of values used to specify the mode of travel.
30
- // NOTE: WALK, BICYCLE, and TWO_WHEELER routes are in beta and might sometimes
31
- // be missing clear sidewalks, pedestrian paths, or bicycling paths.
30
+ // NOTE: `WALK`, `BICYCLE`, and `TWO_WHEELER` routes are in beta and might
31
+ // sometimes be missing clear sidewalks, pedestrian paths, or bicycling paths.
32
32
  // You must display this warning to the user for all walking, bicycling, and
33
33
  // two-wheel routes that you display in your app.
34
34
  enum RouteTravelMode {
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 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.
@@ -211,17 +211,23 @@ message ComputeRoutesRequest {
211
211
  // display language is inferred from the location of the route request.
212
212
  string language_code = 10 [(google.api.field_behavior) = OPTIONAL];
213
213
 
214
+ // Optional. The region code, specified as a ccTLD ("top-level domain")
215
+ // two-character value. For more information see
216
+ // https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains
217
+ string region_code = 16 [(google.api.field_behavior) = OPTIONAL];
218
+
214
219
  // Optional. Specifies the units of measure for the display fields. This
215
- // includes the `instruction` field in `NavigationInstruction`. The units of
216
- // measure used for the route, leg, step distance, and duration are not
217
- // affected by this value. If you don't provide this value, then the display
218
- // units are inferred from the location of the request.
220
+ // includes the `instruction` field in
221
+ // [NavigationInstruction][google.maps.routing.v2.NavigationInstruction]. The
222
+ // units of measure used for the route, leg, step distance, and duration are
223
+ // not affected by this value. If you don't provide this value, then the
224
+ // display units are inferred from the location of the request.
219
225
  Units units = 11 [(google.api.field_behavior) = OPTIONAL];
220
226
 
221
227
  // Optional. Specifies what reference routes to calculate as part of the
222
228
  // request in addition to the default route. A reference route is a route with
223
229
  // a different route calculation objective than the default route. For example
224
- // an FUEL_EFFICIENT reference route calculation takes into account various
230
+ // a `FUEL_EFFICIENT` reference route calculation takes into account various
225
231
  // parameters that would generate an optimal fuel efficient route.
226
232
  repeated ReferenceRoute requested_reference_routes = 14
227
233
  [(google.api.field_behavior) = OPTIONAL];
@@ -299,6 +305,19 @@ message ComputeRouteMatrixRequest {
299
305
  google.protobuf.Timestamp departure_time = 5
300
306
  [(google.api.field_behavior) = OPTIONAL];
301
307
 
308
+ // Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
309
+ // information, see
310
+ // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. See
311
+ // [Language Support](https://developers.google.com/maps/faq#languagesupport)
312
+ // for the list of supported languages. When you don't provide this value, the
313
+ // display language is inferred from the location of the first origin.
314
+ string language_code = 6 [(google.api.field_behavior) = OPTIONAL];
315
+
316
+ // Optional. The region code, specified as a ccTLD ("top-level domain")
317
+ // two-character value. For more information see
318
+ // https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains
319
+ string region_code = 9 [(google.api.field_behavior) = OPTIONAL];
320
+
302
321
  // Optional. A list of extra computations which may be used to complete the
303
322
  // request. Note: These extra computations may return extra fields on the
304
323
  // response. These extra fields must also be specified in the field mask to be
@@ -341,10 +360,11 @@ message RouteMatrixElement {
341
360
  int32 distance_meters = 4;
342
361
 
343
362
  // The length of time needed to navigate the route. If you set the
344
- // `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
345
- // `static_duration`. If you set the `routing_preference` to either
346
- // `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
347
- // taking traffic conditions into account.
363
+ // [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.routing_preference]
364
+ // to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If
365
+ // you set the `routing_preference` to either `TRAFFIC_AWARE` or
366
+ // `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic
367
+ // conditions into account.
348
368
  google.protobuf.Duration duration = 5;
349
369
 
350
370
  // The duration of traveling through the route without taking traffic
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 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,12 +35,13 @@ 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` 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.
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
41
+ // request may vary over time due to changes in the road network, updated
42
+ // average traffic conditions, and the distributed nature of the service.
43
+ // Results may also vary between nearly-equivalent routes at any time or
44
+ // frequency.
44
45
  TRAFFIC_UNAWARE = 1;
45
46
 
46
47
  // Calculates routes taking live traffic conditions into consideration.
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 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.
@@ -52,6 +52,8 @@ message SpeedReadingInterval {
52
52
  // The ending index of this interval in the polyline.
53
53
  optional int32 end_polyline_point_index = 2;
54
54
 
55
- // Traffic speed in this interval.
56
- Speed speed = 3;
55
+ oneof speed_type {
56
+ // Traffic speed in this interval.
57
+ Speed speed = 3;
58
+ }
57
59
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 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,13 +28,15 @@ 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` or on a `RouteLeg`.
31
+ // Encapsulates toll information on a [Route][google.maps.routing.v2.Route] or
32
+ // on a [RouteLeg][google.maps.routing.v2.RouteLeg].
32
33
  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.
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
37
+ // amount for each currency that is expected to be charged by the toll
38
+ // stations. Typically this list will contain only one item for routes with
39
+ // tolls in one currency. For international trips, this list may contain
40
+ // multiple items to reflect tolls in different currencies.
39
41
  repeated google.type.Money estimated_price = 1;
40
42
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 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.
@@ -211,6 +211,9 @@ enum TollPass {
211
211
  // MI, USA.
212
212
  US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD = 36;
213
213
 
214
+ // MI, USA.
215
+ US_MI_BCPASS = 94;
216
+
214
217
  // MI, USA.
215
218
  US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG = 37;
216
219
 
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 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 2022 Google LLC
1
+ // Copyright 2023 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,9 +27,10 @@ option php_namespace = "Google\\Maps\\Routing\\V2";
27
27
  option ruby_package = "Google::Maps::Routing::V2";
28
28
 
29
29
  // A set of values describing the vehicle's emission type.
30
- // Applies only to the DRIVE travel mode.
30
+ // Applies only to the `DRIVE`
31
+ // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
31
32
  enum VehicleEmissionType {
32
- // No emission type specified. Default to GASOLINE.
33
+ // No emission type specified. Default to `GASOLINE`.
33
34
  VEHICLE_EMISSION_TYPE_UNSPECIFIED = 0;
34
35
 
35
36
  // Gasoline/petrol fueled vehicle.
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 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.
@@ -32,6 +32,6 @@ option ruby_package = "Google::Maps::Routing::V2";
32
32
  // character.
33
33
  message VehicleInfo {
34
34
  // Describes the vehicle's emission type.
35
- // Applies only to the DRIVE travel mode.
35
+ // Applies only to the `DRIVE` travel mode.
36
36
  VehicleEmissionType emission_type = 2;
37
37
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 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.
@@ -47,22 +47,23 @@ message Waypoint {
47
47
 
48
48
  // Marks this waypoint as a milestone rather a stopping point. For
49
49
  // each non-via waypoint in the request, the response appends an entry to the
50
- // `legs` array to provide the details for stopovers on that leg of the
51
- // trip. Set this value to true when you want the route to pass through this
52
- // waypoint without stopping over. Via waypoints don't cause an entry to be
53
- // added to the `legs` array, but they do route the journey through the
54
- // waypoint. You can only set this value on waypoints that are intermediates.
55
- // The request fails if you set this field on terminal waypoints.
56
- // If `ComputeRoutesRequest.optimize_waypoint_order`
57
- // is set to true then this field cannot be set to
58
- // true; otherwise, the request fails.
50
+ // [legs][google.maps.routing.v2.Route.legs]
51
+ // array to provide the details for stopovers on that leg of the trip. Set
52
+ // this value to true when you want the route to pass through this waypoint
53
+ // without stopping over. Via waypoints don't cause an entry to be added to
54
+ // the `legs` array, but they do route the journey through the waypoint. You
55
+ // can only set this value on waypoints that are intermediates. The request
56
+ // fails if you set this field on terminal waypoints. If
57
+ // `ComputeRoutesRequest.optimize_waypoint_order` is set to true then this
58
+ // field cannot be set to true; otherwise, the request fails.
59
59
  bool via = 3;
60
60
 
61
61
  // Indicates that the waypoint is meant for vehicles to stop at, where the
62
62
  // intention is to either pickup or drop-off. When you set this value, the
63
63
  // calculated route won't include non-`via` waypoints on roads that are
64
64
  // unsuitable for pickup and drop-off. This option works only for `DRIVE` and
65
- // `TWO_WHEELER` travel modes, and when the `location_type` is `location`.
65
+ // `TWO_WHEELER` travel modes, and when the `location_type` is
66
+ // [Location][google.maps.routing.v2.Location].
66
67
  bool vehicle_stopover = 4;
67
68
 
68
69
  // Indicates that the location of this waypoint is meant to have a preference
@@ -70,6 +71,6 @@ message Waypoint {
70
71
  // value, the route will pass through the location so that the vehicle can
71
72
  // stop at the side of road that the location is biased towards from the
72
73
  // center of the road. This option works only for 'DRIVE' and 'TWO_WHEELER'
73
- // travel modes.
74
+ // [RouteTravelMode][google.maps.routing.v2.RouteTravelMode].
74
75
  bool side_of_road = 5;
75
76
  }
@@ -6727,7 +6727,7 @@ export namespace google {
6727
6727
  public endPolylinePointIndex?: (number|null);
6728
6728
 
6729
6729
  /** SpeedReadingInterval speed. */
6730
- public speed: (google.maps.routing.v2.SpeedReadingInterval.Speed|keyof typeof google.maps.routing.v2.SpeedReadingInterval.Speed);
6730
+ public speed?: (google.maps.routing.v2.SpeedReadingInterval.Speed|keyof typeof google.maps.routing.v2.SpeedReadingInterval.Speed|null);
6731
6731
 
6732
6732
  /** SpeedReadingInterval _startPolylinePointIndex. */
6733
6733
  public _startPolylinePointIndex?: "startPolylinePointIndex";
@@ -6735,6 +6735,9 @@ export namespace google {
6735
6735
  /** SpeedReadingInterval _endPolylinePointIndex. */
6736
6736
  public _endPolylinePointIndex?: "endPolylinePointIndex";
6737
6737
 
6738
+ /** SpeedReadingInterval speedType. */
6739
+ public speedType?: "speed";
6740
+
6738
6741
  /**
6739
6742
  * Creates a new SpeedReadingInterval instance using the specified properties.
6740
6743
  * @param [properties] Properties to set
@@ -7106,6 +7109,7 @@ export namespace google {
7106
7109
  US_MD_EZPASSMD = 34,
7107
7110
  US_ME_EZPASSME = 35,
7108
7111
  US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD = 36,
7112
+ US_MI_BCPASS = 94,
7109
7113
  US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG = 37,
7110
7114
  US_MI_IQ_PROX_CARD = 38,
7111
7115
  US_MI_MACKINAC_BRIDGE_MAC_PASS = 39,
@@ -7361,6 +7365,9 @@ export namespace google {
7361
7365
  /** ComputeRoutesRequest languageCode */
7362
7366
  languageCode?: (string|null);
7363
7367
 
7368
+ /** ComputeRoutesRequest regionCode */
7369
+ regionCode?: (string|null);
7370
+
7364
7371
  /** ComputeRoutesRequest units */
7365
7372
  units?: (google.maps.routing.v2.Units|keyof typeof google.maps.routing.v2.Units|null);
7366
7373
 
@@ -7413,6 +7420,9 @@ export namespace google {
7413
7420
  /** ComputeRoutesRequest languageCode. */
7414
7421
  public languageCode: string;
7415
7422
 
7423
+ /** ComputeRoutesRequest regionCode. */
7424
+ public regionCode: string;
7425
+
7416
7426
  /** ComputeRoutesRequest units. */
7417
7427
  public units: (google.maps.routing.v2.Units|keyof typeof google.maps.routing.v2.Units);
7418
7428
 
@@ -7644,6 +7654,12 @@ export namespace google {
7644
7654
  /** ComputeRouteMatrixRequest departureTime */
7645
7655
  departureTime?: (google.protobuf.ITimestamp|null);
7646
7656
 
7657
+ /** ComputeRouteMatrixRequest languageCode */
7658
+ languageCode?: (string|null);
7659
+
7660
+ /** ComputeRouteMatrixRequest regionCode */
7661
+ regionCode?: (string|null);
7662
+
7647
7663
  /** ComputeRouteMatrixRequest extraComputations */
7648
7664
  extraComputations?: (google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation[]|null);
7649
7665
  }
@@ -7672,6 +7688,12 @@ export namespace google {
7672
7688
  /** ComputeRouteMatrixRequest departureTime. */
7673
7689
  public departureTime?: (google.protobuf.ITimestamp|null);
7674
7690
 
7691
+ /** ComputeRouteMatrixRequest languageCode. */
7692
+ public languageCode: string;
7693
+
7694
+ /** ComputeRouteMatrixRequest regionCode. */
7695
+ public regionCode: string;
7696
+
7675
7697
  /** ComputeRouteMatrixRequest extraComputations. */
7676
7698
  public extraComputations: google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation[];
7677
7699
 
@@ -17812,11 +17812,11 @@
17812
17812
 
17813
17813
  /**
17814
17814
  * SpeedReadingInterval speed.
17815
- * @member {google.maps.routing.v2.SpeedReadingInterval.Speed} speed
17815
+ * @member {google.maps.routing.v2.SpeedReadingInterval.Speed|null|undefined} speed
17816
17816
  * @memberof google.maps.routing.v2.SpeedReadingInterval
17817
17817
  * @instance
17818
17818
  */
17819
- SpeedReadingInterval.prototype.speed = 0;
17819
+ SpeedReadingInterval.prototype.speed = null;
17820
17820
 
17821
17821
  // OneOf field names bound to virtual getters and setters
17822
17822
  var $oneOfFields;
@@ -17843,6 +17843,17 @@
17843
17843
  set: $util.oneOfSetter($oneOfFields)
17844
17844
  });
17845
17845
 
17846
+ /**
17847
+ * SpeedReadingInterval speedType.
17848
+ * @member {"speed"|undefined} speedType
17849
+ * @memberof google.maps.routing.v2.SpeedReadingInterval
17850
+ * @instance
17851
+ */
17852
+ Object.defineProperty(SpeedReadingInterval.prototype, "speedType", {
17853
+ get: $util.oneOfGetter($oneOfFields = ["speed"]),
17854
+ set: $util.oneOfSetter($oneOfFields)
17855
+ });
17856
+
17846
17857
  /**
17847
17858
  * Creates a new SpeedReadingInterval instance using the specified properties.
17848
17859
  * @function create
@@ -17965,7 +17976,8 @@
17965
17976
  if (!$util.isInteger(message.endPolylinePointIndex))
17966
17977
  return "endPolylinePointIndex: integer expected";
17967
17978
  }
17968
- if (message.speed != null && message.hasOwnProperty("speed"))
17979
+ if (message.speed != null && message.hasOwnProperty("speed")) {
17980
+ properties.speedType = 1;
17969
17981
  switch (message.speed) {
17970
17982
  default:
17971
17983
  return "speed: enum value expected";
@@ -17975,6 +17987,7 @@
17975
17987
  case 3:
17976
17988
  break;
17977
17989
  }
17990
+ }
17978
17991
  return null;
17979
17992
  };
17980
17993
 
@@ -18034,8 +18047,6 @@
18034
18047
  if (!options)
18035
18048
  options = {};
18036
18049
  var object = {};
18037
- if (options.defaults)
18038
- object.speed = options.enums === String ? "SPEED_UNSPECIFIED" : 0;
18039
18050
  if (message.startPolylinePointIndex != null && message.hasOwnProperty("startPolylinePointIndex")) {
18040
18051
  object.startPolylinePointIndex = message.startPolylinePointIndex;
18041
18052
  if (options.oneofs)
@@ -18046,8 +18057,11 @@
18046
18057
  if (options.oneofs)
18047
18058
  object._endPolylinePointIndex = "endPolylinePointIndex";
18048
18059
  }
18049
- if (message.speed != null && message.hasOwnProperty("speed"))
18060
+ if (message.speed != null && message.hasOwnProperty("speed")) {
18050
18061
  object.speed = options.enums === String ? $root.google.maps.routing.v2.SpeedReadingInterval.Speed[message.speed] === undefined ? message.speed : $root.google.maps.routing.v2.SpeedReadingInterval.Speed[message.speed] : message.speed;
18062
+ if (options.oneofs)
18063
+ object.speedType = "speed";
18064
+ }
18051
18065
  return object;
18052
18066
  };
18053
18067
 
@@ -18620,6 +18634,7 @@
18620
18634
  case 34:
18621
18635
  case 35:
18622
18636
  case 36:
18637
+ case 94:
18623
18638
  case 37:
18624
18639
  case 38:
18625
18640
  case 39:
@@ -18922,6 +18937,10 @@
18922
18937
  case 36:
18923
18938
  message.tollPasses[i] = 36;
18924
18939
  break;
18940
+ case "US_MI_BCPASS":
18941
+ case 94:
18942
+ message.tollPasses[i] = 94;
18943
+ break;
18925
18944
  case "US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG":
18926
18945
  case 37:
18927
18946
  message.tollPasses[i] = 37;
@@ -19200,6 +19219,7 @@
19200
19219
  * @property {number} US_MD_EZPASSMD=34 US_MD_EZPASSMD value
19201
19220
  * @property {number} US_ME_EZPASSME=35 US_ME_EZPASSME value
19202
19221
  * @property {number} US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD=36 US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD value
19222
+ * @property {number} US_MI_BCPASS=94 US_MI_BCPASS value
19203
19223
  * @property {number} US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG=37 US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG value
19204
19224
  * @property {number} US_MI_IQ_PROX_CARD=38 US_MI_IQ_PROX_CARD value
19205
19225
  * @property {number} US_MI_MACKINAC_BRIDGE_MAC_PASS=39 US_MI_MACKINAC_BRIDGE_MAC_PASS value
@@ -19295,6 +19315,7 @@
19295
19315
  values[valuesById[34] = "US_MD_EZPASSMD"] = 34;
19296
19316
  values[valuesById[35] = "US_ME_EZPASSME"] = 35;
19297
19317
  values[valuesById[36] = "US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD"] = 36;
19318
+ values[valuesById[94] = "US_MI_BCPASS"] = 94;
19298
19319
  values[valuesById[37] = "US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG"] = 37;
19299
19320
  values[valuesById[38] = "US_MI_IQ_PROX_CARD"] = 38;
19300
19321
  values[valuesById[39] = "US_MI_MACKINAC_BRIDGE_MAC_PASS"] = 39;
@@ -19729,6 +19750,7 @@
19729
19750
  * @property {boolean|null} [computeAlternativeRoutes] ComputeRoutesRequest computeAlternativeRoutes
19730
19751
  * @property {google.maps.routing.v2.IRouteModifiers|null} [routeModifiers] ComputeRoutesRequest routeModifiers
19731
19752
  * @property {string|null} [languageCode] ComputeRoutesRequest languageCode
19753
+ * @property {string|null} [regionCode] ComputeRoutesRequest regionCode
19732
19754
  * @property {google.maps.routing.v2.Units|null} [units] ComputeRoutesRequest units
19733
19755
  * @property {Array.<google.maps.routing.v2.ComputeRoutesRequest.ReferenceRoute>|null} [requestedReferenceRoutes] ComputeRoutesRequest requestedReferenceRoutes
19734
19756
  * @property {Array.<google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation>|null} [extraComputations] ComputeRoutesRequest extraComputations
@@ -19840,6 +19862,14 @@
19840
19862
  */
19841
19863
  ComputeRoutesRequest.prototype.languageCode = "";
19842
19864
 
19865
+ /**
19866
+ * ComputeRoutesRequest regionCode.
19867
+ * @member {string} regionCode
19868
+ * @memberof google.maps.routing.v2.ComputeRoutesRequest
19869
+ * @instance
19870
+ */
19871
+ ComputeRoutesRequest.prototype.regionCode = "";
19872
+
19843
19873
  /**
19844
19874
  * ComputeRoutesRequest units.
19845
19875
  * @member {google.maps.routing.v2.Units} units
@@ -19925,6 +19955,8 @@
19925
19955
  writer.int32(message.extraComputations[i]);
19926
19956
  writer.ldelim();
19927
19957
  }
19958
+ if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode"))
19959
+ writer.uint32(/* id 16, wireType 2 =*/130).string(message.regionCode);
19928
19960
  return writer;
19929
19961
  };
19930
19962
 
@@ -20005,6 +20037,10 @@
20005
20037
  message.languageCode = reader.string();
20006
20038
  break;
20007
20039
  }
20040
+ case 16: {
20041
+ message.regionCode = reader.string();
20042
+ break;
20043
+ }
20008
20044
  case 11: {
20009
20045
  message.units = reader.int32();
20010
20046
  break;
@@ -20140,6 +20176,9 @@
20140
20176
  if (message.languageCode != null && message.hasOwnProperty("languageCode"))
20141
20177
  if (!$util.isString(message.languageCode))
20142
20178
  return "languageCode: string expected";
20179
+ if (message.regionCode != null && message.hasOwnProperty("regionCode"))
20180
+ if (!$util.isString(message.regionCode))
20181
+ return "regionCode: string expected";
20143
20182
  if (message.units != null && message.hasOwnProperty("units"))
20144
20183
  switch (message.units) {
20145
20184
  default:
@@ -20316,6 +20355,8 @@
20316
20355
  }
20317
20356
  if (object.languageCode != null)
20318
20357
  message.languageCode = String(object.languageCode);
20358
+ if (object.regionCode != null)
20359
+ message.regionCode = String(object.regionCode);
20319
20360
  switch (object.units) {
20320
20361
  default:
20321
20362
  if (typeof object.units === "number") {
@@ -20419,6 +20460,7 @@
20419
20460
  object.languageCode = "";
20420
20461
  object.units = options.enums === String ? "UNITS_UNSPECIFIED" : 0;
20421
20462
  object.polylineEncoding = options.enums === String ? "POLYLINE_ENCODING_UNSPECIFIED" : 0;
20463
+ object.regionCode = "";
20422
20464
  }
20423
20465
  if (message.origin != null && message.hasOwnProperty("origin"))
20424
20466
  object.origin = $root.google.maps.routing.v2.Waypoint.toObject(message.origin, options);
@@ -20457,6 +20499,8 @@
20457
20499
  for (var j = 0; j < message.extraComputations.length; ++j)
20458
20500
  object.extraComputations[j] = options.enums === String ? $root.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation[message.extraComputations[j]] === undefined ? message.extraComputations[j] : $root.google.maps.routing.v2.ComputeRoutesRequest.ExtraComputation[message.extraComputations[j]] : message.extraComputations[j];
20459
20501
  }
20502
+ if (message.regionCode != null && message.hasOwnProperty("regionCode"))
20503
+ object.regionCode = message.regionCode;
20460
20504
  return object;
20461
20505
  };
20462
20506
 
@@ -20814,6 +20858,8 @@
20814
20858
  * @property {google.maps.routing.v2.RouteTravelMode|null} [travelMode] ComputeRouteMatrixRequest travelMode
20815
20859
  * @property {google.maps.routing.v2.RoutingPreference|null} [routingPreference] ComputeRouteMatrixRequest routingPreference
20816
20860
  * @property {google.protobuf.ITimestamp|null} [departureTime] ComputeRouteMatrixRequest departureTime
20861
+ * @property {string|null} [languageCode] ComputeRouteMatrixRequest languageCode
20862
+ * @property {string|null} [regionCode] ComputeRouteMatrixRequest regionCode
20817
20863
  * @property {Array.<google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation>|null} [extraComputations] ComputeRouteMatrixRequest extraComputations
20818
20864
  */
20819
20865
 
@@ -20875,6 +20921,22 @@
20875
20921
  */
20876
20922
  ComputeRouteMatrixRequest.prototype.departureTime = null;
20877
20923
 
20924
+ /**
20925
+ * ComputeRouteMatrixRequest languageCode.
20926
+ * @member {string} languageCode
20927
+ * @memberof google.maps.routing.v2.ComputeRouteMatrixRequest
20928
+ * @instance
20929
+ */
20930
+ ComputeRouteMatrixRequest.prototype.languageCode = "";
20931
+
20932
+ /**
20933
+ * ComputeRouteMatrixRequest regionCode.
20934
+ * @member {string} regionCode
20935
+ * @memberof google.maps.routing.v2.ComputeRouteMatrixRequest
20936
+ * @instance
20937
+ */
20938
+ ComputeRouteMatrixRequest.prototype.regionCode = "";
20939
+
20878
20940
  /**
20879
20941
  * ComputeRouteMatrixRequest extraComputations.
20880
20942
  * @member {Array.<google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation>} extraComputations
@@ -20919,12 +20981,16 @@
20919
20981
  writer.uint32(/* id 4, wireType 0 =*/32).int32(message.routingPreference);
20920
20982
  if (message.departureTime != null && Object.hasOwnProperty.call(message, "departureTime"))
20921
20983
  $root.google.protobuf.Timestamp.encode(message.departureTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
20984
+ if (message.languageCode != null && Object.hasOwnProperty.call(message, "languageCode"))
20985
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.languageCode);
20922
20986
  if (message.extraComputations != null && message.extraComputations.length) {
20923
20987
  writer.uint32(/* id 8, wireType 2 =*/66).fork();
20924
20988
  for (var i = 0; i < message.extraComputations.length; ++i)
20925
20989
  writer.int32(message.extraComputations[i]);
20926
20990
  writer.ldelim();
20927
20991
  }
20992
+ if (message.regionCode != null && Object.hasOwnProperty.call(message, "regionCode"))
20993
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.regionCode);
20928
20994
  return writer;
20929
20995
  };
20930
20996
 
@@ -20983,6 +21049,14 @@
20983
21049
  message.departureTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
20984
21050
  break;
20985
21051
  }
21052
+ case 6: {
21053
+ message.languageCode = reader.string();
21054
+ break;
21055
+ }
21056
+ case 9: {
21057
+ message.regionCode = reader.string();
21058
+ break;
21059
+ }
20986
21060
  case 8: {
20987
21061
  if (!(message.extraComputations && message.extraComputations.length))
20988
21062
  message.extraComputations = [];
@@ -21073,6 +21147,12 @@
21073
21147
  if (error)
21074
21148
  return "departureTime." + error;
21075
21149
  }
21150
+ if (message.languageCode != null && message.hasOwnProperty("languageCode"))
21151
+ if (!$util.isString(message.languageCode))
21152
+ return "languageCode: string expected";
21153
+ if (message.regionCode != null && message.hasOwnProperty("regionCode"))
21154
+ if (!$util.isString(message.regionCode))
21155
+ return "regionCode: string expected";
21076
21156
  if (message.extraComputations != null && message.hasOwnProperty("extraComputations")) {
21077
21157
  if (!Array.isArray(message.extraComputations))
21078
21158
  return "extraComputations: array expected";
@@ -21177,6 +21257,10 @@
21177
21257
  throw TypeError(".google.maps.routing.v2.ComputeRouteMatrixRequest.departureTime: object expected");
21178
21258
  message.departureTime = $root.google.protobuf.Timestamp.fromObject(object.departureTime);
21179
21259
  }
21260
+ if (object.languageCode != null)
21261
+ message.languageCode = String(object.languageCode);
21262
+ if (object.regionCode != null)
21263
+ message.regionCode = String(object.regionCode);
21180
21264
  if (object.extraComputations) {
21181
21265
  if (!Array.isArray(object.extraComputations))
21182
21266
  throw TypeError(".google.maps.routing.v2.ComputeRouteMatrixRequest.extraComputations: array expected");
@@ -21223,6 +21307,8 @@
21223
21307
  object.travelMode = options.enums === String ? "TRAVEL_MODE_UNSPECIFIED" : 0;
21224
21308
  object.routingPreference = options.enums === String ? "ROUTING_PREFERENCE_UNSPECIFIED" : 0;
21225
21309
  object.departureTime = null;
21310
+ object.languageCode = "";
21311
+ object.regionCode = "";
21226
21312
  }
21227
21313
  if (message.origins && message.origins.length) {
21228
21314
  object.origins = [];
@@ -21240,11 +21326,15 @@
21240
21326
  object.routingPreference = options.enums === String ? $root.google.maps.routing.v2.RoutingPreference[message.routingPreference] === undefined ? message.routingPreference : $root.google.maps.routing.v2.RoutingPreference[message.routingPreference] : message.routingPreference;
21241
21327
  if (message.departureTime != null && message.hasOwnProperty("departureTime"))
21242
21328
  object.departureTime = $root.google.protobuf.Timestamp.toObject(message.departureTime, options);
21329
+ if (message.languageCode != null && message.hasOwnProperty("languageCode"))
21330
+ object.languageCode = message.languageCode;
21243
21331
  if (message.extraComputations && message.extraComputations.length) {
21244
21332
  object.extraComputations = [];
21245
21333
  for (var j = 0; j < message.extraComputations.length; ++j)
21246
21334
  object.extraComputations[j] = options.enums === String ? $root.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation[message.extraComputations[j]] === undefined ? message.extraComputations[j] : $root.google.maps.routing.v2.ComputeRouteMatrixRequest.ExtraComputation[message.extraComputations[j]] : message.extraComputations[j];
21247
21335
  }
21336
+ if (message.regionCode != null && message.hasOwnProperty("regionCode"))
21337
+ object.regionCode = message.regionCode;
21248
21338
  return object;
21249
21339
  };
21250
21340
 
@@ -1577,6 +1577,11 @@
1577
1577
  "oneof": [
1578
1578
  "endPolylinePointIndex"
1579
1579
  ]
1580
+ },
1581
+ "speedType": {
1582
+ "oneof": [
1583
+ "speed"
1584
+ ]
1580
1585
  }
1581
1586
  },
1582
1587
  "fields": {
@@ -1706,6 +1711,7 @@
1706
1711
  "US_MD_EZPASSMD": 34,
1707
1712
  "US_ME_EZPASSME": 35,
1708
1713
  "US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD": 36,
1714
+ "US_MI_BCPASS": 94,
1709
1715
  "US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG": 37,
1710
1716
  "US_MI_IQ_PROX_CARD": 38,
1711
1717
  "US_MI_MACKINAC_BRIDGE_MAC_PASS": 39,
@@ -1890,6 +1896,13 @@
1890
1896
  "(google.api.field_behavior)": "OPTIONAL"
1891
1897
  }
1892
1898
  },
1899
+ "regionCode": {
1900
+ "type": "string",
1901
+ "id": 16,
1902
+ "options": {
1903
+ "(google.api.field_behavior)": "OPTIONAL"
1904
+ }
1905
+ },
1893
1906
  "units": {
1894
1907
  "type": "Units",
1895
1908
  "id": 11,
@@ -1987,6 +2000,20 @@
1987
2000
  "(google.api.field_behavior)": "OPTIONAL"
1988
2001
  }
1989
2002
  },
2003
+ "languageCode": {
2004
+ "type": "string",
2005
+ "id": 6,
2006
+ "options": {
2007
+ "(google.api.field_behavior)": "OPTIONAL"
2008
+ }
2009
+ },
2010
+ "regionCode": {
2011
+ "type": "string",
2012
+ "id": 9,
2013
+ "options": {
2014
+ "(google.api.field_behavior)": "OPTIONAL"
2015
+ }
2016
+ },
1990
2017
  "extraComputations": {
1991
2018
  "rule": "repeated",
1992
2019
  "type": "ExtraComputation",
@@ -179,17 +179,22 @@ export declare class RoutesClient {
179
179
  * [Language Support](https://developers.google.com/maps/faq#languagesupport)
180
180
  * for the list of supported languages. When you don't provide this value, the
181
181
  * display language is inferred from the location of the route request.
182
+ * @param {string} [request.regionCode]
183
+ * Optional. The region code, specified as a ccTLD ("top-level domain")
184
+ * two-character value. For more information see
185
+ * https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains
182
186
  * @param {google.maps.routing.v2.Units} [request.units]
183
187
  * Optional. Specifies the units of measure for the display fields. This
184
- * includes the `instruction` field in `NavigationInstruction`. The units of
185
- * measure used for the route, leg, step distance, and duration are not
186
- * affected by this value. If you don't provide this value, then the display
187
- * units are inferred from the location of the request.
188
+ * includes the `instruction` field in
189
+ * {@link google.maps.routing.v2.NavigationInstruction|NavigationInstruction}. The
190
+ * units of measure used for the route, leg, step distance, and duration are
191
+ * not affected by this value. If you don't provide this value, then the
192
+ * display units are inferred from the location of the request.
188
193
  * @param {number[]} [request.requestedReferenceRoutes]
189
194
  * Optional. Specifies what reference routes to calculate as part of the
190
195
  * request in addition to the default route. A reference route is a route with
191
196
  * a different route calculation objective than the default route. For example
192
- * an FUEL_EFFICIENT reference route calculation takes into account various
197
+ * a `FUEL_EFFICIENT` reference route calculation takes into account various
193
198
  * parameters that would generate an optimal fuel efficient route.
194
199
  * @param {number[]} [request.extraComputations]
195
200
  * Optional. A list of extra computations which may be used to complete the
@@ -278,6 +283,17 @@ export declare class RoutesClient {
278
283
  * Optional. The departure time. If you don't set this value, this defaults to
279
284
  * the time that you made the request. If you set this value to a time that
280
285
  * has already occurred, the request fails.
286
+ * @param {string} [request.languageCode]
287
+ * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
288
+ * information, see
289
+ * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. See
290
+ * [Language Support](https://developers.google.com/maps/faq#languagesupport)
291
+ * for the list of supported languages. When you don't provide this value, the
292
+ * display language is inferred from the location of the first origin.
293
+ * @param {string} [request.regionCode]
294
+ * Optional. The region code, specified as a ccTLD ("top-level domain")
295
+ * two-character value. For more information see
296
+ * https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains
281
297
  * @param {number[]} [request.extraComputations]
282
298
  * Optional. A list of extra computations which may be used to complete the
283
299
  * request. Note: These extra computations may return extra fields on the
@@ -319,6 +319,17 @@ class RoutesClient {
319
319
  * Optional. The departure time. If you don't set this value, this defaults to
320
320
  * the time that you made the request. If you set this value to a time that
321
321
  * has already occurred, the request fails.
322
+ * @param {string} [request.languageCode]
323
+ * Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
324
+ * information, see
325
+ * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. See
326
+ * [Language Support](https://developers.google.com/maps/faq#languagesupport)
327
+ * for the list of supported languages. When you don't provide this value, the
328
+ * display language is inferred from the location of the first origin.
329
+ * @param {string} [request.regionCode]
330
+ * Optional. The region code, specified as a ccTLD ("top-level domain")
331
+ * two-character value. For more information see
332
+ * https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains
322
333
  * @param {number[]} [request.extraComputations]
323
334
  * Optional. A list of extra computations which may be used to complete the
324
335
  * request. Note: These extra computations may return extra fields on the
@@ -1 +1 @@
1
- {"version":3,"file":"routes_client.js","sourceRoot":"","sources":["../../../src/v2/routes_client.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,4EAA4E;AAC5E,iEAAiE;AACjE,qDAAqD;;;AAUrD,mCAAmC;AAEnC,uDAAwD;AACxD;;;;GAIG;AACH,2DAA2D;AAC3D,MAAM,OAAO,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC;AAEzD;;;;GAIG;AACH,MAAa,YAAY;IAmBvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;IACH,YACE,IAAoB,EACpB,WAA8C;;QA5DxC,gBAAW,GAAG,KAAK,CAAC;QAQ5B,gBAAW,GAAgB;YACzB,IAAI,EAAE,EAAE;YACR,MAAM,EAAE,EAAE;YACV,WAAW,EAAE,EAAE;YACf,QAAQ,EAAE,EAAE;SACb,CAAC;Q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C5D,IAAI,CAAC,UAAU,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;OAKG;IACH,KAAK;QACH,IAAI,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACxC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACjC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;gBACxB,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,CAAC,CAAC,CAAC;SACJ;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;CACF;AAhkBD,oCAgkBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googlemaps/routing",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": " client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",