@googlemaps/routing 0.4.0 → 0.5.1

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 (29) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/build/protos/google/maps/routing/v2/fallback_info.proto +7 -6
  3. package/build/protos/google/maps/routing/v2/geocoding_results.proto +4 -3
  4. package/build/protos/google/maps/routing/v2/location.proto +4 -3
  5. package/build/protos/google/maps/routing/v2/maneuver.proto +2 -2
  6. package/build/protos/google/maps/routing/v2/navigation_instruction.proto +2 -2
  7. package/build/protos/google/maps/routing/v2/polyline.proto +2 -2
  8. package/build/protos/google/maps/routing/v2/route.proto +11 -10
  9. package/build/protos/google/maps/routing/v2/route_label.proto +7 -6
  10. package/build/protos/google/maps/routing/v2/route_modifiers.proto +10 -7
  11. package/build/protos/google/maps/routing/v2/route_travel_mode.proto +4 -4
  12. package/build/protos/google/maps/routing/v2/routes_service.proto +31 -11
  13. package/build/protos/google/maps/routing/v2/routing_preference.proto +9 -8
  14. package/build/protos/google/maps/routing/v2/speed_reading_interval.proto +6 -4
  15. package/build/protos/google/maps/routing/v2/toll_info.proto +11 -9
  16. package/build/protos/google/maps/routing/v2/toll_passes.proto +5 -2
  17. package/build/protos/google/maps/routing/v2/units.proto +2 -2
  18. package/build/protos/google/maps/routing/v2/vehicle_emission_type.proto +5 -4
  19. package/build/protos/google/maps/routing/v2/vehicle_info.proto +3 -3
  20. package/build/protos/google/maps/routing/v2/waypoint.proto +14 -13
  21. package/build/protos/protos.d.ts +23 -1
  22. package/build/protos/protos.js +1 -27523
  23. package/build/protos/protos.json +1 -2567
  24. package/build/src/v2/routes_client.d.ts +21 -5
  25. package/build/src/v2/routes_client.js +11 -0
  26. package/package.json +5 -4
  27. package/build/src/index.js.map +0 -1
  28. package/build/src/v2/index.js.map +0 -1
  29. package/build/src/v2/routes_client.js.map +0 -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.
@@ -20,7 +20,7 @@ import "google/maps/routing/v2/location.proto";
20
20
 
21
21
  option cc_enable_arenas = true;
22
22
  option csharp_namespace = "Google.Maps.Routing.V2";
23
- option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing";
23
+ option go_package = "cloud.google.com/go/maps/routing/apiv2/routingpb;routingpb";
24
24
  option java_multiple_files = true;
25
25
  option java_outer_classname = "WaypointProto";
26
26
  option java_package = "com.google.maps.routing.v2";
@@ -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