@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.
@@ -54,6 +54,33 @@ message PolylineDetails {
54
54
  DOES_NOT_EXIST = 2;
55
55
  }
56
56
 
57
+ // Encapsulates information about tunnels along the polyline.
58
+ message TunnelInfo {
59
+ // Denotes whether a tunnel exists for a given stretch of the polyline.
60
+ RoadFeatureState tunnel_presence = 1;
61
+
62
+ // The location of tunnel related information along the polyline.
63
+ PolylinePointIndex polyline_point_index = 2;
64
+ }
65
+
66
+ // Encapsulates information about bridges along the polyline.
67
+ message BridgeInfo {
68
+ // Denotes whether a bridge exists for a given stretch of the polyline.
69
+ RoadFeatureState bridge_presence = 1;
70
+
71
+ // The location of bridge related information along the polyline.
72
+ PolylinePointIndex polyline_point_index = 2;
73
+ }
74
+
75
+ // Encapsulates information about skyways along the polyline.
76
+ message SkywayInfo {
77
+ // Denotes whether a skyway exists for a given stretch of the polyline.
78
+ RoadFeatureState skyway_presence = 1;
79
+
80
+ // The location of skyway related information along the polyline.
81
+ PolylinePointIndex polyline_point_index = 2;
82
+ }
83
+
57
84
  // Encapsulates information about flyovers along the polyline.
58
85
  message FlyoverInfo {
59
86
  // Output only. Denotes whether a flyover exists for a given stretch of the
@@ -76,9 +103,21 @@ message PolylineDetails {
76
103
  PolylinePointIndex polyline_point_index = 2;
77
104
  }
78
105
 
106
+ // Tunnel details along the polyline. This field is populated if the request
107
+ // specifies the `avoid_tunnels` route modifier and the resultant route fails
108
+ // to avoid them, OR if `TUNNEL_INFO_ON_POLYLINE` is specified in
109
+ // `extra_computations` and the route contains tunnels.
110
+ repeated TunnelInfo tunnel_info = 8;
111
+
79
112
  // Flyover details along the polyline.
80
113
  repeated FlyoverInfo flyover_info = 12;
81
114
 
82
115
  // Narrow road details along the polyline.
83
116
  repeated NarrowRoadInfo narrow_road_info = 13;
117
+
118
+ // Bridge details along the polyline.
119
+ repeated BridgeInfo bridge_info = 14;
120
+
121
+ // Skyway details along the polyline.
122
+ repeated SkywayInfo skyway_info = 15;
84
123
  }
@@ -16,6 +16,7 @@ syntax = "proto3";
16
16
 
17
17
  package google.maps.routing.v2;
18
18
 
19
+ import "google/api/field_behavior.proto";
19
20
  import "google/maps/routing/v2/toll_passes.proto";
20
21
  import "google/maps/routing/v2/vehicle_info.proto";
21
22
 
@@ -61,4 +62,13 @@ message RouteModifiers {
61
62
  // Applies only to the `DRIVE` and `TWO_WHEELER`
62
63
  // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
63
64
  repeated TollPass toll_passes = 6;
65
+
66
+ // Optional. When set to true, avoids tunnels where reasonable, giving
67
+ // preference to routes not containing tunnels. Applies only to the `DRIVE`
68
+ // and `TWO_WHEELER`
69
+ // [`RouteTravelMode`][google.maps.routing.v2.RouteTravelMode].
70
+ // [`RoutingPreference`][google.maps.routing.v2.RoutingPreference]
71
+ // must be set to `TRAFFIC_AWARE_OPTIMAL`.
72
+ // This field is not supported in ComputeRouteMatrix.
73
+ bool avoid_tunnels = 7 [(google.api.field_behavior) = OPTIONAL];
64
74
  }
@@ -162,6 +162,7 @@ message ComputeRoutesRequest {
162
162
  }
163
163
 
164
164
  // Extra computations to perform while completing the request.
165
+ // Additional values may be added in the future.
165
166
  enum ExtraComputation {
166
167
  // Not used. Requests containing this value will fail.
167
168
  EXTRA_COMPUTATION_UNSPECIFIED = 0;
@@ -175,7 +176,7 @@ message ComputeRoutesRequest {
175
176
  // Traffic aware polylines for the route(s).
176
177
  TRAFFIC_ON_POLYLINE = 3;
177
178
 
178
- // [`NavigationInstructions`](google.maps.routing.v2.NavigationInstructions.instructions)
179
+ // [`NavigationInstruction`][google.maps.routing.v2.NavigationInstruction]
179
180
  // presented as a formatted HTML text string. This content
180
181
  // is meant to be read as-is. This content is for display only.
181
182
  // Do not programmatically parse it.
@@ -183,17 +184,32 @@ message ComputeRoutesRequest {
183
184
 
184
185
  // Flyover information for the route(s). The
185
186
  // `routes.polyline_details.flyover_info` fieldmask must be specified to
186
- // return this information. This data will only currently be populated for
187
+ // return this information. This data will currently only be populated for
187
188
  // certain metros in India. This feature is experimental, and the
188
189
  // SKU/charge is subject to change.
189
190
  FLYOVER_INFO_ON_POLYLINE = 7;
190
191
 
191
192
  // Narrow road information for the route(s). The
192
193
  // `routes.polyline_details.narrow_road_info` fieldmask must be specified
193
- // to return this information. This data will only currently be populated
194
+ // to return this information. This data will currently only be populated
194
195
  // for certain metros in India. This feature is experimental, and the
195
196
  // SKU/charge is subject to change.
196
197
  NARROW_ROAD_INFO_ON_POLYLINE = 8;
198
+
199
+ // Tunnel information for the route(s). The
200
+ // `routes.polyline_details.tunnel_info` fieldmask must be specified to
201
+ // return this information.
202
+ TUNNEL_INFO_ON_POLYLINE = 9;
203
+
204
+ // Bridge information for the route(s). The
205
+ // `routes.polyline_details.bridge_info` fieldmask must be specified to
206
+ // return this information.
207
+ BRIDGE_INFO_ON_POLYLINE = 10;
208
+
209
+ // Skyway information for the route(s). The
210
+ // `routes.polyline_details.skyway_info` fieldmask must be specified to
211
+ // return this information.
212
+ SKYWAY_INFO_ON_POLYLINE = 11;
197
213
  }
198
214
 
199
215
  // Required. Origin waypoint.
@@ -277,9 +293,9 @@ message ComputeRoutesRequest {
277
293
  // Optional. If set to true, the service attempts to minimize the overall cost
278
294
  // of the route by re-ordering the specified intermediate waypoints. The
279
295
  // request fails if any of the intermediate waypoints is a `via` waypoint. Use
280
- // `ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index` to
296
+ // `ComputeRoutesResponse.routes.optimized_intermediate_waypoint_index` to
281
297
  // find the new ordering.
282
- // If `ComputeRoutesResponseroutes.optimized_intermediate_waypoint_index` is
298
+ // If `ComputeRoutesResponse.routes.optimized_intermediate_waypoint_index` is
283
299
  // not requested in the `X-Goog-FieldMask` header, the request fails.
284
300
  // If `optimize_waypoint_order` is set to false,
285
301
  // `ComputeRoutesResponse.optimized_intermediate_waypoint_index` will be
@@ -225,6 +225,9 @@ enum TollPass {
225
225
  // MI, USA.
226
226
  US_MI_BCPASS = 94;
227
227
 
228
+ // MI, USA.
229
+ US_MI_BREAKAWAY = 101;
230
+
228
231
  // MI, USA.
229
232
  US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG = 37;
230
233
 
@@ -44,7 +44,7 @@ message Waypoint {
44
44
  string address = 7;
45
45
 
46
46
  // A token that identifies a
47
- // [`NavigationPoint`](https://developers.google.com/maps/documentation/geocoding/reference/rest/v4alpha/geocode.destinations/searchDestinations#navigationpoint),
47
+ // [`NavigationPoint`](/maps/documentation/geocoding/reference/rest/v4alpha/geocode.destinations/searchDestinations#navigationpoint),
48
48
  // obtained from the `SearchDestinations` method of the Geocoding API.
49
49
  string navigation_point_token = 8;
50
50
  }
@@ -7268,11 +7268,20 @@ export namespace google {
7268
7268
  /** Properties of a PolylineDetails. */
7269
7269
  interface IPolylineDetails {
7270
7270
 
7271
+ /** PolylineDetails tunnelInfo */
7272
+ tunnelInfo?: (google.maps.routing.v2.PolylineDetails.ITunnelInfo[]|null);
7273
+
7271
7274
  /** PolylineDetails flyoverInfo */
7272
7275
  flyoverInfo?: (google.maps.routing.v2.PolylineDetails.IFlyoverInfo[]|null);
7273
7276
 
7274
7277
  /** PolylineDetails narrowRoadInfo */
7275
7278
  narrowRoadInfo?: (google.maps.routing.v2.PolylineDetails.INarrowRoadInfo[]|null);
7279
+
7280
+ /** PolylineDetails bridgeInfo */
7281
+ bridgeInfo?: (google.maps.routing.v2.PolylineDetails.IBridgeInfo[]|null);
7282
+
7283
+ /** PolylineDetails skywayInfo */
7284
+ skywayInfo?: (google.maps.routing.v2.PolylineDetails.ISkywayInfo[]|null);
7276
7285
  }
7277
7286
 
7278
7287
  /** Represents a PolylineDetails. */
@@ -7284,12 +7293,21 @@ export namespace google {
7284
7293
  */
7285
7294
  constructor(properties?: google.maps.routing.v2.IPolylineDetails);
7286
7295
 
7296
+ /** PolylineDetails tunnelInfo. */
7297
+ public tunnelInfo: google.maps.routing.v2.PolylineDetails.ITunnelInfo[];
7298
+
7287
7299
  /** PolylineDetails flyoverInfo. */
7288
7300
  public flyoverInfo: google.maps.routing.v2.PolylineDetails.IFlyoverInfo[];
7289
7301
 
7290
7302
  /** PolylineDetails narrowRoadInfo. */
7291
7303
  public narrowRoadInfo: google.maps.routing.v2.PolylineDetails.INarrowRoadInfo[];
7292
7304
 
7305
+ /** PolylineDetails bridgeInfo. */
7306
+ public bridgeInfo: google.maps.routing.v2.PolylineDetails.IBridgeInfo[];
7307
+
7308
+ /** PolylineDetails skywayInfo. */
7309
+ public skywayInfo: google.maps.routing.v2.PolylineDetails.ISkywayInfo[];
7310
+
7293
7311
  /**
7294
7312
  * Creates a new PolylineDetails instance using the specified properties.
7295
7313
  * @param [properties] Properties to set
@@ -7480,6 +7498,315 @@ export namespace google {
7480
7498
  DOES_NOT_EXIST = 2
7481
7499
  }
7482
7500
 
7501
+ /** Properties of a TunnelInfo. */
7502
+ interface ITunnelInfo {
7503
+
7504
+ /** TunnelInfo tunnelPresence */
7505
+ tunnelPresence?: (google.maps.routing.v2.PolylineDetails.RoadFeatureState|keyof typeof google.maps.routing.v2.PolylineDetails.RoadFeatureState|null);
7506
+
7507
+ /** TunnelInfo polylinePointIndex */
7508
+ polylinePointIndex?: (google.maps.routing.v2.PolylineDetails.IPolylinePointIndex|null);
7509
+ }
7510
+
7511
+ /** Represents a TunnelInfo. */
7512
+ class TunnelInfo implements ITunnelInfo {
7513
+
7514
+ /**
7515
+ * Constructs a new TunnelInfo.
7516
+ * @param [properties] Properties to set
7517
+ */
7518
+ constructor(properties?: google.maps.routing.v2.PolylineDetails.ITunnelInfo);
7519
+
7520
+ /** TunnelInfo tunnelPresence. */
7521
+ public tunnelPresence: (google.maps.routing.v2.PolylineDetails.RoadFeatureState|keyof typeof google.maps.routing.v2.PolylineDetails.RoadFeatureState);
7522
+
7523
+ /** TunnelInfo polylinePointIndex. */
7524
+ public polylinePointIndex?: (google.maps.routing.v2.PolylineDetails.IPolylinePointIndex|null);
7525
+
7526
+ /**
7527
+ * Creates a new TunnelInfo instance using the specified properties.
7528
+ * @param [properties] Properties to set
7529
+ * @returns TunnelInfo instance
7530
+ */
7531
+ public static create(properties?: google.maps.routing.v2.PolylineDetails.ITunnelInfo): google.maps.routing.v2.PolylineDetails.TunnelInfo;
7532
+
7533
+ /**
7534
+ * Encodes the specified TunnelInfo message. Does not implicitly {@link google.maps.routing.v2.PolylineDetails.TunnelInfo.verify|verify} messages.
7535
+ * @param message TunnelInfo message or plain object to encode
7536
+ * @param [writer] Writer to encode to
7537
+ * @returns Writer
7538
+ */
7539
+ public static encode(message: google.maps.routing.v2.PolylineDetails.ITunnelInfo, writer?: $protobuf.Writer): $protobuf.Writer;
7540
+
7541
+ /**
7542
+ * Encodes the specified TunnelInfo message, length delimited. Does not implicitly {@link google.maps.routing.v2.PolylineDetails.TunnelInfo.verify|verify} messages.
7543
+ * @param message TunnelInfo message or plain object to encode
7544
+ * @param [writer] Writer to encode to
7545
+ * @returns Writer
7546
+ */
7547
+ public static encodeDelimited(message: google.maps.routing.v2.PolylineDetails.ITunnelInfo, writer?: $protobuf.Writer): $protobuf.Writer;
7548
+
7549
+ /**
7550
+ * Decodes a TunnelInfo message from the specified reader or buffer.
7551
+ * @param reader Reader or buffer to decode from
7552
+ * @param [length] Message length if known beforehand
7553
+ * @returns TunnelInfo
7554
+ * @throws {Error} If the payload is not a reader or valid buffer
7555
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7556
+ */
7557
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.PolylineDetails.TunnelInfo;
7558
+
7559
+ /**
7560
+ * Decodes a TunnelInfo message from the specified reader or buffer, length delimited.
7561
+ * @param reader Reader or buffer to decode from
7562
+ * @returns TunnelInfo
7563
+ * @throws {Error} If the payload is not a reader or valid buffer
7564
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7565
+ */
7566
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.PolylineDetails.TunnelInfo;
7567
+
7568
+ /**
7569
+ * Verifies a TunnelInfo message.
7570
+ * @param message Plain object to verify
7571
+ * @returns `null` if valid, otherwise the reason why it is not
7572
+ */
7573
+ public static verify(message: { [k: string]: any }): (string|null);
7574
+
7575
+ /**
7576
+ * Creates a TunnelInfo message from a plain object. Also converts values to their respective internal types.
7577
+ * @param object Plain object
7578
+ * @returns TunnelInfo
7579
+ */
7580
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.PolylineDetails.TunnelInfo;
7581
+
7582
+ /**
7583
+ * Creates a plain object from a TunnelInfo message. Also converts values to other types if specified.
7584
+ * @param message TunnelInfo
7585
+ * @param [options] Conversion options
7586
+ * @returns Plain object
7587
+ */
7588
+ public static toObject(message: google.maps.routing.v2.PolylineDetails.TunnelInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
7589
+
7590
+ /**
7591
+ * Converts this TunnelInfo to JSON.
7592
+ * @returns JSON object
7593
+ */
7594
+ public toJSON(): { [k: string]: any };
7595
+
7596
+ /**
7597
+ * Gets the default type url for TunnelInfo
7598
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7599
+ * @returns The default type url
7600
+ */
7601
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7602
+ }
7603
+
7604
+ /** Properties of a BridgeInfo. */
7605
+ interface IBridgeInfo {
7606
+
7607
+ /** BridgeInfo bridgePresence */
7608
+ bridgePresence?: (google.maps.routing.v2.PolylineDetails.RoadFeatureState|keyof typeof google.maps.routing.v2.PolylineDetails.RoadFeatureState|null);
7609
+
7610
+ /** BridgeInfo polylinePointIndex */
7611
+ polylinePointIndex?: (google.maps.routing.v2.PolylineDetails.IPolylinePointIndex|null);
7612
+ }
7613
+
7614
+ /** Represents a BridgeInfo. */
7615
+ class BridgeInfo implements IBridgeInfo {
7616
+
7617
+ /**
7618
+ * Constructs a new BridgeInfo.
7619
+ * @param [properties] Properties to set
7620
+ */
7621
+ constructor(properties?: google.maps.routing.v2.PolylineDetails.IBridgeInfo);
7622
+
7623
+ /** BridgeInfo bridgePresence. */
7624
+ public bridgePresence: (google.maps.routing.v2.PolylineDetails.RoadFeatureState|keyof typeof google.maps.routing.v2.PolylineDetails.RoadFeatureState);
7625
+
7626
+ /** BridgeInfo polylinePointIndex. */
7627
+ public polylinePointIndex?: (google.maps.routing.v2.PolylineDetails.IPolylinePointIndex|null);
7628
+
7629
+ /**
7630
+ * Creates a new BridgeInfo instance using the specified properties.
7631
+ * @param [properties] Properties to set
7632
+ * @returns BridgeInfo instance
7633
+ */
7634
+ public static create(properties?: google.maps.routing.v2.PolylineDetails.IBridgeInfo): google.maps.routing.v2.PolylineDetails.BridgeInfo;
7635
+
7636
+ /**
7637
+ * Encodes the specified BridgeInfo message. Does not implicitly {@link google.maps.routing.v2.PolylineDetails.BridgeInfo.verify|verify} messages.
7638
+ * @param message BridgeInfo message or plain object to encode
7639
+ * @param [writer] Writer to encode to
7640
+ * @returns Writer
7641
+ */
7642
+ public static encode(message: google.maps.routing.v2.PolylineDetails.IBridgeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
7643
+
7644
+ /**
7645
+ * Encodes the specified BridgeInfo message, length delimited. Does not implicitly {@link google.maps.routing.v2.PolylineDetails.BridgeInfo.verify|verify} messages.
7646
+ * @param message BridgeInfo message or plain object to encode
7647
+ * @param [writer] Writer to encode to
7648
+ * @returns Writer
7649
+ */
7650
+ public static encodeDelimited(message: google.maps.routing.v2.PolylineDetails.IBridgeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
7651
+
7652
+ /**
7653
+ * Decodes a BridgeInfo message from the specified reader or buffer.
7654
+ * @param reader Reader or buffer to decode from
7655
+ * @param [length] Message length if known beforehand
7656
+ * @returns BridgeInfo
7657
+ * @throws {Error} If the payload is not a reader or valid buffer
7658
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7659
+ */
7660
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.PolylineDetails.BridgeInfo;
7661
+
7662
+ /**
7663
+ * Decodes a BridgeInfo message from the specified reader or buffer, length delimited.
7664
+ * @param reader Reader or buffer to decode from
7665
+ * @returns BridgeInfo
7666
+ * @throws {Error} If the payload is not a reader or valid buffer
7667
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7668
+ */
7669
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.PolylineDetails.BridgeInfo;
7670
+
7671
+ /**
7672
+ * Verifies a BridgeInfo message.
7673
+ * @param message Plain object to verify
7674
+ * @returns `null` if valid, otherwise the reason why it is not
7675
+ */
7676
+ public static verify(message: { [k: string]: any }): (string|null);
7677
+
7678
+ /**
7679
+ * Creates a BridgeInfo message from a plain object. Also converts values to their respective internal types.
7680
+ * @param object Plain object
7681
+ * @returns BridgeInfo
7682
+ */
7683
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.PolylineDetails.BridgeInfo;
7684
+
7685
+ /**
7686
+ * Creates a plain object from a BridgeInfo message. Also converts values to other types if specified.
7687
+ * @param message BridgeInfo
7688
+ * @param [options] Conversion options
7689
+ * @returns Plain object
7690
+ */
7691
+ public static toObject(message: google.maps.routing.v2.PolylineDetails.BridgeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
7692
+
7693
+ /**
7694
+ * Converts this BridgeInfo to JSON.
7695
+ * @returns JSON object
7696
+ */
7697
+ public toJSON(): { [k: string]: any };
7698
+
7699
+ /**
7700
+ * Gets the default type url for BridgeInfo
7701
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7702
+ * @returns The default type url
7703
+ */
7704
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7705
+ }
7706
+
7707
+ /** Properties of a SkywayInfo. */
7708
+ interface ISkywayInfo {
7709
+
7710
+ /** SkywayInfo skywayPresence */
7711
+ skywayPresence?: (google.maps.routing.v2.PolylineDetails.RoadFeatureState|keyof typeof google.maps.routing.v2.PolylineDetails.RoadFeatureState|null);
7712
+
7713
+ /** SkywayInfo polylinePointIndex */
7714
+ polylinePointIndex?: (google.maps.routing.v2.PolylineDetails.IPolylinePointIndex|null);
7715
+ }
7716
+
7717
+ /** Represents a SkywayInfo. */
7718
+ class SkywayInfo implements ISkywayInfo {
7719
+
7720
+ /**
7721
+ * Constructs a new SkywayInfo.
7722
+ * @param [properties] Properties to set
7723
+ */
7724
+ constructor(properties?: google.maps.routing.v2.PolylineDetails.ISkywayInfo);
7725
+
7726
+ /** SkywayInfo skywayPresence. */
7727
+ public skywayPresence: (google.maps.routing.v2.PolylineDetails.RoadFeatureState|keyof typeof google.maps.routing.v2.PolylineDetails.RoadFeatureState);
7728
+
7729
+ /** SkywayInfo polylinePointIndex. */
7730
+ public polylinePointIndex?: (google.maps.routing.v2.PolylineDetails.IPolylinePointIndex|null);
7731
+
7732
+ /**
7733
+ * Creates a new SkywayInfo instance using the specified properties.
7734
+ * @param [properties] Properties to set
7735
+ * @returns SkywayInfo instance
7736
+ */
7737
+ public static create(properties?: google.maps.routing.v2.PolylineDetails.ISkywayInfo): google.maps.routing.v2.PolylineDetails.SkywayInfo;
7738
+
7739
+ /**
7740
+ * Encodes the specified SkywayInfo message. Does not implicitly {@link google.maps.routing.v2.PolylineDetails.SkywayInfo.verify|verify} messages.
7741
+ * @param message SkywayInfo message or plain object to encode
7742
+ * @param [writer] Writer to encode to
7743
+ * @returns Writer
7744
+ */
7745
+ public static encode(message: google.maps.routing.v2.PolylineDetails.ISkywayInfo, writer?: $protobuf.Writer): $protobuf.Writer;
7746
+
7747
+ /**
7748
+ * Encodes the specified SkywayInfo message, length delimited. Does not implicitly {@link google.maps.routing.v2.PolylineDetails.SkywayInfo.verify|verify} messages.
7749
+ * @param message SkywayInfo message or plain object to encode
7750
+ * @param [writer] Writer to encode to
7751
+ * @returns Writer
7752
+ */
7753
+ public static encodeDelimited(message: google.maps.routing.v2.PolylineDetails.ISkywayInfo, writer?: $protobuf.Writer): $protobuf.Writer;
7754
+
7755
+ /**
7756
+ * Decodes a SkywayInfo message from the specified reader or buffer.
7757
+ * @param reader Reader or buffer to decode from
7758
+ * @param [length] Message length if known beforehand
7759
+ * @returns SkywayInfo
7760
+ * @throws {Error} If the payload is not a reader or valid buffer
7761
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7762
+ */
7763
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.routing.v2.PolylineDetails.SkywayInfo;
7764
+
7765
+ /**
7766
+ * Decodes a SkywayInfo message from the specified reader or buffer, length delimited.
7767
+ * @param reader Reader or buffer to decode from
7768
+ * @returns SkywayInfo
7769
+ * @throws {Error} If the payload is not a reader or valid buffer
7770
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7771
+ */
7772
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.routing.v2.PolylineDetails.SkywayInfo;
7773
+
7774
+ /**
7775
+ * Verifies a SkywayInfo message.
7776
+ * @param message Plain object to verify
7777
+ * @returns `null` if valid, otherwise the reason why it is not
7778
+ */
7779
+ public static verify(message: { [k: string]: any }): (string|null);
7780
+
7781
+ /**
7782
+ * Creates a SkywayInfo message from a plain object. Also converts values to their respective internal types.
7783
+ * @param object Plain object
7784
+ * @returns SkywayInfo
7785
+ */
7786
+ public static fromObject(object: { [k: string]: any }): google.maps.routing.v2.PolylineDetails.SkywayInfo;
7787
+
7788
+ /**
7789
+ * Creates a plain object from a SkywayInfo message. Also converts values to other types if specified.
7790
+ * @param message SkywayInfo
7791
+ * @param [options] Conversion options
7792
+ * @returns Plain object
7793
+ */
7794
+ public static toObject(message: google.maps.routing.v2.PolylineDetails.SkywayInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
7795
+
7796
+ /**
7797
+ * Converts this SkywayInfo to JSON.
7798
+ * @returns JSON object
7799
+ */
7800
+ public toJSON(): { [k: string]: any };
7801
+
7802
+ /**
7803
+ * Gets the default type url for SkywayInfo
7804
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7805
+ * @returns The default type url
7806
+ */
7807
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7808
+ }
7809
+
7483
7810
  /** Properties of a FlyoverInfo. */
7484
7811
  interface IFlyoverInfo {
7485
7812
 
@@ -10141,6 +10468,9 @@ export namespace google {
10141
10468
 
10142
10469
  /** RouteModifiers tollPasses */
10143
10470
  tollPasses?: (google.maps.routing.v2.TollPass[]|null);
10471
+
10472
+ /** RouteModifiers avoidTunnels */
10473
+ avoidTunnels?: (boolean|null);
10144
10474
  }
10145
10475
 
10146
10476
  /** Represents a RouteModifiers. */
@@ -10170,6 +10500,9 @@ export namespace google {
10170
10500
  /** RouteModifiers tollPasses. */
10171
10501
  public tollPasses: google.maps.routing.v2.TollPass[];
10172
10502
 
10503
+ /** RouteModifiers avoidTunnels. */
10504
+ public avoidTunnels: boolean;
10505
+
10173
10506
  /**
10174
10507
  * Creates a new RouteModifiers instance using the specified properties.
10175
10508
  * @param [properties] Properties to set
@@ -10309,6 +10642,7 @@ export namespace google {
10309
10642
  US_ME_EZPASSME = 35,
10310
10643
  US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD = 36,
10311
10644
  US_MI_BCPASS = 94,
10645
+ US_MI_BREAKAWAY = 101,
10312
10646
  US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG = 37,
10313
10647
  US_MI_IQ_PROX_CARD = 38,
10314
10648
  US_MI_IQ_TAG = 95,
@@ -10745,7 +11079,10 @@ export namespace google {
10745
11079
  TRAFFIC_ON_POLYLINE = 3,
10746
11080
  HTML_FORMATTED_NAVIGATION_INSTRUCTIONS = 4,
10747
11081
  FLYOVER_INFO_ON_POLYLINE = 7,
10748
- NARROW_ROAD_INFO_ON_POLYLINE = 8
11082
+ NARROW_ROAD_INFO_ON_POLYLINE = 8,
11083
+ TUNNEL_INFO_ON_POLYLINE = 9,
11084
+ BRIDGE_INFO_ON_POLYLINE = 10,
11085
+ SKYWAY_INFO_ON_POLYLINE = 11
10749
11086
  }
10750
11087
  }
10751
11088