Skip to content

Commit 6eead6e

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add googleMapsTypeLabel field to show type information on Google Maps
feat: Add `googleMapsLinks` field for links to different actions on Google Maps fix!: An existing field `topic` is removed from message `.google.maps.places.v1.ContentBlock` fix!: An existing field `references` is removed from message `.google.maps.places.v1.ContentBlock` docs: A comment for field `reviews` in message `.google.maps.places.v1.ContextualContent` is changed docs: A comment for field `photos` in message `.google.maps.places.v1.ContextualContent` is changed PiperOrigin-RevId: 869356577
1 parent df13ea5 commit 6eead6e

17 files changed

+55
-30
lines changed

google/maps/places/v1/address_descriptor.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/maps/places/v1/attribution.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/maps/places/v1/content_block.proto

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -16,7 +16,7 @@ syntax = "proto3";
1616

1717
package google.maps.places.v1;
1818

19-
import "google/maps/places/v1/reference.proto";
19+
import "google/api/resource.proto";
2020
import "google/type/localized_text.proto";
2121

2222
option csharp_namespace = "Google.Maps.Places.V1";
@@ -29,16 +29,12 @@ option php_namespace = "Google\\Maps\\Places\\V1";
2929

3030
// A block of content that can be served individually.
3131
message ContentBlock {
32-
// The topic of the content, for example "overview" or "restaurant".
33-
string topic = 1;
34-
3532
// Content related to the topic.
3633
google.type.LocalizedText content = 2;
3734

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+
];
4440
}

google/maps/places/v1/contextual_content.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -103,11 +103,11 @@ message ContextualContent {
103103
}
104104
}
105105

106-
// List of reviews about this place, contexual to the place query.
106+
// List of reviews about this place, contextual to the place query.
107107
repeated Review reviews = 1;
108108

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.
111111
repeated Photo photos = 2;
112112

113113
// Experimental: See

google/maps/places/v1/ev_charging.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/maps/places/v1/fuel_options.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/maps/places/v1/geometry.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/maps/places/v1/photo.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/maps/places/v1/place.proto

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -348,6 +348,25 @@ message Place {
348348
string id = 2;
349349
}
350350

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+
351370
// AI-generated summary of the place using user reviews.
352371
message ReviewSummary {
353372
// The summary of user reviews.
@@ -480,6 +499,13 @@ message Place {
480499
// supported type.
481500
google.type.LocalizedText primary_type_display_name = 32;
482501

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+
483509
// A human-readable phone number for the place, in national format.
484510
string national_phone_number = 7;
485511

@@ -722,6 +748,9 @@ message Place {
722748
// https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
723749
AddressDescriptor address_descriptor = 84;
724750

751+
// Links to trigger different Google Maps actions.
752+
GoogleMapsLinks google_maps_links = 85;
753+
725754
// The price range associated with a Place.
726755
PriceRange price_range = 86;
727756

google/maps/places/v1/places_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)