@googlemaps/places 1.6.0 → 1.8.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.
- package/CHANGELOG.md +14 -0
- package/README.md +2 -2
- package/build/protos/google/maps/places/v1/attribution.proto +0 -1
- package/build/protos/google/maps/places/v1/content_block.proto +0 -1
- package/build/protos/google/maps/places/v1/contextual_content.proto +0 -1
- package/build/protos/google/maps/places/v1/ev_charging.proto +0 -1
- package/build/protos/google/maps/places/v1/fuel_options.proto +0 -1
- package/build/protos/google/maps/places/v1/geometry.proto +0 -1
- package/build/protos/google/maps/places/v1/photo.proto +0 -1
- package/build/protos/google/maps/places/v1/place.proto +43 -5
- package/build/protos/google/maps/places/v1/places_service.proto +93 -2
- package/build/protos/google/maps/places/v1/polyline.proto +46 -0
- package/build/protos/google/maps/places/v1/price_range.proto +39 -0
- package/build/protos/google/maps/places/v1/reference.proto +0 -1
- package/build/protos/google/maps/places/v1/review.proto +0 -1
- package/build/protos/google/maps/places/v1/route_modifiers.proto +51 -0
- package/build/protos/google/maps/places/v1/routing_preference.proto +56 -0
- package/build/protos/google/maps/places/v1/routing_summary.proto +61 -0
- package/build/protos/google/maps/places/v1/travel_mode.proto +50 -0
- package/build/protos/protos.d.ts +953 -19
- package/build/protos/protos.js +5533 -3117
- package/build/protos/protos.json +239 -2
- package/build/src/v1/places_client.d.ts +22 -0
- package/build/src/v1/places_client.js.map +1 -1
- package/package.json +2 -2
package/build/protos/protos.d.ts
CHANGED
|
@@ -2561,6 +2561,15 @@ export namespace google {
|
|
|
2561
2561
|
|
|
2562
2562
|
/** Place areaSummary */
|
|
2563
2563
|
areaSummary?: (google.maps.places.v1.Place.IAreaSummary|null);
|
|
2564
|
+
|
|
2565
|
+
/** Place containingPlaces */
|
|
2566
|
+
containingPlaces?: (google.maps.places.v1.Place.IContainingPlace[]|null);
|
|
2567
|
+
|
|
2568
|
+
/** Place pureServiceAreaBusiness */
|
|
2569
|
+
pureServiceAreaBusiness?: (boolean|null);
|
|
2570
|
+
|
|
2571
|
+
/** Place priceRange */
|
|
2572
|
+
priceRange?: (google.maps.places.v1.IPriceRange|null);
|
|
2564
2573
|
}
|
|
2565
2574
|
|
|
2566
2575
|
/** Represents a Place. */
|
|
@@ -2761,6 +2770,15 @@ export namespace google {
|
|
|
2761
2770
|
/** Place areaSummary. */
|
|
2762
2771
|
public areaSummary?: (google.maps.places.v1.Place.IAreaSummary|null);
|
|
2763
2772
|
|
|
2773
|
+
/** Place containingPlaces. */
|
|
2774
|
+
public containingPlaces: google.maps.places.v1.Place.IContainingPlace[];
|
|
2775
|
+
|
|
2776
|
+
/** Place pureServiceAreaBusiness. */
|
|
2777
|
+
public pureServiceAreaBusiness?: (boolean|null);
|
|
2778
|
+
|
|
2779
|
+
/** Place priceRange. */
|
|
2780
|
+
public priceRange?: (google.maps.places.v1.IPriceRange|null);
|
|
2781
|
+
|
|
2764
2782
|
/** Place _utcOffsetMinutes. */
|
|
2765
2783
|
public _utcOffsetMinutes?: "utcOffsetMinutes";
|
|
2766
2784
|
|
|
@@ -2839,6 +2857,9 @@ export namespace google {
|
|
|
2839
2857
|
/** Place _accessibilityOptions. */
|
|
2840
2858
|
public _accessibilityOptions?: "accessibilityOptions";
|
|
2841
2859
|
|
|
2860
|
+
/** Place _pureServiceAreaBusiness. */
|
|
2861
|
+
public _pureServiceAreaBusiness?: "pureServiceAreaBusiness";
|
|
2862
|
+
|
|
2842
2863
|
/**
|
|
2843
2864
|
* Creates a new Place instance using the specified properties.
|
|
2844
2865
|
* @param [properties] Properties to set
|
|
@@ -3154,6 +3175,12 @@ export namespace google {
|
|
|
3154
3175
|
|
|
3155
3176
|
/** OpeningHours specialDays */
|
|
3156
3177
|
specialDays?: (google.maps.places.v1.Place.OpeningHours.ISpecialDay[]|null);
|
|
3178
|
+
|
|
3179
|
+
/** OpeningHours nextOpenTime */
|
|
3180
|
+
nextOpenTime?: (google.protobuf.ITimestamp|null);
|
|
3181
|
+
|
|
3182
|
+
/** OpeningHours nextCloseTime */
|
|
3183
|
+
nextCloseTime?: (google.protobuf.ITimestamp|null);
|
|
3157
3184
|
}
|
|
3158
3185
|
|
|
3159
3186
|
/** Represents an OpeningHours. */
|
|
@@ -3180,6 +3207,12 @@ export namespace google {
|
|
|
3180
3207
|
/** OpeningHours specialDays. */
|
|
3181
3208
|
public specialDays: google.maps.places.v1.Place.OpeningHours.ISpecialDay[];
|
|
3182
3209
|
|
|
3210
|
+
/** OpeningHours nextOpenTime. */
|
|
3211
|
+
public nextOpenTime?: (google.protobuf.ITimestamp|null);
|
|
3212
|
+
|
|
3213
|
+
/** OpeningHours nextCloseTime. */
|
|
3214
|
+
public nextCloseTime?: (google.protobuf.ITimestamp|null);
|
|
3215
|
+
|
|
3183
3216
|
/** OpeningHours _openNow. */
|
|
3184
3217
|
public _openNow?: "openNow";
|
|
3185
3218
|
|
|
@@ -4442,6 +4475,109 @@ export namespace google {
|
|
|
4442
4475
|
*/
|
|
4443
4476
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4444
4477
|
}
|
|
4478
|
+
|
|
4479
|
+
/** Properties of a ContainingPlace. */
|
|
4480
|
+
interface IContainingPlace {
|
|
4481
|
+
|
|
4482
|
+
/** ContainingPlace name */
|
|
4483
|
+
name?: (string|null);
|
|
4484
|
+
|
|
4485
|
+
/** ContainingPlace id */
|
|
4486
|
+
id?: (string|null);
|
|
4487
|
+
}
|
|
4488
|
+
|
|
4489
|
+
/** Represents a ContainingPlace. */
|
|
4490
|
+
class ContainingPlace implements IContainingPlace {
|
|
4491
|
+
|
|
4492
|
+
/**
|
|
4493
|
+
* Constructs a new ContainingPlace.
|
|
4494
|
+
* @param [properties] Properties to set
|
|
4495
|
+
*/
|
|
4496
|
+
constructor(properties?: google.maps.places.v1.Place.IContainingPlace);
|
|
4497
|
+
|
|
4498
|
+
/** ContainingPlace name. */
|
|
4499
|
+
public name: string;
|
|
4500
|
+
|
|
4501
|
+
/** ContainingPlace id. */
|
|
4502
|
+
public id: string;
|
|
4503
|
+
|
|
4504
|
+
/**
|
|
4505
|
+
* Creates a new ContainingPlace instance using the specified properties.
|
|
4506
|
+
* @param [properties] Properties to set
|
|
4507
|
+
* @returns ContainingPlace instance
|
|
4508
|
+
*/
|
|
4509
|
+
public static create(properties?: google.maps.places.v1.Place.IContainingPlace): google.maps.places.v1.Place.ContainingPlace;
|
|
4510
|
+
|
|
4511
|
+
/**
|
|
4512
|
+
* Encodes the specified ContainingPlace message. Does not implicitly {@link google.maps.places.v1.Place.ContainingPlace.verify|verify} messages.
|
|
4513
|
+
* @param message ContainingPlace message or plain object to encode
|
|
4514
|
+
* @param [writer] Writer to encode to
|
|
4515
|
+
* @returns Writer
|
|
4516
|
+
*/
|
|
4517
|
+
public static encode(message: google.maps.places.v1.Place.IContainingPlace, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4518
|
+
|
|
4519
|
+
/**
|
|
4520
|
+
* Encodes the specified ContainingPlace message, length delimited. Does not implicitly {@link google.maps.places.v1.Place.ContainingPlace.verify|verify} messages.
|
|
4521
|
+
* @param message ContainingPlace message or plain object to encode
|
|
4522
|
+
* @param [writer] Writer to encode to
|
|
4523
|
+
* @returns Writer
|
|
4524
|
+
*/
|
|
4525
|
+
public static encodeDelimited(message: google.maps.places.v1.Place.IContainingPlace, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4526
|
+
|
|
4527
|
+
/**
|
|
4528
|
+
* Decodes a ContainingPlace message from the specified reader or buffer.
|
|
4529
|
+
* @param reader Reader or buffer to decode from
|
|
4530
|
+
* @param [length] Message length if known beforehand
|
|
4531
|
+
* @returns ContainingPlace
|
|
4532
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4533
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4534
|
+
*/
|
|
4535
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.Place.ContainingPlace;
|
|
4536
|
+
|
|
4537
|
+
/**
|
|
4538
|
+
* Decodes a ContainingPlace message from the specified reader or buffer, length delimited.
|
|
4539
|
+
* @param reader Reader or buffer to decode from
|
|
4540
|
+
* @returns ContainingPlace
|
|
4541
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4542
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4543
|
+
*/
|
|
4544
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.Place.ContainingPlace;
|
|
4545
|
+
|
|
4546
|
+
/**
|
|
4547
|
+
* Verifies a ContainingPlace message.
|
|
4548
|
+
* @param message Plain object to verify
|
|
4549
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
4550
|
+
*/
|
|
4551
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
4552
|
+
|
|
4553
|
+
/**
|
|
4554
|
+
* Creates a ContainingPlace message from a plain object. Also converts values to their respective internal types.
|
|
4555
|
+
* @param object Plain object
|
|
4556
|
+
* @returns ContainingPlace
|
|
4557
|
+
*/
|
|
4558
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.Place.ContainingPlace;
|
|
4559
|
+
|
|
4560
|
+
/**
|
|
4561
|
+
* Creates a plain object from a ContainingPlace message. Also converts values to other types if specified.
|
|
4562
|
+
* @param message ContainingPlace
|
|
4563
|
+
* @param [options] Conversion options
|
|
4564
|
+
* @returns Plain object
|
|
4565
|
+
*/
|
|
4566
|
+
public static toObject(message: google.maps.places.v1.Place.ContainingPlace, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4567
|
+
|
|
4568
|
+
/**
|
|
4569
|
+
* Converts this ContainingPlace to JSON.
|
|
4570
|
+
* @returns JSON object
|
|
4571
|
+
*/
|
|
4572
|
+
public toJSON(): { [k: string]: any };
|
|
4573
|
+
|
|
4574
|
+
/**
|
|
4575
|
+
* Gets the default type url for ContainingPlace
|
|
4576
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
4577
|
+
* @returns The default type url
|
|
4578
|
+
*/
|
|
4579
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4580
|
+
}
|
|
4445
4581
|
}
|
|
4446
4582
|
|
|
4447
4583
|
/** PriceLevel enum. */
|
|
@@ -4454,6 +4590,109 @@ export namespace google {
|
|
|
4454
4590
|
PRICE_LEVEL_VERY_EXPENSIVE = 5
|
|
4455
4591
|
}
|
|
4456
4592
|
|
|
4593
|
+
/** Properties of a PriceRange. */
|
|
4594
|
+
interface IPriceRange {
|
|
4595
|
+
|
|
4596
|
+
/** PriceRange startPrice */
|
|
4597
|
+
startPrice?: (google.type.IMoney|null);
|
|
4598
|
+
|
|
4599
|
+
/** PriceRange endPrice */
|
|
4600
|
+
endPrice?: (google.type.IMoney|null);
|
|
4601
|
+
}
|
|
4602
|
+
|
|
4603
|
+
/** Represents a PriceRange. */
|
|
4604
|
+
class PriceRange implements IPriceRange {
|
|
4605
|
+
|
|
4606
|
+
/**
|
|
4607
|
+
* Constructs a new PriceRange.
|
|
4608
|
+
* @param [properties] Properties to set
|
|
4609
|
+
*/
|
|
4610
|
+
constructor(properties?: google.maps.places.v1.IPriceRange);
|
|
4611
|
+
|
|
4612
|
+
/** PriceRange startPrice. */
|
|
4613
|
+
public startPrice?: (google.type.IMoney|null);
|
|
4614
|
+
|
|
4615
|
+
/** PriceRange endPrice. */
|
|
4616
|
+
public endPrice?: (google.type.IMoney|null);
|
|
4617
|
+
|
|
4618
|
+
/**
|
|
4619
|
+
* Creates a new PriceRange instance using the specified properties.
|
|
4620
|
+
* @param [properties] Properties to set
|
|
4621
|
+
* @returns PriceRange instance
|
|
4622
|
+
*/
|
|
4623
|
+
public static create(properties?: google.maps.places.v1.IPriceRange): google.maps.places.v1.PriceRange;
|
|
4624
|
+
|
|
4625
|
+
/**
|
|
4626
|
+
* Encodes the specified PriceRange message. Does not implicitly {@link google.maps.places.v1.PriceRange.verify|verify} messages.
|
|
4627
|
+
* @param message PriceRange message or plain object to encode
|
|
4628
|
+
* @param [writer] Writer to encode to
|
|
4629
|
+
* @returns Writer
|
|
4630
|
+
*/
|
|
4631
|
+
public static encode(message: google.maps.places.v1.IPriceRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4632
|
+
|
|
4633
|
+
/**
|
|
4634
|
+
* Encodes the specified PriceRange message, length delimited. Does not implicitly {@link google.maps.places.v1.PriceRange.verify|verify} messages.
|
|
4635
|
+
* @param message PriceRange message or plain object to encode
|
|
4636
|
+
* @param [writer] Writer to encode to
|
|
4637
|
+
* @returns Writer
|
|
4638
|
+
*/
|
|
4639
|
+
public static encodeDelimited(message: google.maps.places.v1.IPriceRange, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4640
|
+
|
|
4641
|
+
/**
|
|
4642
|
+
* Decodes a PriceRange message from the specified reader or buffer.
|
|
4643
|
+
* @param reader Reader or buffer to decode from
|
|
4644
|
+
* @param [length] Message length if known beforehand
|
|
4645
|
+
* @returns PriceRange
|
|
4646
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4647
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4648
|
+
*/
|
|
4649
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.PriceRange;
|
|
4650
|
+
|
|
4651
|
+
/**
|
|
4652
|
+
* Decodes a PriceRange message from the specified reader or buffer, length delimited.
|
|
4653
|
+
* @param reader Reader or buffer to decode from
|
|
4654
|
+
* @returns PriceRange
|
|
4655
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4656
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4657
|
+
*/
|
|
4658
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.PriceRange;
|
|
4659
|
+
|
|
4660
|
+
/**
|
|
4661
|
+
* Verifies a PriceRange message.
|
|
4662
|
+
* @param message Plain object to verify
|
|
4663
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
4664
|
+
*/
|
|
4665
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
4666
|
+
|
|
4667
|
+
/**
|
|
4668
|
+
* Creates a PriceRange message from a plain object. Also converts values to their respective internal types.
|
|
4669
|
+
* @param object Plain object
|
|
4670
|
+
* @returns PriceRange
|
|
4671
|
+
*/
|
|
4672
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.PriceRange;
|
|
4673
|
+
|
|
4674
|
+
/**
|
|
4675
|
+
* Creates a plain object from a PriceRange message. Also converts values to other types if specified.
|
|
4676
|
+
* @param message PriceRange
|
|
4677
|
+
* @param [options] Conversion options
|
|
4678
|
+
* @returns Plain object
|
|
4679
|
+
*/
|
|
4680
|
+
public static toObject(message: google.maps.places.v1.PriceRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4681
|
+
|
|
4682
|
+
/**
|
|
4683
|
+
* Converts this PriceRange to JSON.
|
|
4684
|
+
* @returns JSON object
|
|
4685
|
+
*/
|
|
4686
|
+
public toJSON(): { [k: string]: any };
|
|
4687
|
+
|
|
4688
|
+
/**
|
|
4689
|
+
* Gets the default type url for PriceRange
|
|
4690
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
4691
|
+
* @returns The default type url
|
|
4692
|
+
*/
|
|
4693
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4694
|
+
}
|
|
4695
|
+
|
|
4457
4696
|
/** Represents a Places */
|
|
4458
4697
|
class Places extends $protobuf.rpc.Service {
|
|
4459
4698
|
|
|
@@ -4583,6 +4822,121 @@ export namespace google {
|
|
|
4583
4822
|
type AutocompletePlacesCallback = (error: (Error|null), response?: google.maps.places.v1.AutocompletePlacesResponse) => void;
|
|
4584
4823
|
}
|
|
4585
4824
|
|
|
4825
|
+
/** Properties of a RoutingParameters. */
|
|
4826
|
+
interface IRoutingParameters {
|
|
4827
|
+
|
|
4828
|
+
/** RoutingParameters origin */
|
|
4829
|
+
origin?: (google.type.ILatLng|null);
|
|
4830
|
+
|
|
4831
|
+
/** RoutingParameters travelMode */
|
|
4832
|
+
travelMode?: (google.maps.places.v1.TravelMode|keyof typeof google.maps.places.v1.TravelMode|null);
|
|
4833
|
+
|
|
4834
|
+
/** RoutingParameters routeModifiers */
|
|
4835
|
+
routeModifiers?: (google.maps.places.v1.IRouteModifiers|null);
|
|
4836
|
+
|
|
4837
|
+
/** RoutingParameters routingPreference */
|
|
4838
|
+
routingPreference?: (google.maps.places.v1.RoutingPreference|keyof typeof google.maps.places.v1.RoutingPreference|null);
|
|
4839
|
+
}
|
|
4840
|
+
|
|
4841
|
+
/** Represents a RoutingParameters. */
|
|
4842
|
+
class RoutingParameters implements IRoutingParameters {
|
|
4843
|
+
|
|
4844
|
+
/**
|
|
4845
|
+
* Constructs a new RoutingParameters.
|
|
4846
|
+
* @param [properties] Properties to set
|
|
4847
|
+
*/
|
|
4848
|
+
constructor(properties?: google.maps.places.v1.IRoutingParameters);
|
|
4849
|
+
|
|
4850
|
+
/** RoutingParameters origin. */
|
|
4851
|
+
public origin?: (google.type.ILatLng|null);
|
|
4852
|
+
|
|
4853
|
+
/** RoutingParameters travelMode. */
|
|
4854
|
+
public travelMode: (google.maps.places.v1.TravelMode|keyof typeof google.maps.places.v1.TravelMode);
|
|
4855
|
+
|
|
4856
|
+
/** RoutingParameters routeModifiers. */
|
|
4857
|
+
public routeModifiers?: (google.maps.places.v1.IRouteModifiers|null);
|
|
4858
|
+
|
|
4859
|
+
/** RoutingParameters routingPreference. */
|
|
4860
|
+
public routingPreference: (google.maps.places.v1.RoutingPreference|keyof typeof google.maps.places.v1.RoutingPreference);
|
|
4861
|
+
|
|
4862
|
+
/**
|
|
4863
|
+
* Creates a new RoutingParameters instance using the specified properties.
|
|
4864
|
+
* @param [properties] Properties to set
|
|
4865
|
+
* @returns RoutingParameters instance
|
|
4866
|
+
*/
|
|
4867
|
+
public static create(properties?: google.maps.places.v1.IRoutingParameters): google.maps.places.v1.RoutingParameters;
|
|
4868
|
+
|
|
4869
|
+
/**
|
|
4870
|
+
* Encodes the specified RoutingParameters message. Does not implicitly {@link google.maps.places.v1.RoutingParameters.verify|verify} messages.
|
|
4871
|
+
* @param message RoutingParameters message or plain object to encode
|
|
4872
|
+
* @param [writer] Writer to encode to
|
|
4873
|
+
* @returns Writer
|
|
4874
|
+
*/
|
|
4875
|
+
public static encode(message: google.maps.places.v1.IRoutingParameters, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4876
|
+
|
|
4877
|
+
/**
|
|
4878
|
+
* Encodes the specified RoutingParameters message, length delimited. Does not implicitly {@link google.maps.places.v1.RoutingParameters.verify|verify} messages.
|
|
4879
|
+
* @param message RoutingParameters message or plain object to encode
|
|
4880
|
+
* @param [writer] Writer to encode to
|
|
4881
|
+
* @returns Writer
|
|
4882
|
+
*/
|
|
4883
|
+
public static encodeDelimited(message: google.maps.places.v1.IRoutingParameters, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4884
|
+
|
|
4885
|
+
/**
|
|
4886
|
+
* Decodes a RoutingParameters message from the specified reader or buffer.
|
|
4887
|
+
* @param reader Reader or buffer to decode from
|
|
4888
|
+
* @param [length] Message length if known beforehand
|
|
4889
|
+
* @returns RoutingParameters
|
|
4890
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4891
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4892
|
+
*/
|
|
4893
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.RoutingParameters;
|
|
4894
|
+
|
|
4895
|
+
/**
|
|
4896
|
+
* Decodes a RoutingParameters message from the specified reader or buffer, length delimited.
|
|
4897
|
+
* @param reader Reader or buffer to decode from
|
|
4898
|
+
* @returns RoutingParameters
|
|
4899
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4900
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4901
|
+
*/
|
|
4902
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.RoutingParameters;
|
|
4903
|
+
|
|
4904
|
+
/**
|
|
4905
|
+
* Verifies a RoutingParameters message.
|
|
4906
|
+
* @param message Plain object to verify
|
|
4907
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
4908
|
+
*/
|
|
4909
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
4910
|
+
|
|
4911
|
+
/**
|
|
4912
|
+
* Creates a RoutingParameters message from a plain object. Also converts values to their respective internal types.
|
|
4913
|
+
* @param object Plain object
|
|
4914
|
+
* @returns RoutingParameters
|
|
4915
|
+
*/
|
|
4916
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.RoutingParameters;
|
|
4917
|
+
|
|
4918
|
+
/**
|
|
4919
|
+
* Creates a plain object from a RoutingParameters message. Also converts values to other types if specified.
|
|
4920
|
+
* @param message RoutingParameters
|
|
4921
|
+
* @param [options] Conversion options
|
|
4922
|
+
* @returns Plain object
|
|
4923
|
+
*/
|
|
4924
|
+
public static toObject(message: google.maps.places.v1.RoutingParameters, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4925
|
+
|
|
4926
|
+
/**
|
|
4927
|
+
* Converts this RoutingParameters to JSON.
|
|
4928
|
+
* @returns JSON object
|
|
4929
|
+
*/
|
|
4930
|
+
public toJSON(): { [k: string]: any };
|
|
4931
|
+
|
|
4932
|
+
/**
|
|
4933
|
+
* Gets the default type url for RoutingParameters
|
|
4934
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
4935
|
+
* @returns The default type url
|
|
4936
|
+
*/
|
|
4937
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
4938
|
+
}
|
|
4939
|
+
|
|
4586
4940
|
/** Properties of a SearchNearbyRequest. */
|
|
4587
4941
|
interface ISearchNearbyRequest {
|
|
4588
4942
|
|
|
@@ -4612,6 +4966,9 @@ export namespace google {
|
|
|
4612
4966
|
|
|
4613
4967
|
/** SearchNearbyRequest rankPreference */
|
|
4614
4968
|
rankPreference?: (google.maps.places.v1.SearchNearbyRequest.RankPreference|keyof typeof google.maps.places.v1.SearchNearbyRequest.RankPreference|null);
|
|
4969
|
+
|
|
4970
|
+
/** SearchNearbyRequest routingParameters */
|
|
4971
|
+
routingParameters?: (google.maps.places.v1.IRoutingParameters|null);
|
|
4615
4972
|
}
|
|
4616
4973
|
|
|
4617
4974
|
/** Represents a SearchNearbyRequest. */
|
|
@@ -4650,6 +5007,9 @@ export namespace google {
|
|
|
4650
5007
|
/** SearchNearbyRequest rankPreference. */
|
|
4651
5008
|
public rankPreference: (google.maps.places.v1.SearchNearbyRequest.RankPreference|keyof typeof google.maps.places.v1.SearchNearbyRequest.RankPreference);
|
|
4652
5009
|
|
|
5010
|
+
/** SearchNearbyRequest routingParameters. */
|
|
5011
|
+
public routingParameters?: (google.maps.places.v1.IRoutingParameters|null);
|
|
5012
|
+
|
|
4653
5013
|
/**
|
|
4654
5014
|
* Creates a new SearchNearbyRequest instance using the specified properties.
|
|
4655
5015
|
* @param [properties] Properties to set
|
|
@@ -4843,6 +5203,9 @@ export namespace google {
|
|
|
4843
5203
|
|
|
4844
5204
|
/** SearchNearbyResponse places */
|
|
4845
5205
|
places?: (google.maps.places.v1.IPlace[]|null);
|
|
5206
|
+
|
|
5207
|
+
/** SearchNearbyResponse routingSummaries */
|
|
5208
|
+
routingSummaries?: (google.maps.places.v1.IRoutingSummary[]|null);
|
|
4846
5209
|
}
|
|
4847
5210
|
|
|
4848
5211
|
/** Represents a SearchNearbyResponse. */
|
|
@@ -4857,6 +5220,9 @@ export namespace google {
|
|
|
4857
5220
|
/** SearchNearbyResponse places. */
|
|
4858
5221
|
public places: google.maps.places.v1.IPlace[];
|
|
4859
5222
|
|
|
5223
|
+
/** SearchNearbyResponse routingSummaries. */
|
|
5224
|
+
public routingSummaries: google.maps.places.v1.IRoutingSummary[];
|
|
5225
|
+
|
|
4860
5226
|
/**
|
|
4861
5227
|
* Creates a new SearchNearbyResponse instance using the specified properties.
|
|
4862
5228
|
* @param [properties] Properties to set
|
|
@@ -4976,6 +5342,15 @@ export namespace google {
|
|
|
4976
5342
|
|
|
4977
5343
|
/** SearchTextRequest evOptions */
|
|
4978
5344
|
evOptions?: (google.maps.places.v1.SearchTextRequest.IEVOptions|null);
|
|
5345
|
+
|
|
5346
|
+
/** SearchTextRequest routingParameters */
|
|
5347
|
+
routingParameters?: (google.maps.places.v1.IRoutingParameters|null);
|
|
5348
|
+
|
|
5349
|
+
/** SearchTextRequest searchAlongRouteParameters */
|
|
5350
|
+
searchAlongRouteParameters?: (google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters|null);
|
|
5351
|
+
|
|
5352
|
+
/** SearchTextRequest includePureServiceAreaBusinesses */
|
|
5353
|
+
includePureServiceAreaBusinesses?: (boolean|null);
|
|
4979
5354
|
}
|
|
4980
5355
|
|
|
4981
5356
|
/** Represents a SearchTextRequest. */
|
|
@@ -5026,6 +5401,15 @@ export namespace google {
|
|
|
5026
5401
|
/** SearchTextRequest evOptions. */
|
|
5027
5402
|
public evOptions?: (google.maps.places.v1.SearchTextRequest.IEVOptions|null);
|
|
5028
5403
|
|
|
5404
|
+
/** SearchTextRequest routingParameters. */
|
|
5405
|
+
public routingParameters?: (google.maps.places.v1.IRoutingParameters|null);
|
|
5406
|
+
|
|
5407
|
+
/** SearchTextRequest searchAlongRouteParameters. */
|
|
5408
|
+
public searchAlongRouteParameters?: (google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters|null);
|
|
5409
|
+
|
|
5410
|
+
/** SearchTextRequest includePureServiceAreaBusinesses. */
|
|
5411
|
+
public includePureServiceAreaBusinesses: boolean;
|
|
5412
|
+
|
|
5029
5413
|
/**
|
|
5030
5414
|
* Creates a new SearchTextRequest instance using the specified properties.
|
|
5031
5415
|
* @param [properties] Properties to set
|
|
@@ -5421,32 +5805,135 @@ export namespace google {
|
|
|
5421
5805
|
*/
|
|
5422
5806
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5423
5807
|
}
|
|
5424
|
-
}
|
|
5425
5808
|
|
|
5426
|
-
|
|
5427
|
-
|
|
5809
|
+
/** Properties of a SearchAlongRouteParameters. */
|
|
5810
|
+
interface ISearchAlongRouteParameters {
|
|
5428
5811
|
|
|
5429
|
-
|
|
5430
|
-
|
|
5812
|
+
/** SearchAlongRouteParameters polyline */
|
|
5813
|
+
polyline?: (google.maps.places.v1.IPolyline|null);
|
|
5814
|
+
}
|
|
5431
5815
|
|
|
5432
|
-
/**
|
|
5433
|
-
|
|
5434
|
-
}
|
|
5816
|
+
/** Represents a SearchAlongRouteParameters. */
|
|
5817
|
+
class SearchAlongRouteParameters implements ISearchAlongRouteParameters {
|
|
5435
5818
|
|
|
5436
|
-
|
|
5437
|
-
|
|
5819
|
+
/**
|
|
5820
|
+
* Constructs a new SearchAlongRouteParameters.
|
|
5821
|
+
* @param [properties] Properties to set
|
|
5822
|
+
*/
|
|
5823
|
+
constructor(properties?: google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters);
|
|
5438
5824
|
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
* @param [properties] Properties to set
|
|
5442
|
-
*/
|
|
5443
|
-
constructor(properties?: google.maps.places.v1.ISearchTextResponse);
|
|
5825
|
+
/** SearchAlongRouteParameters polyline. */
|
|
5826
|
+
public polyline?: (google.maps.places.v1.IPolyline|null);
|
|
5444
5827
|
|
|
5445
|
-
|
|
5446
|
-
|
|
5828
|
+
/**
|
|
5829
|
+
* Creates a new SearchAlongRouteParameters instance using the specified properties.
|
|
5830
|
+
* @param [properties] Properties to set
|
|
5831
|
+
* @returns SearchAlongRouteParameters instance
|
|
5832
|
+
*/
|
|
5833
|
+
public static create(properties?: google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters): google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters;
|
|
5447
5834
|
|
|
5448
|
-
|
|
5449
|
-
|
|
5835
|
+
/**
|
|
5836
|
+
* Encodes the specified SearchAlongRouteParameters message. Does not implicitly {@link google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters.verify|verify} messages.
|
|
5837
|
+
* @param message SearchAlongRouteParameters message or plain object to encode
|
|
5838
|
+
* @param [writer] Writer to encode to
|
|
5839
|
+
* @returns Writer
|
|
5840
|
+
*/
|
|
5841
|
+
public static encode(message: google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5842
|
+
|
|
5843
|
+
/**
|
|
5844
|
+
* Encodes the specified SearchAlongRouteParameters message, length delimited. Does not implicitly {@link google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters.verify|verify} messages.
|
|
5845
|
+
* @param message SearchAlongRouteParameters message or plain object to encode
|
|
5846
|
+
* @param [writer] Writer to encode to
|
|
5847
|
+
* @returns Writer
|
|
5848
|
+
*/
|
|
5849
|
+
public static encodeDelimited(message: google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5850
|
+
|
|
5851
|
+
/**
|
|
5852
|
+
* Decodes a SearchAlongRouteParameters message from the specified reader or buffer.
|
|
5853
|
+
* @param reader Reader or buffer to decode from
|
|
5854
|
+
* @param [length] Message length if known beforehand
|
|
5855
|
+
* @returns SearchAlongRouteParameters
|
|
5856
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5857
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5858
|
+
*/
|
|
5859
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters;
|
|
5860
|
+
|
|
5861
|
+
/**
|
|
5862
|
+
* Decodes a SearchAlongRouteParameters message from the specified reader or buffer, length delimited.
|
|
5863
|
+
* @param reader Reader or buffer to decode from
|
|
5864
|
+
* @returns SearchAlongRouteParameters
|
|
5865
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5866
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5867
|
+
*/
|
|
5868
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters;
|
|
5869
|
+
|
|
5870
|
+
/**
|
|
5871
|
+
* Verifies a SearchAlongRouteParameters message.
|
|
5872
|
+
* @param message Plain object to verify
|
|
5873
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5874
|
+
*/
|
|
5875
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5876
|
+
|
|
5877
|
+
/**
|
|
5878
|
+
* Creates a SearchAlongRouteParameters message from a plain object. Also converts values to their respective internal types.
|
|
5879
|
+
* @param object Plain object
|
|
5880
|
+
* @returns SearchAlongRouteParameters
|
|
5881
|
+
*/
|
|
5882
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters;
|
|
5883
|
+
|
|
5884
|
+
/**
|
|
5885
|
+
* Creates a plain object from a SearchAlongRouteParameters message. Also converts values to other types if specified.
|
|
5886
|
+
* @param message SearchAlongRouteParameters
|
|
5887
|
+
* @param [options] Conversion options
|
|
5888
|
+
* @returns Plain object
|
|
5889
|
+
*/
|
|
5890
|
+
public static toObject(message: google.maps.places.v1.SearchTextRequest.SearchAlongRouteParameters, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5891
|
+
|
|
5892
|
+
/**
|
|
5893
|
+
* Converts this SearchAlongRouteParameters to JSON.
|
|
5894
|
+
* @returns JSON object
|
|
5895
|
+
*/
|
|
5896
|
+
public toJSON(): { [k: string]: any };
|
|
5897
|
+
|
|
5898
|
+
/**
|
|
5899
|
+
* Gets the default type url for SearchAlongRouteParameters
|
|
5900
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
5901
|
+
* @returns The default type url
|
|
5902
|
+
*/
|
|
5903
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
5904
|
+
}
|
|
5905
|
+
}
|
|
5906
|
+
|
|
5907
|
+
/** Properties of a SearchTextResponse. */
|
|
5908
|
+
interface ISearchTextResponse {
|
|
5909
|
+
|
|
5910
|
+
/** SearchTextResponse places */
|
|
5911
|
+
places?: (google.maps.places.v1.IPlace[]|null);
|
|
5912
|
+
|
|
5913
|
+
/** SearchTextResponse routingSummaries */
|
|
5914
|
+
routingSummaries?: (google.maps.places.v1.IRoutingSummary[]|null);
|
|
5915
|
+
|
|
5916
|
+
/** SearchTextResponse contextualContents */
|
|
5917
|
+
contextualContents?: (google.maps.places.v1.IContextualContent[]|null);
|
|
5918
|
+
}
|
|
5919
|
+
|
|
5920
|
+
/** Represents a SearchTextResponse. */
|
|
5921
|
+
class SearchTextResponse implements ISearchTextResponse {
|
|
5922
|
+
|
|
5923
|
+
/**
|
|
5924
|
+
* Constructs a new SearchTextResponse.
|
|
5925
|
+
* @param [properties] Properties to set
|
|
5926
|
+
*/
|
|
5927
|
+
constructor(properties?: google.maps.places.v1.ISearchTextResponse);
|
|
5928
|
+
|
|
5929
|
+
/** SearchTextResponse places. */
|
|
5930
|
+
public places: google.maps.places.v1.IPlace[];
|
|
5931
|
+
|
|
5932
|
+
/** SearchTextResponse routingSummaries. */
|
|
5933
|
+
public routingSummaries: google.maps.places.v1.IRoutingSummary[];
|
|
5934
|
+
|
|
5935
|
+
/** SearchTextResponse contextualContents. */
|
|
5936
|
+
public contextualContents: google.maps.places.v1.IContextualContent[];
|
|
5450
5937
|
|
|
5451
5938
|
/**
|
|
5452
5939
|
* Creates a new SearchTextResponse instance using the specified properties.
|
|
@@ -5894,6 +6381,9 @@ export namespace google {
|
|
|
5894
6381
|
|
|
5895
6382
|
/** AutocompletePlacesRequest sessionToken */
|
|
5896
6383
|
sessionToken?: (string|null);
|
|
6384
|
+
|
|
6385
|
+
/** AutocompletePlacesRequest includePureServiceAreaBusinesses */
|
|
6386
|
+
includePureServiceAreaBusinesses?: (boolean|null);
|
|
5897
6387
|
}
|
|
5898
6388
|
|
|
5899
6389
|
/** Represents an AutocompletePlacesRequest. */
|
|
@@ -5938,6 +6428,9 @@ export namespace google {
|
|
|
5938
6428
|
/** AutocompletePlacesRequest sessionToken. */
|
|
5939
6429
|
public sessionToken: string;
|
|
5940
6430
|
|
|
6431
|
+
/** AutocompletePlacesRequest includePureServiceAreaBusinesses. */
|
|
6432
|
+
public includePureServiceAreaBusinesses: boolean;
|
|
6433
|
+
|
|
5941
6434
|
/**
|
|
5942
6435
|
* Creates a new AutocompletePlacesRequest instance using the specified properties.
|
|
5943
6436
|
* @param [properties] Properties to set
|
|
@@ -6978,6 +7471,447 @@ export namespace google {
|
|
|
6978
7471
|
}
|
|
6979
7472
|
}
|
|
6980
7473
|
}
|
|
7474
|
+
|
|
7475
|
+
/** Properties of a Polyline. */
|
|
7476
|
+
interface IPolyline {
|
|
7477
|
+
|
|
7478
|
+
/** Polyline encodedPolyline */
|
|
7479
|
+
encodedPolyline?: (string|null);
|
|
7480
|
+
}
|
|
7481
|
+
|
|
7482
|
+
/** Represents a Polyline. */
|
|
7483
|
+
class Polyline implements IPolyline {
|
|
7484
|
+
|
|
7485
|
+
/**
|
|
7486
|
+
* Constructs a new Polyline.
|
|
7487
|
+
* @param [properties] Properties to set
|
|
7488
|
+
*/
|
|
7489
|
+
constructor(properties?: google.maps.places.v1.IPolyline);
|
|
7490
|
+
|
|
7491
|
+
/** Polyline encodedPolyline. */
|
|
7492
|
+
public encodedPolyline?: (string|null);
|
|
7493
|
+
|
|
7494
|
+
/** Polyline polylineType. */
|
|
7495
|
+
public polylineType?: "encodedPolyline";
|
|
7496
|
+
|
|
7497
|
+
/**
|
|
7498
|
+
* Creates a new Polyline instance using the specified properties.
|
|
7499
|
+
* @param [properties] Properties to set
|
|
7500
|
+
* @returns Polyline instance
|
|
7501
|
+
*/
|
|
7502
|
+
public static create(properties?: google.maps.places.v1.IPolyline): google.maps.places.v1.Polyline;
|
|
7503
|
+
|
|
7504
|
+
/**
|
|
7505
|
+
* Encodes the specified Polyline message. Does not implicitly {@link google.maps.places.v1.Polyline.verify|verify} messages.
|
|
7506
|
+
* @param message Polyline message or plain object to encode
|
|
7507
|
+
* @param [writer] Writer to encode to
|
|
7508
|
+
* @returns Writer
|
|
7509
|
+
*/
|
|
7510
|
+
public static encode(message: google.maps.places.v1.IPolyline, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7511
|
+
|
|
7512
|
+
/**
|
|
7513
|
+
* Encodes the specified Polyline message, length delimited. Does not implicitly {@link google.maps.places.v1.Polyline.verify|verify} messages.
|
|
7514
|
+
* @param message Polyline message or plain object to encode
|
|
7515
|
+
* @param [writer] Writer to encode to
|
|
7516
|
+
* @returns Writer
|
|
7517
|
+
*/
|
|
7518
|
+
public static encodeDelimited(message: google.maps.places.v1.IPolyline, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7519
|
+
|
|
7520
|
+
/**
|
|
7521
|
+
* Decodes a Polyline message from the specified reader or buffer.
|
|
7522
|
+
* @param reader Reader or buffer to decode from
|
|
7523
|
+
* @param [length] Message length if known beforehand
|
|
7524
|
+
* @returns Polyline
|
|
7525
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7526
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7527
|
+
*/
|
|
7528
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.Polyline;
|
|
7529
|
+
|
|
7530
|
+
/**
|
|
7531
|
+
* Decodes a Polyline message from the specified reader or buffer, length delimited.
|
|
7532
|
+
* @param reader Reader or buffer to decode from
|
|
7533
|
+
* @returns Polyline
|
|
7534
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7535
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7536
|
+
*/
|
|
7537
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.Polyline;
|
|
7538
|
+
|
|
7539
|
+
/**
|
|
7540
|
+
* Verifies a Polyline message.
|
|
7541
|
+
* @param message Plain object to verify
|
|
7542
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7543
|
+
*/
|
|
7544
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7545
|
+
|
|
7546
|
+
/**
|
|
7547
|
+
* Creates a Polyline message from a plain object. Also converts values to their respective internal types.
|
|
7548
|
+
* @param object Plain object
|
|
7549
|
+
* @returns Polyline
|
|
7550
|
+
*/
|
|
7551
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.Polyline;
|
|
7552
|
+
|
|
7553
|
+
/**
|
|
7554
|
+
* Creates a plain object from a Polyline message. Also converts values to other types if specified.
|
|
7555
|
+
* @param message Polyline
|
|
7556
|
+
* @param [options] Conversion options
|
|
7557
|
+
* @returns Plain object
|
|
7558
|
+
*/
|
|
7559
|
+
public static toObject(message: google.maps.places.v1.Polyline, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7560
|
+
|
|
7561
|
+
/**
|
|
7562
|
+
* Converts this Polyline to JSON.
|
|
7563
|
+
* @returns JSON object
|
|
7564
|
+
*/
|
|
7565
|
+
public toJSON(): { [k: string]: any };
|
|
7566
|
+
|
|
7567
|
+
/**
|
|
7568
|
+
* Gets the default type url for Polyline
|
|
7569
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7570
|
+
* @returns The default type url
|
|
7571
|
+
*/
|
|
7572
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
7573
|
+
}
|
|
7574
|
+
|
|
7575
|
+
/** Properties of a RouteModifiers. */
|
|
7576
|
+
interface IRouteModifiers {
|
|
7577
|
+
|
|
7578
|
+
/** RouteModifiers avoidTolls */
|
|
7579
|
+
avoidTolls?: (boolean|null);
|
|
7580
|
+
|
|
7581
|
+
/** RouteModifiers avoidHighways */
|
|
7582
|
+
avoidHighways?: (boolean|null);
|
|
7583
|
+
|
|
7584
|
+
/** RouteModifiers avoidFerries */
|
|
7585
|
+
avoidFerries?: (boolean|null);
|
|
7586
|
+
|
|
7587
|
+
/** RouteModifiers avoidIndoor */
|
|
7588
|
+
avoidIndoor?: (boolean|null);
|
|
7589
|
+
}
|
|
7590
|
+
|
|
7591
|
+
/** Represents a RouteModifiers. */
|
|
7592
|
+
class RouteModifiers implements IRouteModifiers {
|
|
7593
|
+
|
|
7594
|
+
/**
|
|
7595
|
+
* Constructs a new RouteModifiers.
|
|
7596
|
+
* @param [properties] Properties to set
|
|
7597
|
+
*/
|
|
7598
|
+
constructor(properties?: google.maps.places.v1.IRouteModifiers);
|
|
7599
|
+
|
|
7600
|
+
/** RouteModifiers avoidTolls. */
|
|
7601
|
+
public avoidTolls: boolean;
|
|
7602
|
+
|
|
7603
|
+
/** RouteModifiers avoidHighways. */
|
|
7604
|
+
public avoidHighways: boolean;
|
|
7605
|
+
|
|
7606
|
+
/** RouteModifiers avoidFerries. */
|
|
7607
|
+
public avoidFerries: boolean;
|
|
7608
|
+
|
|
7609
|
+
/** RouteModifiers avoidIndoor. */
|
|
7610
|
+
public avoidIndoor: boolean;
|
|
7611
|
+
|
|
7612
|
+
/**
|
|
7613
|
+
* Creates a new RouteModifiers instance using the specified properties.
|
|
7614
|
+
* @param [properties] Properties to set
|
|
7615
|
+
* @returns RouteModifiers instance
|
|
7616
|
+
*/
|
|
7617
|
+
public static create(properties?: google.maps.places.v1.IRouteModifiers): google.maps.places.v1.RouteModifiers;
|
|
7618
|
+
|
|
7619
|
+
/**
|
|
7620
|
+
* Encodes the specified RouteModifiers message. Does not implicitly {@link google.maps.places.v1.RouteModifiers.verify|verify} messages.
|
|
7621
|
+
* @param message RouteModifiers message or plain object to encode
|
|
7622
|
+
* @param [writer] Writer to encode to
|
|
7623
|
+
* @returns Writer
|
|
7624
|
+
*/
|
|
7625
|
+
public static encode(message: google.maps.places.v1.IRouteModifiers, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7626
|
+
|
|
7627
|
+
/**
|
|
7628
|
+
* Encodes the specified RouteModifiers message, length delimited. Does not implicitly {@link google.maps.places.v1.RouteModifiers.verify|verify} messages.
|
|
7629
|
+
* @param message RouteModifiers message or plain object to encode
|
|
7630
|
+
* @param [writer] Writer to encode to
|
|
7631
|
+
* @returns Writer
|
|
7632
|
+
*/
|
|
7633
|
+
public static encodeDelimited(message: google.maps.places.v1.IRouteModifiers, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7634
|
+
|
|
7635
|
+
/**
|
|
7636
|
+
* Decodes a RouteModifiers message from the specified reader or buffer.
|
|
7637
|
+
* @param reader Reader or buffer to decode from
|
|
7638
|
+
* @param [length] Message length if known beforehand
|
|
7639
|
+
* @returns RouteModifiers
|
|
7640
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7641
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7642
|
+
*/
|
|
7643
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.RouteModifiers;
|
|
7644
|
+
|
|
7645
|
+
/**
|
|
7646
|
+
* Decodes a RouteModifiers message from the specified reader or buffer, length delimited.
|
|
7647
|
+
* @param reader Reader or buffer to decode from
|
|
7648
|
+
* @returns RouteModifiers
|
|
7649
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7650
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7651
|
+
*/
|
|
7652
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.RouteModifiers;
|
|
7653
|
+
|
|
7654
|
+
/**
|
|
7655
|
+
* Verifies a RouteModifiers message.
|
|
7656
|
+
* @param message Plain object to verify
|
|
7657
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7658
|
+
*/
|
|
7659
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7660
|
+
|
|
7661
|
+
/**
|
|
7662
|
+
* Creates a RouteModifiers message from a plain object. Also converts values to their respective internal types.
|
|
7663
|
+
* @param object Plain object
|
|
7664
|
+
* @returns RouteModifiers
|
|
7665
|
+
*/
|
|
7666
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.RouteModifiers;
|
|
7667
|
+
|
|
7668
|
+
/**
|
|
7669
|
+
* Creates a plain object from a RouteModifiers message. Also converts values to other types if specified.
|
|
7670
|
+
* @param message RouteModifiers
|
|
7671
|
+
* @param [options] Conversion options
|
|
7672
|
+
* @returns Plain object
|
|
7673
|
+
*/
|
|
7674
|
+
public static toObject(message: google.maps.places.v1.RouteModifiers, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7675
|
+
|
|
7676
|
+
/**
|
|
7677
|
+
* Converts this RouteModifiers to JSON.
|
|
7678
|
+
* @returns JSON object
|
|
7679
|
+
*/
|
|
7680
|
+
public toJSON(): { [k: string]: any };
|
|
7681
|
+
|
|
7682
|
+
/**
|
|
7683
|
+
* Gets the default type url for RouteModifiers
|
|
7684
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7685
|
+
* @returns The default type url
|
|
7686
|
+
*/
|
|
7687
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
7688
|
+
}
|
|
7689
|
+
|
|
7690
|
+
/** RoutingPreference enum. */
|
|
7691
|
+
enum RoutingPreference {
|
|
7692
|
+
ROUTING_PREFERENCE_UNSPECIFIED = 0,
|
|
7693
|
+
TRAFFIC_UNAWARE = 1,
|
|
7694
|
+
TRAFFIC_AWARE = 2,
|
|
7695
|
+
TRAFFIC_AWARE_OPTIMAL = 3
|
|
7696
|
+
}
|
|
7697
|
+
|
|
7698
|
+
/** Properties of a RoutingSummary. */
|
|
7699
|
+
interface IRoutingSummary {
|
|
7700
|
+
|
|
7701
|
+
/** RoutingSummary legs */
|
|
7702
|
+
legs?: (google.maps.places.v1.RoutingSummary.ILeg[]|null);
|
|
7703
|
+
|
|
7704
|
+
/** RoutingSummary directionsUri */
|
|
7705
|
+
directionsUri?: (string|null);
|
|
7706
|
+
}
|
|
7707
|
+
|
|
7708
|
+
/** Represents a RoutingSummary. */
|
|
7709
|
+
class RoutingSummary implements IRoutingSummary {
|
|
7710
|
+
|
|
7711
|
+
/**
|
|
7712
|
+
* Constructs a new RoutingSummary.
|
|
7713
|
+
* @param [properties] Properties to set
|
|
7714
|
+
*/
|
|
7715
|
+
constructor(properties?: google.maps.places.v1.IRoutingSummary);
|
|
7716
|
+
|
|
7717
|
+
/** RoutingSummary legs. */
|
|
7718
|
+
public legs: google.maps.places.v1.RoutingSummary.ILeg[];
|
|
7719
|
+
|
|
7720
|
+
/** RoutingSummary directionsUri. */
|
|
7721
|
+
public directionsUri: string;
|
|
7722
|
+
|
|
7723
|
+
/**
|
|
7724
|
+
* Creates a new RoutingSummary instance using the specified properties.
|
|
7725
|
+
* @param [properties] Properties to set
|
|
7726
|
+
* @returns RoutingSummary instance
|
|
7727
|
+
*/
|
|
7728
|
+
public static create(properties?: google.maps.places.v1.IRoutingSummary): google.maps.places.v1.RoutingSummary;
|
|
7729
|
+
|
|
7730
|
+
/**
|
|
7731
|
+
* Encodes the specified RoutingSummary message. Does not implicitly {@link google.maps.places.v1.RoutingSummary.verify|verify} messages.
|
|
7732
|
+
* @param message RoutingSummary message or plain object to encode
|
|
7733
|
+
* @param [writer] Writer to encode to
|
|
7734
|
+
* @returns Writer
|
|
7735
|
+
*/
|
|
7736
|
+
public static encode(message: google.maps.places.v1.IRoutingSummary, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7737
|
+
|
|
7738
|
+
/**
|
|
7739
|
+
* Encodes the specified RoutingSummary message, length delimited. Does not implicitly {@link google.maps.places.v1.RoutingSummary.verify|verify} messages.
|
|
7740
|
+
* @param message RoutingSummary message or plain object to encode
|
|
7741
|
+
* @param [writer] Writer to encode to
|
|
7742
|
+
* @returns Writer
|
|
7743
|
+
*/
|
|
7744
|
+
public static encodeDelimited(message: google.maps.places.v1.IRoutingSummary, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7745
|
+
|
|
7746
|
+
/**
|
|
7747
|
+
* Decodes a RoutingSummary message from the specified reader or buffer.
|
|
7748
|
+
* @param reader Reader or buffer to decode from
|
|
7749
|
+
* @param [length] Message length if known beforehand
|
|
7750
|
+
* @returns RoutingSummary
|
|
7751
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7752
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7753
|
+
*/
|
|
7754
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.RoutingSummary;
|
|
7755
|
+
|
|
7756
|
+
/**
|
|
7757
|
+
* Decodes a RoutingSummary message from the specified reader or buffer, length delimited.
|
|
7758
|
+
* @param reader Reader or buffer to decode from
|
|
7759
|
+
* @returns RoutingSummary
|
|
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 decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.RoutingSummary;
|
|
7764
|
+
|
|
7765
|
+
/**
|
|
7766
|
+
* Verifies a RoutingSummary message.
|
|
7767
|
+
* @param message Plain object to verify
|
|
7768
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7769
|
+
*/
|
|
7770
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7771
|
+
|
|
7772
|
+
/**
|
|
7773
|
+
* Creates a RoutingSummary message from a plain object. Also converts values to their respective internal types.
|
|
7774
|
+
* @param object Plain object
|
|
7775
|
+
* @returns RoutingSummary
|
|
7776
|
+
*/
|
|
7777
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.RoutingSummary;
|
|
7778
|
+
|
|
7779
|
+
/**
|
|
7780
|
+
* Creates a plain object from a RoutingSummary message. Also converts values to other types if specified.
|
|
7781
|
+
* @param message RoutingSummary
|
|
7782
|
+
* @param [options] Conversion options
|
|
7783
|
+
* @returns Plain object
|
|
7784
|
+
*/
|
|
7785
|
+
public static toObject(message: google.maps.places.v1.RoutingSummary, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7786
|
+
|
|
7787
|
+
/**
|
|
7788
|
+
* Converts this RoutingSummary to JSON.
|
|
7789
|
+
* @returns JSON object
|
|
7790
|
+
*/
|
|
7791
|
+
public toJSON(): { [k: string]: any };
|
|
7792
|
+
|
|
7793
|
+
/**
|
|
7794
|
+
* Gets the default type url for RoutingSummary
|
|
7795
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7796
|
+
* @returns The default type url
|
|
7797
|
+
*/
|
|
7798
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
7799
|
+
}
|
|
7800
|
+
|
|
7801
|
+
namespace RoutingSummary {
|
|
7802
|
+
|
|
7803
|
+
/** Properties of a Leg. */
|
|
7804
|
+
interface ILeg {
|
|
7805
|
+
|
|
7806
|
+
/** Leg duration */
|
|
7807
|
+
duration?: (google.protobuf.IDuration|null);
|
|
7808
|
+
|
|
7809
|
+
/** Leg distanceMeters */
|
|
7810
|
+
distanceMeters?: (number|null);
|
|
7811
|
+
}
|
|
7812
|
+
|
|
7813
|
+
/** Represents a Leg. */
|
|
7814
|
+
class Leg implements ILeg {
|
|
7815
|
+
|
|
7816
|
+
/**
|
|
7817
|
+
* Constructs a new Leg.
|
|
7818
|
+
* @param [properties] Properties to set
|
|
7819
|
+
*/
|
|
7820
|
+
constructor(properties?: google.maps.places.v1.RoutingSummary.ILeg);
|
|
7821
|
+
|
|
7822
|
+
/** Leg duration. */
|
|
7823
|
+
public duration?: (google.protobuf.IDuration|null);
|
|
7824
|
+
|
|
7825
|
+
/** Leg distanceMeters. */
|
|
7826
|
+
public distanceMeters: number;
|
|
7827
|
+
|
|
7828
|
+
/**
|
|
7829
|
+
* Creates a new Leg instance using the specified properties.
|
|
7830
|
+
* @param [properties] Properties to set
|
|
7831
|
+
* @returns Leg instance
|
|
7832
|
+
*/
|
|
7833
|
+
public static create(properties?: google.maps.places.v1.RoutingSummary.ILeg): google.maps.places.v1.RoutingSummary.Leg;
|
|
7834
|
+
|
|
7835
|
+
/**
|
|
7836
|
+
* Encodes the specified Leg message. Does not implicitly {@link google.maps.places.v1.RoutingSummary.Leg.verify|verify} messages.
|
|
7837
|
+
* @param message Leg message or plain object to encode
|
|
7838
|
+
* @param [writer] Writer to encode to
|
|
7839
|
+
* @returns Writer
|
|
7840
|
+
*/
|
|
7841
|
+
public static encode(message: google.maps.places.v1.RoutingSummary.ILeg, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7842
|
+
|
|
7843
|
+
/**
|
|
7844
|
+
* Encodes the specified Leg message, length delimited. Does not implicitly {@link google.maps.places.v1.RoutingSummary.Leg.verify|verify} messages.
|
|
7845
|
+
* @param message Leg message or plain object to encode
|
|
7846
|
+
* @param [writer] Writer to encode to
|
|
7847
|
+
* @returns Writer
|
|
7848
|
+
*/
|
|
7849
|
+
public static encodeDelimited(message: google.maps.places.v1.RoutingSummary.ILeg, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7850
|
+
|
|
7851
|
+
/**
|
|
7852
|
+
* Decodes a Leg message from the specified reader or buffer.
|
|
7853
|
+
* @param reader Reader or buffer to decode from
|
|
7854
|
+
* @param [length] Message length if known beforehand
|
|
7855
|
+
* @returns Leg
|
|
7856
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7857
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7858
|
+
*/
|
|
7859
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.RoutingSummary.Leg;
|
|
7860
|
+
|
|
7861
|
+
/**
|
|
7862
|
+
* Decodes a Leg message from the specified reader or buffer, length delimited.
|
|
7863
|
+
* @param reader Reader or buffer to decode from
|
|
7864
|
+
* @returns Leg
|
|
7865
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7866
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7867
|
+
*/
|
|
7868
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.RoutingSummary.Leg;
|
|
7869
|
+
|
|
7870
|
+
/**
|
|
7871
|
+
* Verifies a Leg message.
|
|
7872
|
+
* @param message Plain object to verify
|
|
7873
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7874
|
+
*/
|
|
7875
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7876
|
+
|
|
7877
|
+
/**
|
|
7878
|
+
* Creates a Leg message from a plain object. Also converts values to their respective internal types.
|
|
7879
|
+
* @param object Plain object
|
|
7880
|
+
* @returns Leg
|
|
7881
|
+
*/
|
|
7882
|
+
public static fromObject(object: { [k: string]: any }): google.maps.places.v1.RoutingSummary.Leg;
|
|
7883
|
+
|
|
7884
|
+
/**
|
|
7885
|
+
* Creates a plain object from a Leg message. Also converts values to other types if specified.
|
|
7886
|
+
* @param message Leg
|
|
7887
|
+
* @param [options] Conversion options
|
|
7888
|
+
* @returns Plain object
|
|
7889
|
+
*/
|
|
7890
|
+
public static toObject(message: google.maps.places.v1.RoutingSummary.Leg, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7891
|
+
|
|
7892
|
+
/**
|
|
7893
|
+
* Converts this Leg to JSON.
|
|
7894
|
+
* @returns JSON object
|
|
7895
|
+
*/
|
|
7896
|
+
public toJSON(): { [k: string]: any };
|
|
7897
|
+
|
|
7898
|
+
/**
|
|
7899
|
+
* Gets the default type url for Leg
|
|
7900
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7901
|
+
* @returns The default type url
|
|
7902
|
+
*/
|
|
7903
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
7904
|
+
}
|
|
7905
|
+
}
|
|
7906
|
+
|
|
7907
|
+
/** TravelMode enum. */
|
|
7908
|
+
enum TravelMode {
|
|
7909
|
+
TRAVEL_MODE_UNSPECIFIED = 0,
|
|
7910
|
+
DRIVE = 1,
|
|
7911
|
+
BICYCLE = 2,
|
|
7912
|
+
WALK = 3,
|
|
7913
|
+
TWO_WHEELER = 4
|
|
7914
|
+
}
|
|
6981
7915
|
}
|
|
6982
7916
|
}
|
|
6983
7917
|
}
|