@googlemaps/routing 3.0.0 → 3.1.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.
@@ -1961,6 +1961,11 @@
1961
1961
  },
1962
1962
  "PolylineDetails": {
1963
1963
  "fields": {
1964
+ "tunnelInfo": {
1965
+ "rule": "repeated",
1966
+ "type": "TunnelInfo",
1967
+ "id": 8
1968
+ },
1964
1969
  "flyoverInfo": {
1965
1970
  "rule": "repeated",
1966
1971
  "type": "FlyoverInfo",
@@ -1970,6 +1975,16 @@
1970
1975
  "rule": "repeated",
1971
1976
  "type": "NarrowRoadInfo",
1972
1977
  "id": 13
1978
+ },
1979
+ "bridgeInfo": {
1980
+ "rule": "repeated",
1981
+ "type": "BridgeInfo",
1982
+ "id": 14
1983
+ },
1984
+ "skywayInfo": {
1985
+ "rule": "repeated",
1986
+ "type": "SkywayInfo",
1987
+ "id": 15
1973
1988
  }
1974
1989
  },
1975
1990
  "nested": {
@@ -2010,6 +2025,42 @@
2010
2025
  "DOES_NOT_EXIST": 2
2011
2026
  }
2012
2027
  },
2028
+ "TunnelInfo": {
2029
+ "fields": {
2030
+ "tunnelPresence": {
2031
+ "type": "RoadFeatureState",
2032
+ "id": 1
2033
+ },
2034
+ "polylinePointIndex": {
2035
+ "type": "PolylinePointIndex",
2036
+ "id": 2
2037
+ }
2038
+ }
2039
+ },
2040
+ "BridgeInfo": {
2041
+ "fields": {
2042
+ "bridgePresence": {
2043
+ "type": "RoadFeatureState",
2044
+ "id": 1
2045
+ },
2046
+ "polylinePointIndex": {
2047
+ "type": "PolylinePointIndex",
2048
+ "id": 2
2049
+ }
2050
+ }
2051
+ },
2052
+ "SkywayInfo": {
2053
+ "fields": {
2054
+ "skywayPresence": {
2055
+ "type": "RoadFeatureState",
2056
+ "id": 1
2057
+ },
2058
+ "polylinePointIndex": {
2059
+ "type": "PolylinePointIndex",
2060
+ "id": 2
2061
+ }
2062
+ }
2063
+ },
2013
2064
  "FlyoverInfo": {
2014
2065
  "fields": {
2015
2066
  "flyoverPresence": {
@@ -2624,6 +2675,13 @@
2624
2675
  "rule": "repeated",
2625
2676
  "type": "TollPass",
2626
2677
  "id": 6
2678
+ },
2679
+ "avoidTunnels": {
2680
+ "type": "bool",
2681
+ "id": 7,
2682
+ "options": {
2683
+ "(google.api.field_behavior)": "OPTIONAL"
2684
+ }
2627
2685
  }
2628
2686
  }
2629
2687
  },
@@ -2693,6 +2751,7 @@
2693
2751
  "US_ME_EZPASSME": 35,
2694
2752
  "US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD": 36,
2695
2753
  "US_MI_BCPASS": 94,
2754
+ "US_MI_BREAKAWAY": 101,
2696
2755
  "US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG": 37,
2697
2756
  "US_MI_IQ_PROX_CARD": 38,
2698
2757
  "US_MI_IQ_TAG": 95,
@@ -2947,7 +3006,10 @@
2947
3006
  "TRAFFIC_ON_POLYLINE": 3,
2948
3007
  "HTML_FORMATTED_NAVIGATION_INSTRUCTIONS": 4,
2949
3008
  "FLYOVER_INFO_ON_POLYLINE": 7,
2950
- "NARROW_ROAD_INFO_ON_POLYLINE": 8
3009
+ "NARROW_ROAD_INFO_ON_POLYLINE": 8,
3010
+ "TUNNEL_INFO_ON_POLYLINE": 9,
3011
+ "BRIDGE_INFO_ON_POLYLINE": 10,
3012
+ "SKYWAY_INFO_ON_POLYLINE": 11
2951
3013
  }
2952
3014
  }
2953
3015
  }
@@ -214,9 +214,9 @@ export declare class RoutesClient {
214
214
  * Optional. If set to true, the service attempts to minimize the overall cost
215
215
  * of the route by re-ordering the specified intermediate waypoints. The
216
216
  * request fails if any of the intermediate waypoints is a `via` waypoint. Use
217
- * `ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index` to
217
+ * `ComputeRoutesResponse.routes.optimized_intermediate_waypoint_index` to
218
218
  * find the new ordering.
219
- * If `ComputeRoutesResponseroutes.optimized_intermediate_waypoint_index` is
219
+ * If `ComputeRoutesResponse.routes.optimized_intermediate_waypoint_index` is
220
220
  * not requested in the `X-Goog-FieldMask` header, the request fails.
221
221
  * If `optimize_waypoint_order` is set to false,
222
222
  * `ComputeRoutesResponse.optimized_intermediate_waypoint_index` will be
@@ -202,7 +202,7 @@ class RoutesClient {
202
202
  // and create an API call method for each.
203
203
  const routesStubMethods = ['computeRoutes', 'computeRouteMatrix'];
204
204
  for (const methodName of routesStubMethods) {
205
- const callPromise = this.routesStub.then((stub) => (...args) => {
205
+ const callPromise = this.routesStub.then(stub => (...args) => {
206
206
  if (this._terminated) {
207
207
  if (methodName in this.descriptors.stream) {
208
208
  const stream = new stream_1.PassThrough({ objectMode: true });
@@ -297,7 +297,7 @@ class RoutesClient {
297
297
  options = options || {};
298
298
  options.otherArgs = options.otherArgs || {};
299
299
  options.otherArgs.headers = options.otherArgs.headers || {};
300
- this.initialize().catch((err) => {
300
+ this.initialize().catch(err => {
301
301
  throw err;
302
302
  });
303
303
  this._log.info('computeRoutes request %j', request);
@@ -447,7 +447,7 @@ class RoutesClient {
447
447
  options = options || {};
448
448
  options.otherArgs = options.otherArgs || {};
449
449
  options.otherArgs.headers = options.otherArgs.headers || {};
450
- this.initialize().catch((err) => {
450
+ this.initialize().catch(err => {
451
451
  throw err;
452
452
  });
453
453
  this._log.info('computeRouteMatrix stream %j', options);
@@ -461,7 +461,7 @@ class RoutesClient {
461
461
  */
462
462
  close() {
463
463
  if (this.routesStub && !this._terminated) {
464
- return this.routesStub.then((stub) => {
464
+ return this.routesStub.then(stub => {
465
465
  this._log.info('ending gRPC channel');
466
466
  this._terminated = true;
467
467
  stub.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googlemaps/routing",
3
- "version": "3.0.0",
3
+ "version": "3.1.1",
4
4
  "description": " client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -67,10 +67,5 @@
67
67
  },
68
68
  "overrides": {
69
69
  "@sinonjs/fake-timers": "15.2.1"
70
- },
71
- "pnpm": {
72
- "overrides": {
73
- "@sinonjs/fake-timers": "15.2.1"
74
- }
75
70
  }
76
71
  }