@googlemaps/places 1.7.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 +7 -0
- 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 +39 -3
- package/build/protos/google/maps/places/v1/places_service.proto +22 -3
- package/build/protos/google/maps/places/v1/polyline.proto +0 -1
- 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 +0 -1
- package/build/protos/google/maps/places/v1/routing_preference.proto +0 -1
- package/build/protos/google/maps/places/v1/routing_summary.proto +9 -2
- package/build/protos/google/maps/places/v1/travel_mode.proto +0 -1
- package/build/protos/protos.d.ts +257 -0
- package/build/protos/protos.js +702 -1
- package/build/protos/protos.json +74 -1
- package/build/src/v1/places_client.d.ts +16 -0
- package/build/src/v1/places_client.js.map +1 -1
- package/package.json +1 -1
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
|
|
|
@@ -5109,6 +5348,9 @@ export namespace google {
|
|
|
5109
5348
|
|
|
5110
5349
|
/** SearchTextRequest searchAlongRouteParameters */
|
|
5111
5350
|
searchAlongRouteParameters?: (google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters|null);
|
|
5351
|
+
|
|
5352
|
+
/** SearchTextRequest includePureServiceAreaBusinesses */
|
|
5353
|
+
includePureServiceAreaBusinesses?: (boolean|null);
|
|
5112
5354
|
}
|
|
5113
5355
|
|
|
5114
5356
|
/** Represents a SearchTextRequest. */
|
|
@@ -5165,6 +5407,9 @@ export namespace google {
|
|
|
5165
5407
|
/** SearchTextRequest searchAlongRouteParameters. */
|
|
5166
5408
|
public searchAlongRouteParameters?: (google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters|null);
|
|
5167
5409
|
|
|
5410
|
+
/** SearchTextRequest includePureServiceAreaBusinesses. */
|
|
5411
|
+
public includePureServiceAreaBusinesses: boolean;
|
|
5412
|
+
|
|
5168
5413
|
/**
|
|
5169
5414
|
* Creates a new SearchTextRequest instance using the specified properties.
|
|
5170
5415
|
* @param [properties] Properties to set
|
|
@@ -6136,6 +6381,9 @@ export namespace google {
|
|
|
6136
6381
|
|
|
6137
6382
|
/** AutocompletePlacesRequest sessionToken */
|
|
6138
6383
|
sessionToken?: (string|null);
|
|
6384
|
+
|
|
6385
|
+
/** AutocompletePlacesRequest includePureServiceAreaBusinesses */
|
|
6386
|
+
includePureServiceAreaBusinesses?: (boolean|null);
|
|
6139
6387
|
}
|
|
6140
6388
|
|
|
6141
6389
|
/** Represents an AutocompletePlacesRequest. */
|
|
@@ -6180,6 +6428,9 @@ export namespace google {
|
|
|
6180
6428
|
/** AutocompletePlacesRequest sessionToken. */
|
|
6181
6429
|
public sessionToken: string;
|
|
6182
6430
|
|
|
6431
|
+
/** AutocompletePlacesRequest includePureServiceAreaBusinesses. */
|
|
6432
|
+
public includePureServiceAreaBusinesses: boolean;
|
|
6433
|
+
|
|
6183
6434
|
/**
|
|
6184
6435
|
* Creates a new AutocompletePlacesRequest instance using the specified properties.
|
|
6185
6436
|
* @param [properties] Properties to set
|
|
@@ -7449,6 +7700,9 @@ export namespace google {
|
|
|
7449
7700
|
|
|
7450
7701
|
/** RoutingSummary legs */
|
|
7451
7702
|
legs?: (google.maps.places.v1.RoutingSummary.ILeg[]|null);
|
|
7703
|
+
|
|
7704
|
+
/** RoutingSummary directionsUri */
|
|
7705
|
+
directionsUri?: (string|null);
|
|
7452
7706
|
}
|
|
7453
7707
|
|
|
7454
7708
|
/** Represents a RoutingSummary. */
|
|
@@ -7463,6 +7717,9 @@ export namespace google {
|
|
|
7463
7717
|
/** RoutingSummary legs. */
|
|
7464
7718
|
public legs: google.maps.places.v1.RoutingSummary.ILeg[];
|
|
7465
7719
|
|
|
7720
|
+
/** RoutingSummary directionsUri. */
|
|
7721
|
+
public directionsUri: string;
|
|
7722
|
+
|
|
7466
7723
|
/**
|
|
7467
7724
|
* Creates a new RoutingSummary instance using the specified properties.
|
|
7468
7725
|
* @param [properties] Properties to set
|