@googlemaps/places 1.7.0 → 1.9.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.
Files changed (27) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/build/protos/google/maps/places/v1/attribution.proto +0 -1
  3. package/build/protos/google/maps/places/v1/content_block.proto +0 -1
  4. package/build/protos/google/maps/places/v1/contextual_content.proto +0 -1
  5. package/build/protos/google/maps/places/v1/ev_charging.proto +0 -1
  6. package/build/protos/google/maps/places/v1/fuel_options.proto +7 -2
  7. package/build/protos/google/maps/places/v1/geometry.proto +0 -1
  8. package/build/protos/google/maps/places/v1/photo.proto +0 -1
  9. package/build/protos/google/maps/places/v1/place.proto +39 -3
  10. package/build/protos/google/maps/places/v1/places_service.proto +22 -3
  11. package/build/protos/google/maps/places/v1/polyline.proto +0 -1
  12. package/build/protos/google/maps/places/v1/price_range.proto +39 -0
  13. package/build/protos/google/maps/places/v1/reference.proto +0 -1
  14. package/build/protos/google/maps/places/v1/review.proto +0 -1
  15. package/build/protos/google/maps/places/v1/route_modifiers.proto +0 -1
  16. package/build/protos/google/maps/places/v1/routing_preference.proto +0 -1
  17. package/build/protos/google/maps/places/v1/routing_summary.proto +9 -2
  18. package/build/protos/google/maps/places/v1/travel_mode.proto +0 -1
  19. package/build/protos/protos.d.ts +260 -1
  20. package/build/protos/protos.js +717 -2
  21. package/build/protos/protos.json +76 -1
  22. package/build/src/index.js +1 -1
  23. package/build/src/v1/index.js +1 -1
  24. package/build/src/v1/places_client.d.ts +16 -0
  25. package/build/src/v1/places_client.js +1 -1
  26. package/build/src/v1/places_client.js.map +1 -1
  27. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- // Copyright 2024 Google LLC
1
+ // Copyright 2025 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -2246,6 +2246,7 @@ export namespace google {
2246
2246
  enum FuelType {
2247
2247
  FUEL_TYPE_UNSPECIFIED = 0,
2248
2248
  DIESEL = 1,
2249
+ DIESEL_PLUS = 19,
2249
2250
  REGULAR_UNLEADED = 2,
2250
2251
  MIDGRADE = 3,
2251
2252
  PREMIUM = 4,
@@ -2260,6 +2261,7 @@ export namespace google {
2260
2261
  LPG = 13,
2261
2262
  E80 = 14,
2262
2263
  E85 = 15,
2264
+ E100 = 20,
2263
2265
  METHANE = 16,
2264
2266
  BIO_DIESEL = 17,
2265
2267
  TRUCK_DIESEL = 18
@@ -2561,6 +2563,15 @@ export namespace google {
2561
2563
 
2562
2564
  /** Place areaSummary */
2563
2565
  areaSummary?: (google.maps.places.v1.Place.IAreaSummary|null);
2566
+
2567
+ /** Place containingPlaces */
2568
+ containingPlaces?: (google.maps.places.v1.Place.IContainingPlace[]|null);
2569
+
2570
+ /** Place pureServiceAreaBusiness */
2571
+ pureServiceAreaBusiness?: (boolean|null);
2572
+
2573
+ /** Place priceRange */
2574
+ priceRange?: (google.maps.places.v1.IPriceRange|null);
2564
2575
  }
2565
2576
 
2566
2577
  /** Represents a Place. */
@@ -2761,6 +2772,15 @@ export namespace google {
2761
2772
  /** Place areaSummary. */
2762
2773
  public areaSummary?: (google.maps.places.v1.Place.IAreaSummary|null);
2763
2774
 
2775
+ /** Place containingPlaces. */
2776
+ public containingPlaces: google.maps.places.v1.Place.IContainingPlace[];
2777
+
2778
+ /** Place pureServiceAreaBusiness. */
2779
+ public pureServiceAreaBusiness?: (boolean|null);
2780
+
2781
+ /** Place priceRange. */
2782
+ public priceRange?: (google.maps.places.v1.IPriceRange|null);
2783
+
2764
2784
  /** Place _utcOffsetMinutes. */
2765
2785
  public _utcOffsetMinutes?: "utcOffsetMinutes";
2766
2786
 
@@ -2839,6 +2859,9 @@ export namespace google {
2839
2859
  /** Place _accessibilityOptions. */
2840
2860
  public _accessibilityOptions?: "accessibilityOptions";
2841
2861
 
2862
+ /** Place _pureServiceAreaBusiness. */
2863
+ public _pureServiceAreaBusiness?: "pureServiceAreaBusiness";
2864
+
2842
2865
  /**
2843
2866
  * Creates a new Place instance using the specified properties.
2844
2867
  * @param [properties] Properties to set
@@ -3154,6 +3177,12 @@ export namespace google {
3154
3177
 
3155
3178
  /** OpeningHours specialDays */
3156
3179
  specialDays?: (google.maps.places.v1.Place.OpeningHours.ISpecialDay[]|null);
3180
+
3181
+ /** OpeningHours nextOpenTime */
3182
+ nextOpenTime?: (google.protobuf.ITimestamp|null);
3183
+
3184
+ /** OpeningHours nextCloseTime */
3185
+ nextCloseTime?: (google.protobuf.ITimestamp|null);
3157
3186
  }
3158
3187
 
3159
3188
  /** Represents an OpeningHours. */
@@ -3180,6 +3209,12 @@ export namespace google {
3180
3209
  /** OpeningHours specialDays. */
3181
3210
  public specialDays: google.maps.places.v1.Place.OpeningHours.ISpecialDay[];
3182
3211
 
3212
+ /** OpeningHours nextOpenTime. */
3213
+ public nextOpenTime?: (google.protobuf.ITimestamp|null);
3214
+
3215
+ /** OpeningHours nextCloseTime. */
3216
+ public nextCloseTime?: (google.protobuf.ITimestamp|null);
3217
+
3183
3218
  /** OpeningHours _openNow. */
3184
3219
  public _openNow?: "openNow";
3185
3220
 
@@ -4442,6 +4477,109 @@ export namespace google {
4442
4477
  */
4443
4478
  public static getTypeUrl(typeUrlPrefix?: string): string;
4444
4479
  }
4480
+
4481
+ /** Properties of a ContainingPlace. */
4482
+ interface IContainingPlace {
4483
+
4484
+ /** ContainingPlace name */
4485
+ name?: (string|null);
4486
+
4487
+ /** ContainingPlace id */
4488
+ id?: (string|null);
4489
+ }
4490
+
4491
+ /** Represents a ContainingPlace. */
4492
+ class ContainingPlace implements IContainingPlace {
4493
+
4494
+ /**
4495
+ * Constructs a new ContainingPlace.
4496
+ * @param [properties] Properties to set
4497
+ */
4498
+ constructor(properties?: google.maps.places.v1.Place.IContainingPlace);
4499
+
4500
+ /** ContainingPlace name. */
4501
+ public name: string;
4502
+
4503
+ /** ContainingPlace id. */
4504
+ public id: string;
4505
+
4506
+ /**
4507
+ * Creates a new ContainingPlace instance using the specified properties.
4508
+ * @param [properties] Properties to set
4509
+ * @returns ContainingPlace instance
4510
+ */
4511
+ public static create(properties?: google.maps.places.v1.Place.IContainingPlace): google.maps.places.v1.Place.ContainingPlace;
4512
+
4513
+ /**
4514
+ * Encodes the specified ContainingPlace message. Does not implicitly {@link google.maps.places.v1.Place.ContainingPlace.verify|verify} messages.
4515
+ * @param message ContainingPlace message or plain object to encode
4516
+ * @param [writer] Writer to encode to
4517
+ * @returns Writer
4518
+ */
4519
+ public static encode(message: google.maps.places.v1.Place.IContainingPlace, writer?: $protobuf.Writer): $protobuf.Writer;
4520
+
4521
+ /**
4522
+ * Encodes the specified ContainingPlace message, length delimited. Does not implicitly {@link google.maps.places.v1.Place.ContainingPlace.verify|verify} messages.
4523
+ * @param message ContainingPlace message or plain object to encode
4524
+ * @param [writer] Writer to encode to
4525
+ * @returns Writer
4526
+ */
4527
+ public static encodeDelimited(message: google.maps.places.v1.Place.IContainingPlace, writer?: $protobuf.Writer): $protobuf.Writer;
4528
+
4529
+ /**
4530
+ * Decodes a ContainingPlace message from the specified reader or buffer.
4531
+ * @param reader Reader or buffer to decode from
4532
+ * @param [length] Message length if known beforehand
4533
+ * @returns ContainingPlace
4534
+ * @throws {Error} If the payload is not a reader or valid buffer
4535
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4536
+ */
4537
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.Place.ContainingPlace;
4538
+
4539
+ /**
4540
+ * Decodes a ContainingPlace message from the specified reader or buffer, length delimited.
4541
+ * @param reader Reader or buffer to decode from
4542
+ * @returns ContainingPlace
4543
+ * @throws {Error} If the payload is not a reader or valid buffer
4544
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4545
+ */
4546
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.Place.ContainingPlace;
4547
+
4548
+ /**
4549
+ * Verifies a ContainingPlace message.
4550
+ * @param message Plain object to verify
4551
+ * @returns `null` if valid, otherwise the reason why it is not
4552
+ */
4553
+ public static verify(message: { [k: string]: any }): (string|null);
4554
+
4555
+ /**
4556
+ * Creates a ContainingPlace message from a plain object. Also converts values to their respective internal types.
4557
+ * @param object Plain object
4558
+ * @returns ContainingPlace
4559
+ */
4560
+ public static fromObject(object: { [k: string]: any }): google.maps.places.v1.Place.ContainingPlace;
4561
+
4562
+ /**
4563
+ * Creates a plain object from a ContainingPlace message. Also converts values to other types if specified.
4564
+ * @param message ContainingPlace
4565
+ * @param [options] Conversion options
4566
+ * @returns Plain object
4567
+ */
4568
+ public static toObject(message: google.maps.places.v1.Place.ContainingPlace, options?: $protobuf.IConversionOptions): { [k: string]: any };
4569
+
4570
+ /**
4571
+ * Converts this ContainingPlace to JSON.
4572
+ * @returns JSON object
4573
+ */
4574
+ public toJSON(): { [k: string]: any };
4575
+
4576
+ /**
4577
+ * Gets the default type url for ContainingPlace
4578
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4579
+ * @returns The default type url
4580
+ */
4581
+ public static getTypeUrl(typeUrlPrefix?: string): string;
4582
+ }
4445
4583
  }
4446
4584
 
4447
4585
  /** PriceLevel enum. */
@@ -4454,6 +4592,109 @@ export namespace google {
4454
4592
  PRICE_LEVEL_VERY_EXPENSIVE = 5
4455
4593
  }
4456
4594
 
4595
+ /** Properties of a PriceRange. */
4596
+ interface IPriceRange {
4597
+
4598
+ /** PriceRange startPrice */
4599
+ startPrice?: (google.type.IMoney|null);
4600
+
4601
+ /** PriceRange endPrice */
4602
+ endPrice?: (google.type.IMoney|null);
4603
+ }
4604
+
4605
+ /** Represents a PriceRange. */
4606
+ class PriceRange implements IPriceRange {
4607
+
4608
+ /**
4609
+ * Constructs a new PriceRange.
4610
+ * @param [properties] Properties to set
4611
+ */
4612
+ constructor(properties?: google.maps.places.v1.IPriceRange);
4613
+
4614
+ /** PriceRange startPrice. */
4615
+ public startPrice?: (google.type.IMoney|null);
4616
+
4617
+ /** PriceRange endPrice. */
4618
+ public endPrice?: (google.type.IMoney|null);
4619
+
4620
+ /**
4621
+ * Creates a new PriceRange instance using the specified properties.
4622
+ * @param [properties] Properties to set
4623
+ * @returns PriceRange instance
4624
+ */
4625
+ public static create(properties?: google.maps.places.v1.IPriceRange): google.maps.places.v1.PriceRange;
4626
+
4627
+ /**
4628
+ * Encodes the specified PriceRange message. Does not implicitly {@link google.maps.places.v1.PriceRange.verify|verify} messages.
4629
+ * @param message PriceRange message or plain object to encode
4630
+ * @param [writer] Writer to encode to
4631
+ * @returns Writer
4632
+ */
4633
+ public static encode(message: google.maps.places.v1.IPriceRange, writer?: $protobuf.Writer): $protobuf.Writer;
4634
+
4635
+ /**
4636
+ * Encodes the specified PriceRange message, length delimited. Does not implicitly {@link google.maps.places.v1.PriceRange.verify|verify} messages.
4637
+ * @param message PriceRange message or plain object to encode
4638
+ * @param [writer] Writer to encode to
4639
+ * @returns Writer
4640
+ */
4641
+ public static encodeDelimited(message: google.maps.places.v1.IPriceRange, writer?: $protobuf.Writer): $protobuf.Writer;
4642
+
4643
+ /**
4644
+ * Decodes a PriceRange message from the specified reader or buffer.
4645
+ * @param reader Reader or buffer to decode from
4646
+ * @param [length] Message length if known beforehand
4647
+ * @returns PriceRange
4648
+ * @throws {Error} If the payload is not a reader or valid buffer
4649
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4650
+ */
4651
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.maps.places.v1.PriceRange;
4652
+
4653
+ /**
4654
+ * Decodes a PriceRange message from the specified reader or buffer, length delimited.
4655
+ * @param reader Reader or buffer to decode from
4656
+ * @returns PriceRange
4657
+ * @throws {Error} If the payload is not a reader or valid buffer
4658
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4659
+ */
4660
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.maps.places.v1.PriceRange;
4661
+
4662
+ /**
4663
+ * Verifies a PriceRange message.
4664
+ * @param message Plain object to verify
4665
+ * @returns `null` if valid, otherwise the reason why it is not
4666
+ */
4667
+ public static verify(message: { [k: string]: any }): (string|null);
4668
+
4669
+ /**
4670
+ * Creates a PriceRange message from a plain object. Also converts values to their respective internal types.
4671
+ * @param object Plain object
4672
+ * @returns PriceRange
4673
+ */
4674
+ public static fromObject(object: { [k: string]: any }): google.maps.places.v1.PriceRange;
4675
+
4676
+ /**
4677
+ * Creates a plain object from a PriceRange message. Also converts values to other types if specified.
4678
+ * @param message PriceRange
4679
+ * @param [options] Conversion options
4680
+ * @returns Plain object
4681
+ */
4682
+ public static toObject(message: google.maps.places.v1.PriceRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
4683
+
4684
+ /**
4685
+ * Converts this PriceRange to JSON.
4686
+ * @returns JSON object
4687
+ */
4688
+ public toJSON(): { [k: string]: any };
4689
+
4690
+ /**
4691
+ * Gets the default type url for PriceRange
4692
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
4693
+ * @returns The default type url
4694
+ */
4695
+ public static getTypeUrl(typeUrlPrefix?: string): string;
4696
+ }
4697
+
4457
4698
  /** Represents a Places */
4458
4699
  class Places extends $protobuf.rpc.Service {
4459
4700
 
@@ -5109,6 +5350,9 @@ export namespace google {
5109
5350
 
5110
5351
  /** SearchTextRequest searchAlongRouteParameters */
5111
5352
  searchAlongRouteParameters?: (google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters|null);
5353
+
5354
+ /** SearchTextRequest includePureServiceAreaBusinesses */
5355
+ includePureServiceAreaBusinesses?: (boolean|null);
5112
5356
  }
5113
5357
 
5114
5358
  /** Represents a SearchTextRequest. */
@@ -5165,6 +5409,9 @@ export namespace google {
5165
5409
  /** SearchTextRequest searchAlongRouteParameters. */
5166
5410
  public searchAlongRouteParameters?: (google.maps.places.v1.SearchTextRequest.ISearchAlongRouteParameters|null);
5167
5411
 
5412
+ /** SearchTextRequest includePureServiceAreaBusinesses. */
5413
+ public includePureServiceAreaBusinesses: boolean;
5414
+
5168
5415
  /**
5169
5416
  * Creates a new SearchTextRequest instance using the specified properties.
5170
5417
  * @param [properties] Properties to set
@@ -6136,6 +6383,9 @@ export namespace google {
6136
6383
 
6137
6384
  /** AutocompletePlacesRequest sessionToken */
6138
6385
  sessionToken?: (string|null);
6386
+
6387
+ /** AutocompletePlacesRequest includePureServiceAreaBusinesses */
6388
+ includePureServiceAreaBusinesses?: (boolean|null);
6139
6389
  }
6140
6390
 
6141
6391
  /** Represents an AutocompletePlacesRequest. */
@@ -6180,6 +6430,9 @@ export namespace google {
6180
6430
  /** AutocompletePlacesRequest sessionToken. */
6181
6431
  public sessionToken: string;
6182
6432
 
6433
+ /** AutocompletePlacesRequest includePureServiceAreaBusinesses. */
6434
+ public includePureServiceAreaBusinesses: boolean;
6435
+
6183
6436
  /**
6184
6437
  * Creates a new AutocompletePlacesRequest instance using the specified properties.
6185
6438
  * @param [properties] Properties to set
@@ -7449,6 +7702,9 @@ export namespace google {
7449
7702
 
7450
7703
  /** RoutingSummary legs */
7451
7704
  legs?: (google.maps.places.v1.RoutingSummary.ILeg[]|null);
7705
+
7706
+ /** RoutingSummary directionsUri */
7707
+ directionsUri?: (string|null);
7452
7708
  }
7453
7709
 
7454
7710
  /** Represents a RoutingSummary. */
@@ -7463,6 +7719,9 @@ export namespace google {
7463
7719
  /** RoutingSummary legs. */
7464
7720
  public legs: google.maps.places.v1.RoutingSummary.ILeg[];
7465
7721
 
7722
+ /** RoutingSummary directionsUri. */
7723
+ public directionsUri: string;
7724
+
7466
7725
  /**
7467
7726
  * Creates a new RoutingSummary instance using the specified properties.
7468
7727
  * @param [properties] Properties to set