Skip to content

Commit b7a50a2

Browse files
docs: [google-maps-places] Fix typo in PriceLevel enum (#12531)
BEGIN_COMMIT_OVERRIDE docs: Fix typo in PriceLevel enum docs: Document the maximum number of reviews and photos returned docs: Correct requirements on Autocomplete and Details session token field END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. docs: Document the maximum number of reviews and photos returned docs: Correct requirements on Autocomplete and Details session token field PiperOrigin-RevId: 620317804 Source-Link: googleapis/googleapis@828b4ba Source-Link: googleapis/googleapis-gen@89965d3 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtcGxhY2VzLy5Pd2xCb3QueWFtbCIsImgiOiI4OTk2NWQzY2IwMzk0ZWZiYWMwNWEwOWU2YjdlODk3NmM3MGM0MjUyIn0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: ohmayr <omairnaveed@ymail.com>
1 parent 4be4f8d commit b7a50a2

2 files changed

Lines changed: 36 additions & 32 deletions

File tree

packages/google-maps-places/google/maps/places_v1/types/place.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class PriceLevel(proto.Enum):
5151
PRICE_LEVEL_EXPENSIVE (4):
5252
Place provides expensive services.
5353
PRICE_LEVEL_VERY_EXPENSIVE (5):
54-
Place provides very expensive service s.
54+
Place provides very expensive services.
5555
"""
5656
PRICE_LEVEL_UNSPECIFIED = 0
5757
PRICE_LEVEL_FREE = 1
@@ -149,7 +149,8 @@ class Place(proto.Message):
149149
individual store, not the overall chain.
150150
reviews (MutableSequence[google.maps.places_v1.types.Review]):
151151
List of reviews about this place, sorted by
152-
relevance.
152+
relevance. A maximum of 5 reviews can be
153+
returned.
153154
regular_opening_hours (google.maps.places_v1.types.Place.OpeningHours):
154155
The regular hours of operation.
155156
utc_offset_minutes (int):
@@ -162,7 +163,8 @@ class Place(proto.Message):
162163
This field is a member of `oneof`_ ``_utc_offset_minutes``.
163164
photos (MutableSequence[google.maps.places_v1.types.Photo]):
164165
Information (including references) about
165-
photos of this place.
166+
photos of this place. A maximum of 10 photos can
167+
be returned.
166168
adr_format_address (str):
167169
The place's address in adr microformat:
168170
http://microformats.org/wiki/adr.

packages/google-maps-places/google/maps/places_v1/types/places_service.py

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -634,22 +634,23 @@ class GetPlaceRequest(proto.Message):
634634
635635
Note that 3-digit region codes are not currently supported.
636636
session_token (str):
637-
Optional. An arbitrary string which identifies an
638-
autocomplete session for billing purposes. Must be at most
639-
36 characters in length. Otherwise an INVALID_ARGUMENT error
640-
is returned.
637+
Optional. A string which identifies an Autocomplete session
638+
for billing purposes. Must be a URL and filename safe base64
639+
string with at most 36 ASCII characters in length. Otherwise
640+
an INVALID_ARGUMENT error is returned.
641641
642642
The session begins when the user starts typing a query, and
643643
concludes when they select a place and a call to Place
644644
Details or Address Validation is made. Each session can have
645-
multiple queries, followed by one Place selection. The
646-
credentials used for each request within a session must
647-
belong to the same Google Cloud Console project. Once a
648-
session has concluded, the token is no longer valid; your
649-
app must generate a fresh token for each session. If the
650-
``session_token`` parameter is omitted, or if you reuse a
651-
session token, the session is charged as if no session token
652-
was provided (each request is billed separately).
645+
multiple queries, followed by one Place Details or Address
646+
Validation request. The credentials used for each request
647+
within a session must belong to the same Google Cloud
648+
Console project. Once a session has concluded, the token is
649+
no longer valid; your app must generate a fresh token for
650+
each session. If the ``session_token`` parameter is omitted,
651+
or if you reuse a session token, the session is charged as
652+
if no session token was provided (each request is billed
653+
separately).
653654
654655
We recommend the following guidelines:
655656
@@ -704,8 +705,8 @@ class AutocompletePlacesRequest(proto.Message):
704705
biased by IP address, meaning the IP address will be mapped
705706
to an imprecise location and used as a biasing signal.
706707
included_primary_types (MutableSequence[str]):
707-
Optional. Included primary Place type (e.g. "restaurant" or
708-
"gas_station") from
708+
Optional. Included primary Place type (for example,
709+
"restaurant" or "gas_station") from
709710
https://developers.google.com/maps/documentation/places/web-service/place-types.
710711
A Place is only returned if its primary type is included in
711712
this list. Up to 5 values can be specified. If no types are
@@ -746,22 +747,23 @@ class AutocompletePlacesRequest(proto.Message):
746747
both Place and query predictions. Otherwise the
747748
response will only return Place predictions.
748749
session_token (str):
749-
Optional. An arbitrary string which identifies an
750-
autocomplete session for billing purposes. Must be at most
751-
36 characters in length. Otherwise an INVALID_ARGUMENT error
752-
is returned.
750+
Optional. A string which identifies an Autocomplete session
751+
for billing purposes. Must be a URL and filename safe base64
752+
string with at most 36 ASCII characters in length. Otherwise
753+
an INVALID_ARGUMENT error is returned.
753754
754755
The session begins when the user starts typing a query, and
755756
concludes when they select a place and a call to Place
756757
Details or Address Validation is made. Each session can have
757-
multiple queries, followed by one Place selection. The
758-
credentials used for each request within a session must
759-
belong to the same Google Cloud Console project. Once a
760-
session has concluded, the token is no longer valid; your
761-
app must generate a fresh token for each session. If the
762-
``session_token`` parameter is omitted, or if you reuse a
763-
session token, the session is charged as if no session token
764-
was provided (each request is billed separately).
758+
multiple queries, followed by one Place Details or Address
759+
Validation request. The credentials used for each request
760+
within a session must belong to the same Google Cloud
761+
Console project. Once a session has concluded, the token is
762+
no longer valid; your app must generate a fresh token for
763+
each session. If the ``session_token`` parameter is omitted,
764+
or if you reuse a session token, the session is charged as
765+
if no session token was provided (each request is billed
766+
separately).
765767
766768
We recommend the following guidelines:
767769
@@ -963,8 +965,8 @@ class FormattableText(proto.Message):
963965
matched in ``text``. The ranges can be used to format
964966
specific parts of ``text``. The substrings may not be exact
965967
matches of ``input`` if the matching was determined by
966-
criteria other than string matching (e.g. spell corrections
967-
or transliterations).
968+
criteria other than string matching (for example, spell
969+
corrections or transliterations).
968970
969971
These values are Unicode character offsets of ``text``. The
970972
ranges are guaranteed to be ordered in increasing offset
@@ -1110,7 +1112,7 @@ class QueryPrediction(proto.Message):
11101112
text (google.maps.places_v1.types.AutocompletePlacesResponse.Suggestion.FormattableText):
11111113
The predicted text. This text does not represent a Place,
11121114
but rather a text query that could be used in a search
1113-
endpoint (e.g. TextSearch).
1115+
endpoint (for example, TextSearch).
11141116
11151117
``text`` is recommended for developers who wish to show a
11161118
single UI element. Developers who wish to show two separate,

0 commit comments

Comments
 (0)