Skip to content

Commit b3d8e7d

Browse files
Google APIscopybara-github
authored andcommitted
docs: Change comments in some fields in Places API
feat: Add postal_address and time_zone to Place PiperOrigin-RevId: 735444062
1 parent b80f49d commit b3d8e7d

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

google/maps/places/v1/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ proto_library(
8080
"//google/api:resource_proto",
8181
"//google/geo/type:viewport_proto",
8282
"//google/type:date_proto",
83+
"//google/type:datetime_proto",
8384
"//google/type:latlng_proto",
8485
"//google/type:localized_text_proto",
8586
"//google/type:money_proto",
87+
"//google/type:postal_address_proto",
8688
"@com_google_protobuf//:duration_proto",
8789
"@com_google_protobuf//:timestamp_proto",
8890
],
@@ -186,9 +188,11 @@ go_proto_library(
186188
"//google/api:annotations_go_proto",
187189
"//google/geo/type:viewport_go_proto",
188190
"//google/type:date_go_proto",
191+
"//google/type:datetime_go_proto",
189192
"//google/type:latlng_go_proto",
190193
"//google/type:localized_text_go_proto",
191194
"//google/type:money_go_proto",
195+
"//google/type:postaladdress_go_proto",
192196
],
193197
)
194198

google/maps/places/v1/place.proto

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ import "google/maps/places/v1/reference.proto";
2727
import "google/maps/places/v1/review.proto";
2828
import "google/protobuf/timestamp.proto";
2929
import "google/type/date.proto";
30+
import "google/type/datetime.proto";
3031
import "google/type/latlng.proto";
3132
import "google/type/localized_text.proto";
33+
import "google/type/postal_address.proto";
3234

3335
option csharp_namespace = "Google.Maps.Places.V1";
3436
option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
@@ -91,10 +93,10 @@ message Place {
9193
// Monday, etc.
9294
optional int32 day = 1;
9395

94-
// The hour in 2 digits. Ranges from 00 to 23.
96+
// The hour in 24 hour format. Ranges from 0 to 23.
9597
optional int32 hour = 2;
9698

97-
// The minute in 2 digits. Ranges from 00 to 59.
99+
// The minute. Ranges from 0 to 59.
98100
optional int32 minute = 3;
99101

100102
// Date in the local timezone for the place.
@@ -378,6 +380,9 @@ message Place {
378380
// A short, human-readable address for this place.
379381
string short_formatted_address = 51;
380382

383+
// The address in postal address format.
384+
google.type.PostalAddress postal_address = 90;
385+
381386
// Repeated components for each locality level.
382387
// Note the following facts about the address_components[] array:
383388
// - The array of address components may contain more components than the
@@ -421,21 +426,30 @@ message Place {
421426
// reviews can be returned.
422427
repeated Review reviews = 53;
423428

424-
// The regular hours of operation.
429+
// The regular hours of operation. Note that if a place is always open (24
430+
// hours), the `close` field will not be set. Clients can rely on always open
431+
// (24 hours) being represented as an
432+
// [open][google.maps.places.v1.Place.OpeningHours.Period.open] period
433+
// containing [day][Point.day] with value `0`, [hour][Point.hour] with
434+
// value `0`, and [minute][Point.minute] with value `0`.
425435
OpeningHours regular_opening_hours = 21;
426436

427437
// Number of minutes this place's timezone is currently offset from UTC.
428438
// This is expressed in minutes to support timezones that are offset by
429439
// fractions of an hour, e.g. X hours and 15 minutes.
430440
optional int32 utc_offset_minutes = 22;
431441

442+
// IANA Time Zone Database time zone. For example "America/New_York".
443+
google.type.TimeZone time_zone = 88;
444+
432445
// Information (including references) about photos of this place. A maximum of
433446
// 10 photos can be returned.
434447
repeated Photo photos = 54;
435448

436449
// The place's address in adr microformat: http://microformats.org/wiki/adr.
437450
string adr_format_address = 24;
438451

452+
// The business status for the place.
439453
BusinessStatus business_status = 25;
440454

441455
// Price level of the place.

0 commit comments

Comments
 (0)