@googlemaps/places 2.1.1 → 2.3.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.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.
@@ -16,7 +16,7 @@ syntax = "proto3";
16
16
 
17
17
  package google.maps.places.v1;
18
18
 
19
- import "google/maps/places/v1/reference.proto";
19
+ import "google/api/resource.proto";
20
20
  import "google/type/localized_text.proto";
21
21
 
22
22
  option csharp_namespace = "Google.Maps.Places.V1";
@@ -29,16 +29,12 @@ option php_namespace = "Google\\Maps\\Places\\V1";
29
29
 
30
30
  // A block of content that can be served individually.
31
31
  message ContentBlock {
32
- // The topic of the content, for example "overview" or "restaurant".
33
- string topic = 1;
34
-
35
32
  // Content related to the topic.
36
33
  google.type.LocalizedText content = 2;
37
34
 
38
- // Experimental: See
39
- // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative
40
- // for more details.
41
- //
42
- // References that are related to this block of content.
43
- References references = 3;
35
+ // The list of resource names of the referenced places. This name can be used
36
+ // in other APIs that accept Place resource names.
37
+ repeated string referenced_places = 4 [
38
+ (google.api.resource_reference) = { type: "places.googleapis.com/Place" }
39
+ ];
44
40
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.
@@ -103,11 +103,11 @@ message ContextualContent {
103
103
  }
104
104
  }
105
105
 
106
- // List of reviews about this place, contexual to the place query.
106
+ // List of reviews about this place, contextual to the place query.
107
107
  repeated Review reviews = 1;
108
108
 
109
- // Information (including references) about photos of this place, contexual to
110
- // the place query.
109
+ // Information (including references) about photos of this place, contextual
110
+ // to the place query.
111
111
  repeated Photo photos = 2;
112
112
 
113
113
  // Experimental: See
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.
@@ -348,6 +348,25 @@ message Place {
348
348
  string id = 2;
349
349
  }
350
350
 
351
+ // Links to trigger different Google Maps actions.
352
+ message GoogleMapsLinks {
353
+ // A link to show the directions to the place. The link only populates the
354
+ // destination location and uses the default travel mode `DRIVE`.
355
+ string directions_uri = 1;
356
+
357
+ // A link to show this place.
358
+ string place_uri = 2;
359
+
360
+ // A link to write a review for this place on Google Maps.
361
+ string write_a_review_uri = 3;
362
+
363
+ // A link to show reviews of this place on Google Maps.
364
+ string reviews_uri = 4;
365
+
366
+ // A link to show photos of this place on Google Maps.
367
+ string photos_uri = 5;
368
+ }
369
+
351
370
  // AI-generated summary of the place using user reviews.
352
371
  message ReviewSummary {
353
372
  // The summary of user reviews.
@@ -360,6 +379,9 @@ message Place {
360
379
  // (and its localized variants). This will be in the language specified in
361
380
  // the request if available.
362
381
  google.type.LocalizedText disclosure_text = 3;
382
+
383
+ // A link to show reviews of this place on Google Maps.
384
+ string reviews_uri = 4;
363
385
  }
364
386
 
365
387
  // The summary of amenities near the EV charging station. This only applies to
@@ -376,7 +398,7 @@ message Place {
376
398
  // A summary of the nearby restaurants.
377
399
  ContentBlock restaurant = 3;
378
400
 
379
- // A summary of the nearby gas stations.
401
+ // A summary of the nearby stores.
380
402
  ContentBlock store = 4;
381
403
 
382
404
  // A link where users can flag a problem with the summary.
@@ -405,6 +427,43 @@ message Place {
405
427
  google.type.LocalizedText disclosure_text = 4;
406
428
  }
407
429
 
430
+ // The consumer alert message for the place when we detect suspicious review
431
+ // activity on a business or a business violates our policies.
432
+ message ConsumerAlert {
433
+ // The details of the consumer alert message.
434
+ message Details {
435
+ // The link to show together with the description to provide more
436
+ // information.
437
+ message Link {
438
+ // The title to show for the link.
439
+ string title = 1;
440
+
441
+ // The uri of the link.
442
+ string uri = 2;
443
+ }
444
+
445
+ // The title to show together with the description.
446
+ string title = 1;
447
+
448
+ // The description of the consumer alert message.
449
+ string description = 2;
450
+
451
+ // The link to show together with the description to provide more
452
+ // information.
453
+ Link about_link = 3;
454
+ }
455
+
456
+ // The overview of the consumer alert message.
457
+ string overview = 1;
458
+
459
+ // The details of the consumer alert message.
460
+ Details details = 2;
461
+
462
+ // The language code of the consumer alert message. This is a BCP 47
463
+ // language code.
464
+ string language_code = 3;
465
+ }
466
+
408
467
  // This Place's resource name, in `places/{place_id}` format. Can be used to
409
468
  // look up the Place.
410
469
  string name = 1;
@@ -440,6 +499,13 @@ message Place {
440
499
  // supported type.
441
500
  google.type.LocalizedText primary_type_display_name = 32;
442
501
 
502
+ // The type label of the place on Google Maps, localized to the request
503
+ // language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
504
+ // The type label may be different from the primary type display name and may
505
+ // not be a supported type in [Places API Place Types
506
+ // table](https://developers.google.com/maps/documentation/places/web-service/place-types).
507
+ google.type.LocalizedText google_maps_type_label = 96;
508
+
443
509
  // A human-readable phone number for the place, in national format.
444
510
  string national_phone_number = 7;
445
511
 
@@ -682,6 +748,9 @@ message Place {
682
748
  // https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
683
749
  AddressDescriptor address_descriptor = 84;
684
750
 
751
+ // Links to trigger different Google Maps actions.
752
+ GoogleMapsLinks google_maps_links = 85;
753
+
685
754
  // The price range associated with a Place.
686
755
  PriceRange price_range = 86;
687
756
 
@@ -693,6 +762,25 @@ message Place {
693
762
 
694
763
  // A summary of points of interest near the place.
695
764
  NeighborhoodSummary neighborhood_summary = 91;
765
+
766
+ // The consumer alert message for the place when we detect suspicious review
767
+ // activity on a business or a business violates our policies.
768
+ ConsumerAlert consumer_alert = 92;
769
+
770
+ // If this Place is permanently closed and has moved to a new Place, this
771
+ // field contains the new Place's resource name, in `places/{place_id}`
772
+ // format. If this Place moved multiple times, this field will represent the
773
+ // first moved place. This field will not be populated if this Place has not
774
+ // moved.
775
+ string moved_place = 93 [
776
+ (google.api.resource_reference) = { type: "places.googleapis.com/Place" }
777
+ ];
778
+
779
+ // If this Place is permanently closed and has moved to a new Place, this
780
+ // field contains the new Place's place ID. If this Place moved multiple
781
+ // times, this field will represent the first moved Place. This field will not
782
+ // be populated if this Place has not moved.
783
+ string moved_place_id = 94;
696
784
  }
697
785
 
698
786
  // Price level of the place.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.
@@ -68,4 +68,8 @@ message Review {
68
68
 
69
69
  // A link to show the review on Google Maps.
70
70
  string google_maps_uri = 16;
71
+
72
+ // The date when the author visited the place. This is truncated to the year
73
+ // and month of the visit.
74
+ google.type.Date visit_date = 17;
71
75
  }
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 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.