@googlemaps/places 1.6.0 → 1.7.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.
@@ -4583,6 +4583,121 @@ export namespace google {
4583
4583
  type AutocompletePlacesCallback = (error: (Error|null), response?: google.maps.places.v1.AutocompletePlacesResponse) => void;
4584
4584
  }
4585
4585
 
4586
+ /** Properties of a RoutingParameters. */
4587
+ interface IRoutingParameters {
4588
+
4589
+ /** RoutingParameters origin */
4590
+ origin?: (google.type.ILatLng|null);
4591
+
4592
+ /** RoutingParameters travelMode */
4593
+ travelMode?: (google.maps.places.v1.TravelMode|keyof typeof google.maps.places.v1.TravelMode|null);
4594
+
4595
+ /** RoutingParameters routeModifiers */
4596
+ routeModifiers?: (google.maps.places.v1.IRouteModifiers|null);
4597
+
4598
+ /** RoutingParameters routingPreference */
4599
+ routingPreference?: (google.maps.places.v1.RoutingPreference|keyof typeof google.maps.places.v1.RoutingPreference|null);
4600
+ }
4601
+
4602
+ /** Represents a RoutingParameters. */
4603
+ class RoutingParameters implements IRoutingParameters {
4604
+
4605
+ /**
4606
+ * Constructs a new RoutingParameters.
4607
+ * @param [properties] Properties to set
4608
+ */
4609
+ constructor(properties?: google.maps.places.v1.IRoutingParameters);
4610
+
4611
+ /** RoutingParameters origin. */
4612
+ public origin?: (google.type.ILatLng|null);
4613
+
4614
+ /** RoutingParameters travelMode. */
4615
+ public travelMode: (google.maps.places.v1.TravelMode|keyof typeof google.maps.places.v1.TravelMode);
4616
+
4617
+ /** RoutingParameters routeModifiers. */
4618
+ public routeModifiers?: (google.maps.places.v1.IRouteModifiers|null);
4619
+
4620
+ /** RoutingParameters routingPreference. */
4621
+ public routingPreference: (google.maps.places.v1.RoutingPreference|keyof typeof google.maps.places.v1.RoutingPreference);
4622
+
4623
+ /**
4624
+ * Creates a new RoutingParameters instance using the specified properties.
4625
+ * @param [properties] Properties to set
4626
+ * @returns RoutingParameters instance
4627
+ */
4628
+ public static create(properties?: google.maps.places.v1.IRoutingParameters): google.maps.places.v1.RoutingParameters;
4629
+
4630
+ /**
4631
+ * Encodes the specified RoutingParameters message. Does not implicitly {@link google.maps.places.v1.RoutingParameters.verify|verify} messages.
4632
+ * @param message RoutingParameters message or plain object to encode
4633
+ * @param [writer] Writer to encode to
4634
+ * @returns Writer
4635
+ */
4636
+ public static encode(message: google.maps.places.v1.IRoutingParameters, writer?: $protobuf.Writer): $protobuf.Writer;
4637
+
4638
+ /**
4639
+ * Encodes the specified RoutingParameters message, length delimited. Does not implicitly {@link google.maps.places.v1.RoutingParameters.verify|verify} messages.
4640
+ * @param message RoutingParameters message or plain object to encode
4641
+ * @param [writer] Writer to encode to
4642
+ * @returns Writer
4643
+ */
4644
+ public static encodeDelimited(message: google.maps.places.v1.IRoutingParameters, writer?: $protobuf.Writer): $protobuf.Writer;
4645
+
4646
+ /**
4647
+ * Decodes a RoutingParameters message from the specified reader or buffer.
4648
+ * @param reader Reader or buffer to decode from
4649
+ * @param [length] Message length if known beforehand
4650
+ * @returns RoutingParameters
4651
+ * @throws {Error} If the payload is not a reader or valid buffer
4652
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4653
+ */
4654
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.RoutingParameters;
4655
+
4656
+ /**
4657
+ * Decodes a RoutingParameters message from the specified reader or buffer, length delimited.
4658
+ * @param reader Reader or buffer to decode from
4659
+ * @returns RoutingParameters
4660
+ * @throws {Error} If the payload is not a reader or valid buffer
4661
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4662
+ */
4663
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.RoutingParameters;
4664
+
4665
+ /**
4666
+ * Verifies a RoutingParameters message.
4667
+ * @param message Plain object to verify
4668
+ * @returns `null` if valid, otherwise the reason why it is not
4669
+ */
4670
+ public static verify(message: { [k: string]: any }): (string|null);
4671
+
4672
+ /**
4673
+ * Creates a RoutingParameters message from a plain object. Also converts values to their respective internal types.
4674
+ * @param object Plain object
4675
+ * @returns RoutingParameters
4676
+ */
4677
+ public static fromObject(object: { [k: string]: any }): google.maps.places.v1.RoutingParameters;
4678
+
4679
+ /**
4680
+ * Creates a plain object from a RoutingParameters message. Also converts values to other types if specified.
4681
+ * @param message RoutingParameters
4682
+ * @param [options] Conversion options
4683
+ * @returns Plain object
4684
+ */
4685
+ public static toObject(message: google.maps.places.v1.RoutingParameters, options?: $protobuf.IConversionOptions): { [k: string]: any };
4686
+
4687
+ /**
4688
+ * Converts this RoutingParameters to JSON.
4689
+ * @returns JSON object
4690
+ */
4691
+ public toJSON(): { [k: string]: any };
4692
+
4693
+ /**
4694
+ * Gets the default type url for RoutingParameters
4695
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4696
+ * @returns The default type url
4697
+ */
4698
+ public static getTypeUrl(typeUrlPrefix?: string): string;
4699
+ }
4700
+
4586
4701
  /** Properties of a SearchNearbyRequest. */
4587
4702
  interface ISearchNearbyRequest {
4588
4703
 
@@ -4612,6 +4727,9 @@ export namespace google {
4612
4727
 
4613
4728
  /** SearchNearbyRequest rankPreference */
4614
4729
  rankPreference?: (google.maps.places.v1.SearchNearbyRequest.RankPreference|keyof typeof google.maps.places.v1.SearchNearbyRequest.RankPreference|null);
4730
+
4731
+ /** SearchNearbyRequest routingParameters */
4732
+ routingParameters?: (google.maps.places.v1.IRoutingParameters|null);
4615
4733
  }
4616
4734
 
4617
4735
  /** Represents a SearchNearbyRequest. */
@@ -4650,6 +4768,9 @@ export namespace google {
4650
4768
  /** SearchNearbyRequest rankPreference. */
4651
4769
  public rankPreference: (google.maps.places.v1.SearchNearbyRequest.RankPreference|keyof typeof google.maps.places.v1.SearchNearbyRequest.RankPreference);
4652
4770
 
4771
+ /** SearchNearbyRequest routingParameters. */
4772
+ public routingParameters?: (google.maps.places.v1.IRoutingParameters|null);
4773
+
4653
4774
  /**
4654
4775
  * Creates a new SearchNearbyRequest instance using the specified properties.
4655
4776
  * @param [properties] Properties to set
@@ -4843,6 +4964,9 @@ export namespace google {
4843
4964
 
4844
4965
  /** SearchNearbyResponse places */
4845
4966
  places?: (google.maps.places.v1.IPlace[]|null);
4967
+
4968
+ /** SearchNearbyResponse routingSummaries */
4969
+ routingSummaries?: (google.maps.places.v1.IRoutingSummary[]|null);
4846
4970
  }
4847
4971
 
4848
4972
  /** Represents a SearchNearbyResponse. */
@@ -4857,6 +4981,9 @@ export namespace google {
4857
4981
  /** SearchNearbyResponse places. */
4858
4982
  public places: google.maps.places.v1.IPlace[];
4859
4983
 
4984
+ /** SearchNearbyResponse routingSummaries. */
4985
+ public routingSummaries: google.maps.places.v1.IRoutingSummary[];
4986
+
4860
4987
  /**
4861
4988
  * Creates a new SearchNearbyResponse instance using the specified properties.
4862
4989
  * @param [properties] Properties to set
@@ -4976,6 +5103,12 @@ export namespace google {
4976
5103
 
4977
5104
  /** SearchTextRequest evOptions */
4978
5105
  evOptions?: (google.maps.places.v1.SearchTextRequest.IEVOptions|null);
5106
+
5107
+ /** SearchTextRequest routingParameters */
5108
+ routingParameters?: (google.maps.places.v1.IRoutingParameters|null);
5109
+
5110
+ /** SearchTextRequest searchAlongRouteParameters */
5111
+ searchAlongRouteParameters?: (google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters|null);
4979
5112
  }
4980
5113
 
4981
5114
  /** Represents a SearchTextRequest. */
@@ -5026,6 +5159,12 @@ export namespace google {
5026
5159
  /** SearchTextRequest evOptions. */
5027
5160
  public evOptions?: (google.maps.places.v1.SearchTextRequest.IEVOptions|null);
5028
5161
 
5162
+ /** SearchTextRequest routingParameters. */
5163
+ public routingParameters?: (google.maps.places.v1.IRoutingParameters|null);
5164
+
5165
+ /** SearchTextRequest searchAlongRouteParameters. */
5166
+ public searchAlongRouteParameters?: (google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters|null);
5167
+
5029
5168
  /**
5030
5169
  * Creates a new SearchTextRequest instance using the specified properties.
5031
5170
  * @param [properties] Properties to set
@@ -5421,6 +5560,103 @@ export namespace google {
5421
5560
  */
5422
5561
  public static getTypeUrl(typeUrlPrefix?: string): string;
5423
5562
  }
5563
+
5564
+ /** Properties of a SearchAlongRouteParameters. */
5565
+ interface ISearchAlongRouteParameters {
5566
+
5567
+ /** SearchAlongRouteParameters polyline */
5568
+ polyline?: (google.maps.places.v1.IPolyline|null);
5569
+ }
5570
+
5571
+ /** Represents a SearchAlongRouteParameters. */
5572
+ class SearchAlongRouteParameters implements ISearchAlongRouteParameters {
5573
+
5574
+ /**
5575
+ * Constructs a new SearchAlongRouteParameters.
5576
+ * @param [properties] Properties to set
5577
+ */
5578
+ constructor(properties?: google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters);
5579
+
5580
+ /** SearchAlongRouteParameters polyline. */
5581
+ public polyline?: (google.maps.places.v1.IPolyline|null);
5582
+
5583
+ /**
5584
+ * Creates a new SearchAlongRouteParameters instance using the specified properties.
5585
+ * @param [properties] Properties to set
5586
+ * @returns SearchAlongRouteParameters instance
5587
+ */
5588
+ public static create(properties?: google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters): google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters;
5589
+
5590
+ /**
5591
+ * Encodes the specified SearchAlongRouteParameters message. Does not implicitly {@link google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters.verify|verify} messages.
5592
+ * @param message SearchAlongRouteParameters message or plain object to encode
5593
+ * @param [writer] Writer to encode to
5594
+ * @returns Writer
5595
+ */
5596
+ public static encode(message: google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters, writer?: $protobuf.Writer): $protobuf.Writer;
5597
+
5598
+ /**
5599
+ * Encodes the specified SearchAlongRouteParameters message, length delimited. Does not implicitly {@link google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters.verify|verify} messages.
5600
+ * @param message SearchAlongRouteParameters message or plain object to encode
5601
+ * @param [writer] Writer to encode to
5602
+ * @returns Writer
5603
+ */
5604
+ public static encodeDelimited(message: google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters, writer?: $protobuf.Writer): $protobuf.Writer;
5605
+
5606
+ /**
5607
+ * Decodes a SearchAlongRouteParameters message from the specified reader or buffer.
5608
+ * @param reader Reader or buffer to decode from
5609
+ * @param [length] Message length if known beforehand
5610
+ * @returns SearchAlongRouteParameters
5611
+ * @throws {Error} If the payload is not a reader or valid buffer
5612
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5613
+ */
5614
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters;
5615
+
5616
+ /**
5617
+ * Decodes a SearchAlongRouteParameters message from the specified reader or buffer, length delimited.
5618
+ * @param reader Reader or buffer to decode from
5619
+ * @returns SearchAlongRouteParameters
5620
+ * @throws {Error} If the payload is not a reader or valid buffer
5621
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5622
+ */
5623
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters;
5624
+
5625
+ /**
5626
+ * Verifies a SearchAlongRouteParameters message.
5627
+ * @param message Plain object to verify
5628
+ * @returns `null` if valid, otherwise the reason why it is not
5629
+ */
5630
+ public static verify(message: { [k: string]: any }): (string|null);
5631
+
5632
+ /**
5633
+ * Creates a SearchAlongRouteParameters message from a plain object. Also converts values to their respective internal types.
5634
+ * @param object Plain object
5635
+ * @returns SearchAlongRouteParameters
5636
+ */
5637
+ public static fromObject(object: { [k: string]: any }): google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters;
5638
+
5639
+ /**
5640
+ * Creates a plain object from a SearchAlongRouteParameters message. Also converts values to other types if specified.
5641
+ * @param message SearchAlongRouteParameters
5642
+ * @param [options] Conversion options
5643
+ * @returns Plain object
5644
+ */
5645
+ public static toObject(message: google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters, options?: $protobuf.IConversionOptions): { [k: string]: any };
5646
+
5647
+ /**
5648
+ * Converts this SearchAlongRouteParameters to JSON.
5649
+ * @returns JSON object
5650
+ */
5651
+ public toJSON(): { [k: string]: any };
5652
+
5653
+ /**
5654
+ * Gets the default type url for SearchAlongRouteParameters
5655
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5656
+ * @returns The default type url
5657
+ */
5658
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5659
+ }
5424
5660
  }
5425
5661
 
5426
5662
  /** Properties of a SearchTextResponse. */
@@ -5429,6 +5665,9 @@ export namespace google {
5429
5665
  /** SearchTextResponse places */
5430
5666
  places?: (google.maps.places.v1.IPlace[]|null);
5431
5667
 
5668
+ /** SearchTextResponse routingSummaries */
5669
+ routingSummaries?: (google.maps.places.v1.IRoutingSummary[]|null);
5670
+
5432
5671
  /** SearchTextResponse contextualContents */
5433
5672
  contextualContents?: (google.maps.places.v1.IContextualContent[]|null);
5434
5673
  }
@@ -5445,6 +5684,9 @@ export namespace google {
5445
5684
  /** SearchTextResponse places. */
5446
5685
  public places: google.maps.places.v1.IPlace[];
5447
5686
 
5687
+ /** SearchTextResponse routingSummaries. */
5688
+ public routingSummaries: google.maps.places.v1.IRoutingSummary[];
5689
+
5448
5690
  /** SearchTextResponse contextualContents. */
5449
5691
  public contextualContents: google.maps.places.v1.IContextualContent[];
5450
5692
 
@@ -6978,6 +7220,441 @@ export namespace google {
6978
7220
  }
6979
7221
  }
6980
7222
  }
7223
+
7224
+ /** Properties of a Polyline. */
7225
+ interface IPolyline {
7226
+
7227
+ /** Polyline encodedPolyline */
7228
+ encodedPolyline?: (string|null);
7229
+ }
7230
+
7231
+ /** Represents a Polyline. */
7232
+ class Polyline implements IPolyline {
7233
+
7234
+ /**
7235
+ * Constructs a new Polyline.
7236
+ * @param [properties] Properties to set
7237
+ */
7238
+ constructor(properties?: google.maps.places.v1.IPolyline);
7239
+
7240
+ /** Polyline encodedPolyline. */
7241
+ public encodedPolyline?: (string|null);
7242
+
7243
+ /** Polyline polylineType. */
7244
+ public polylineType?: "encodedPolyline";
7245
+
7246
+ /**
7247
+ * Creates a new Polyline instance using the specified properties.
7248
+ * @param [properties] Properties to set
7249
+ * @returns Polyline instance
7250
+ */
7251
+ public static create(properties?: google.maps.places.v1.IPolyline): google.maps.places.v1.Polyline;
7252
+
7253
+ /**
7254
+ * Encodes the specified Polyline message. Does not implicitly {@link google.maps.places.v1.Polyline.verify|verify} messages.
7255
+ * @param message Polyline message or plain object to encode
7256
+ * @param [writer] Writer to encode to
7257
+ * @returns Writer
7258
+ */
7259
+ public static encode(message: google.maps.places.v1.IPolyline, writer?: $protobuf.Writer): $protobuf.Writer;
7260
+
7261
+ /**
7262
+ * Encodes the specified Polyline message, length delimited. Does not implicitly {@link google.maps.places.v1.Polyline.verify|verify} messages.
7263
+ * @param message Polyline message or plain object to encode
7264
+ * @param [writer] Writer to encode to
7265
+ * @returns Writer
7266
+ */
7267
+ public static encodeDelimited(message: google.maps.places.v1.IPolyline, writer?: $protobuf.Writer): $protobuf.Writer;
7268
+
7269
+ /**
7270
+ * Decodes a Polyline message from the specified reader or buffer.
7271
+ * @param reader Reader or buffer to decode from
7272
+ * @param [length] Message length if known beforehand
7273
+ * @returns Polyline
7274
+ * @throws {Error} If the payload is not a reader or valid buffer
7275
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7276
+ */
7277
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.Polyline;
7278
+
7279
+ /**
7280
+ * Decodes a Polyline message from the specified reader or buffer, length delimited.
7281
+ * @param reader Reader or buffer to decode from
7282
+ * @returns Polyline
7283
+ * @throws {Error} If the payload is not a reader or valid buffer
7284
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7285
+ */
7286
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.Polyline;
7287
+
7288
+ /**
7289
+ * Verifies a Polyline message.
7290
+ * @param message Plain object to verify
7291
+ * @returns `null` if valid, otherwise the reason why it is not
7292
+ */
7293
+ public static verify(message: { [k: string]: any }): (string|null);
7294
+
7295
+ /**
7296
+ * Creates a Polyline message from a plain object. Also converts values to their respective internal types.
7297
+ * @param object Plain object
7298
+ * @returns Polyline
7299
+ */
7300
+ public static fromObject(object: { [k: string]: any }): google.maps.places.v1.Polyline;
7301
+
7302
+ /**
7303
+ * Creates a plain object from a Polyline message. Also converts values to other types if specified.
7304
+ * @param message Polyline
7305
+ * @param [options] Conversion options
7306
+ * @returns Plain object
7307
+ */
7308
+ public static toObject(message: google.maps.places.v1.Polyline, options?: $protobuf.IConversionOptions): { [k: string]: any };
7309
+
7310
+ /**
7311
+ * Converts this Polyline to JSON.
7312
+ * @returns JSON object
7313
+ */
7314
+ public toJSON(): { [k: string]: any };
7315
+
7316
+ /**
7317
+ * Gets the default type url for Polyline
7318
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7319
+ * @returns The default type url
7320
+ */
7321
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7322
+ }
7323
+
7324
+ /** Properties of a RouteModifiers. */
7325
+ interface IRouteModifiers {
7326
+
7327
+ /** RouteModifiers avoidTolls */
7328
+ avoidTolls?: (boolean|null);
7329
+
7330
+ /** RouteModifiers avoidHighways */
7331
+ avoidHighways?: (boolean|null);
7332
+
7333
+ /** RouteModifiers avoidFerries */
7334
+ avoidFerries?: (boolean|null);
7335
+
7336
+ /** RouteModifiers avoidIndoor */
7337
+ avoidIndoor?: (boolean|null);
7338
+ }
7339
+
7340
+ /** Represents a RouteModifiers. */
7341
+ class RouteModifiers implements IRouteModifiers {
7342
+
7343
+ /**
7344
+ * Constructs a new RouteModifiers.
7345
+ * @param [properties] Properties to set
7346
+ */
7347
+ constructor(properties?: google.maps.places.v1.IRouteModifiers);
7348
+
7349
+ /** RouteModifiers avoidTolls. */
7350
+ public avoidTolls: boolean;
7351
+
7352
+ /** RouteModifiers avoidHighways. */
7353
+ public avoidHighways: boolean;
7354
+
7355
+ /** RouteModifiers avoidFerries. */
7356
+ public avoidFerries: boolean;
7357
+
7358
+ /** RouteModifiers avoidIndoor. */
7359
+ public avoidIndoor: boolean;
7360
+
7361
+ /**
7362
+ * Creates a new RouteModifiers instance using the specified properties.
7363
+ * @param [properties] Properties to set
7364
+ * @returns RouteModifiers instance
7365
+ */
7366
+ public static create(properties?: google.maps.places.v1.IRouteModifiers): google.maps.places.v1.RouteModifiers;
7367
+
7368
+ /**
7369
+ * Encodes the specified RouteModifiers message. Does not implicitly {@link google.maps.places.v1.RouteModifiers.verify|verify} messages.
7370
+ * @param message RouteModifiers message or plain object to encode
7371
+ * @param [writer] Writer to encode to
7372
+ * @returns Writer
7373
+ */
7374
+ public static encode(message: google.maps.places.v1.IRouteModifiers, writer?: $protobuf.Writer): $protobuf.Writer;
7375
+
7376
+ /**
7377
+ * Encodes the specified RouteModifiers message, length delimited. Does not implicitly {@link google.maps.places.v1.RouteModifiers.verify|verify} messages.
7378
+ * @param message RouteModifiers message or plain object to encode
7379
+ * @param [writer] Writer to encode to
7380
+ * @returns Writer
7381
+ */
7382
+ public static encodeDelimited(message: google.maps.places.v1.IRouteModifiers, writer?: $protobuf.Writer): $protobuf.Writer;
7383
+
7384
+ /**
7385
+ * Decodes a RouteModifiers message from the specified reader or buffer.
7386
+ * @param reader Reader or buffer to decode from
7387
+ * @param [length] Message length if known beforehand
7388
+ * @returns RouteModifiers
7389
+ * @throws {Error} If the payload is not a reader or valid buffer
7390
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7391
+ */
7392
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.RouteModifiers;
7393
+
7394
+ /**
7395
+ * Decodes a RouteModifiers message from the specified reader or buffer, length delimited.
7396
+ * @param reader Reader or buffer to decode from
7397
+ * @returns RouteModifiers
7398
+ * @throws {Error} If the payload is not a reader or valid buffer
7399
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7400
+ */
7401
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.RouteModifiers;
7402
+
7403
+ /**
7404
+ * Verifies a RouteModifiers message.
7405
+ * @param message Plain object to verify
7406
+ * @returns `null` if valid, otherwise the reason why it is not
7407
+ */
7408
+ public static verify(message: { [k: string]: any }): (string|null);
7409
+
7410
+ /**
7411
+ * Creates a RouteModifiers message from a plain object. Also converts values to their respective internal types.
7412
+ * @param object Plain object
7413
+ * @returns RouteModifiers
7414
+ */
7415
+ public static fromObject(object: { [k: string]: any }): google.maps.places.v1.RouteModifiers;
7416
+
7417
+ /**
7418
+ * Creates a plain object from a RouteModifiers message. Also converts values to other types if specified.
7419
+ * @param message RouteModifiers
7420
+ * @param [options] Conversion options
7421
+ * @returns Plain object
7422
+ */
7423
+ public static toObject(message: google.maps.places.v1.RouteModifiers, options?: $protobuf.IConversionOptions): { [k: string]: any };
7424
+
7425
+ /**
7426
+ * Converts this RouteModifiers to JSON.
7427
+ * @returns JSON object
7428
+ */
7429
+ public toJSON(): { [k: string]: any };
7430
+
7431
+ /**
7432
+ * Gets the default type url for RouteModifiers
7433
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7434
+ * @returns The default type url
7435
+ */
7436
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7437
+ }
7438
+
7439
+ /** RoutingPreference enum. */
7440
+ enum RoutingPreference {
7441
+ ROUTING_PREFERENCE_UNSPECIFIED = 0,
7442
+ TRAFFIC_UNAWARE = 1,
7443
+ TRAFFIC_AWARE = 2,
7444
+ TRAFFIC_AWARE_OPTIMAL = 3
7445
+ }
7446
+
7447
+ /** Properties of a RoutingSummary. */
7448
+ interface IRoutingSummary {
7449
+
7450
+ /** RoutingSummary legs */
7451
+ legs?: (google.maps.places.v1.RoutingSummary.ILeg[]|null);
7452
+ }
7453
+
7454
+ /** Represents a RoutingSummary. */
7455
+ class RoutingSummary implements IRoutingSummary {
7456
+
7457
+ /**
7458
+ * Constructs a new RoutingSummary.
7459
+ * @param [properties] Properties to set
7460
+ */
7461
+ constructor(properties?: google.maps.places.v1.IRoutingSummary);
7462
+
7463
+ /** RoutingSummary legs. */
7464
+ public legs: google.maps.places.v1.RoutingSummary.ILeg[];
7465
+
7466
+ /**
7467
+ * Creates a new RoutingSummary instance using the specified properties.
7468
+ * @param [properties] Properties to set
7469
+ * @returns RoutingSummary instance
7470
+ */
7471
+ public static create(properties?: google.maps.places.v1.IRoutingSummary): google.maps.places.v1.RoutingSummary;
7472
+
7473
+ /**
7474
+ * Encodes the specified RoutingSummary message. Does not implicitly {@link google.maps.places.v1.RoutingSummary.verify|verify} messages.
7475
+ * @param message RoutingSummary message or plain object to encode
7476
+ * @param [writer] Writer to encode to
7477
+ * @returns Writer
7478
+ */
7479
+ public static encode(message: google.maps.places.v1.IRoutingSummary, writer?: $protobuf.Writer): $protobuf.Writer;
7480
+
7481
+ /**
7482
+ * Encodes the specified RoutingSummary message, length delimited. Does not implicitly {@link google.maps.places.v1.RoutingSummary.verify|verify} messages.
7483
+ * @param message RoutingSummary message or plain object to encode
7484
+ * @param [writer] Writer to encode to
7485
+ * @returns Writer
7486
+ */
7487
+ public static encodeDelimited(message: google.maps.places.v1.IRoutingSummary, writer?: $protobuf.Writer): $protobuf.Writer;
7488
+
7489
+ /**
7490
+ * Decodes a RoutingSummary message from the specified reader or buffer.
7491
+ * @param reader Reader or buffer to decode from
7492
+ * @param [length] Message length if known beforehand
7493
+ * @returns RoutingSummary
7494
+ * @throws {Error} If the payload is not a reader or valid buffer
7495
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7496
+ */
7497
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.RoutingSummary;
7498
+
7499
+ /**
7500
+ * Decodes a RoutingSummary message from the specified reader or buffer, length delimited.
7501
+ * @param reader Reader or buffer to decode from
7502
+ * @returns RoutingSummary
7503
+ * @throws {Error} If the payload is not a reader or valid buffer
7504
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7505
+ */
7506
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.RoutingSummary;
7507
+
7508
+ /**
7509
+ * Verifies a RoutingSummary message.
7510
+ * @param message Plain object to verify
7511
+ * @returns `null` if valid, otherwise the reason why it is not
7512
+ */
7513
+ public static verify(message: { [k: string]: any }): (string|null);
7514
+
7515
+ /**
7516
+ * Creates a RoutingSummary message from a plain object. Also converts values to their respective internal types.
7517
+ * @param object Plain object
7518
+ * @returns RoutingSummary
7519
+ */
7520
+ public static fromObject(object: { [k: string]: any }): google.maps.places.v1.RoutingSummary;
7521
+
7522
+ /**
7523
+ * Creates a plain object from a RoutingSummary message. Also converts values to other types if specified.
7524
+ * @param message RoutingSummary
7525
+ * @param [options] Conversion options
7526
+ * @returns Plain object
7527
+ */
7528
+ public static toObject(message: google.maps.places.v1.RoutingSummary, options?: $protobuf.IConversionOptions): { [k: string]: any };
7529
+
7530
+ /**
7531
+ * Converts this RoutingSummary to JSON.
7532
+ * @returns JSON object
7533
+ */
7534
+ public toJSON(): { [k: string]: any };
7535
+
7536
+ /**
7537
+ * Gets the default type url for RoutingSummary
7538
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7539
+ * @returns The default type url
7540
+ */
7541
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7542
+ }
7543
+
7544
+ namespace RoutingSummary {
7545
+
7546
+ /** Properties of a Leg. */
7547
+ interface ILeg {
7548
+
7549
+ /** Leg duration */
7550
+ duration?: (google.protobuf.IDuration|null);
7551
+
7552
+ /** Leg distanceMeters */
7553
+ distanceMeters?: (number|null);
7554
+ }
7555
+
7556
+ /** Represents a Leg. */
7557
+ class Leg implements ILeg {
7558
+
7559
+ /**
7560
+ * Constructs a new Leg.
7561
+ * @param [properties] Properties to set
7562
+ */
7563
+ constructor(properties?: google.maps.places.v1.RoutingSummary.ILeg);
7564
+
7565
+ /** Leg duration. */
7566
+ public duration?: (google.protobuf.IDuration|null);
7567
+
7568
+ /** Leg distanceMeters. */
7569
+ public distanceMeters: number;
7570
+
7571
+ /**
7572
+ * Creates a new Leg instance using the specified properties.
7573
+ * @param [properties] Properties to set
7574
+ * @returns Leg instance
7575
+ */
7576
+ public static create(properties?: google.maps.places.v1.RoutingSummary.ILeg): google.maps.places.v1.RoutingSummary.Leg;
7577
+
7578
+ /**
7579
+ * Encodes the specified Leg message. Does not implicitly {@link google.maps.places.v1.RoutingSummary.Leg.verify|verify} messages.
7580
+ * @param message Leg message or plain object to encode
7581
+ * @param [writer] Writer to encode to
7582
+ * @returns Writer
7583
+ */
7584
+ public static encode(message: google.maps.places.v1.RoutingSummary.ILeg, writer?: $protobuf.Writer): $protobuf.Writer;
7585
+
7586
+ /**
7587
+ * Encodes the specified Leg message, length delimited. Does not implicitly {@link google.maps.places.v1.RoutingSummary.Leg.verify|verify} messages.
7588
+ * @param message Leg message or plain object to encode
7589
+ * @param [writer] Writer to encode to
7590
+ * @returns Writer
7591
+ */
7592
+ public static encodeDelimited(message: google.maps.places.v1.RoutingSummary.ILeg, writer?: $protobuf.Writer): $protobuf.Writer;
7593
+
7594
+ /**
7595
+ * Decodes a Leg message from the specified reader or buffer.
7596
+ * @param reader Reader or buffer to decode from
7597
+ * @param [length] Message length if known beforehand
7598
+ * @returns Leg
7599
+ * @throws {Error} If the payload is not a reader or valid buffer
7600
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7601
+ */
7602
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.RoutingSummary.Leg;
7603
+
7604
+ /**
7605
+ * Decodes a Leg message from the specified reader or buffer, length delimited.
7606
+ * @param reader Reader or buffer to decode from
7607
+ * @returns Leg
7608
+ * @throws {Error} If the payload is not a reader or valid buffer
7609
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7610
+ */
7611
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.RoutingSummary.Leg;
7612
+
7613
+ /**
7614
+ * Verifies a Leg message.
7615
+ * @param message Plain object to verify
7616
+ * @returns `null` if valid, otherwise the reason why it is not
7617
+ */
7618
+ public static verify(message: { [k: string]: any }): (string|null);
7619
+
7620
+ /**
7621
+ * Creates a Leg message from a plain object. Also converts values to their respective internal types.
7622
+ * @param object Plain object
7623
+ * @returns Leg
7624
+ */
7625
+ public static fromObject(object: { [k: string]: any }): google.maps.places.v1.RoutingSummary.Leg;
7626
+
7627
+ /**
7628
+ * Creates a plain object from a Leg message. Also converts values to other types if specified.
7629
+ * @param message Leg
7630
+ * @param [options] Conversion options
7631
+ * @returns Plain object
7632
+ */
7633
+ public static toObject(message: google.maps.places.v1.RoutingSummary.Leg, options?: $protobuf.IConversionOptions): { [k: string]: any };
7634
+
7635
+ /**
7636
+ * Converts this Leg to JSON.
7637
+ * @returns JSON object
7638
+ */
7639
+ public toJSON(): { [k: string]: any };
7640
+
7641
+ /**
7642
+ * Gets the default type url for Leg
7643
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7644
+ * @returns The default type url
7645
+ */
7646
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7647
+ }
7648
+ }
7649
+
7650
+ /** TravelMode enum. */
7651
+ enum TravelMode {
7652
+ TRAVEL_MODE_UNSPECIFIED = 0,
7653
+ DRIVE = 1,
7654
+ BICYCLE = 2,
7655
+ WALK = 3,
7656
+ TWO_WHEELER = 4
7657
+ }
6981
7658
  }
6982
7659
  }
6983
7660
  }