Skip to content

Commit 828b4ba

Browse files
Google APIscopybara-github
authored andcommitted
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 PiperOrigin-RevId: 620317804
1 parent c5b9e24 commit 828b4ba

3 files changed

Lines changed: 35 additions & 28 deletions

File tree

google/maps/places/v1/place.proto

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ message Place {
362362
// chain.
363363
string website_uri = 16;
364364

365-
// List of reviews about this place, sorted by relevance.
365+
// List of reviews about this place, sorted by relevance. A maximum of 5
366+
// reviews can be returned.
366367
repeated Review reviews = 53;
367368

368369
// The regular hours of operation.
@@ -373,7 +374,8 @@ message Place {
373374
// fractions of an hour, e.g. X hours and 15 minutes.
374375
optional int32 utc_offset_minutes = 22;
375376

376-
// Information (including references) about photos of this place.
377+
// Information (including references) about photos of this place. A maximum of
378+
// 10 photos can be returned.
377379
repeated Photo photos = 54;
378380

379381
// The place's address in adr microformat: http://microformats.org/wiki/adr.
@@ -534,6 +536,6 @@ enum PriceLevel {
534536
// Place provides expensive services.
535537
PRICE_LEVEL_EXPENSIVE = 4;
536538

537-
// Place provides very expensive service s.
539+
// Place provides very expensive services.
538540
PRICE_LEVEL_VERY_EXPENSIVE = 5;
539541
}

google/maps/places/v1/places_service.proto

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -465,21 +465,23 @@ message GetPlaceRequest {
465465
// Note that 3-digit region codes are not currently supported.
466466
string region_code = 3 [(google.api.field_behavior) = OPTIONAL];
467467

468-
// Optional. An arbitrary string which identifies an autocomplete session for
469-
// billing purposes. Must be at most 36 characters in length. Otherwise an
470-
// INVALID_ARGUMENT error is returned.
468+
// Optional. A string which identifies an Autocomplete session for billing
469+
// purposes. Must be a URL and filename safe base64 string with at most 36
470+
// ASCII characters in length. Otherwise an INVALID_ARGUMENT error is
471+
// returned.
471472
//
472473
// The session begins when the user starts typing a query, and concludes when
473474
// they select a place and a call to Place Details or Address Validation is
474-
// made. Each session can have multiple queries, followed by one Place
475-
// selection. The credentials used for each request within a session must
476-
// belong to the same Google Cloud Console project. Once a session has
477-
// concluded, the token is no longer valid; your app must generate a fresh
478-
// token for each session. If the `session_token` parameter is omitted, or if
479-
// you reuse a session token, the session is charged as if no session token
480-
// was provided (each request is billed separately).
475+
// made. Each session can have multiple queries, followed by one Place Details
476+
// or Address Validation request. The credentials used for each request within
477+
// a session must belong to the same Google Cloud Console project. Once a
478+
// session has concluded, the token is no longer valid; your app must generate
479+
// a fresh token for each session. If the `session_token` parameter is
480+
// omitted, or if you reuse a session token, the session is charged as if no
481+
// session token was provided (each request is billed separately).
481482
//
482483
// We recommend the following guidelines:
484+
//
483485
// * Use session tokens for all Place Autocomplete calls.
484486
// * Generate a fresh token for each session. Using a version 4 UUID is
485487
// recommended.
@@ -538,8 +540,8 @@ message AutocompletePlacesRequest {
538540
LocationRestriction location_restriction = 3
539541
[(google.api.field_behavior) = OPTIONAL];
540542

541-
// Optional. Included primary Place type (e.g. "restaurant" or "gas_station")
542-
// from
543+
// Optional. Included primary Place type (for example, "restaurant" or
544+
// "gas_station") from
543545
// https://developers.google.com/maps/documentation/places/web-service/place-types.
544546
// A Place is only returned if its primary type is included in this list. Up
545547
// to 5 values can be specified. If no types are specified, all Place types
@@ -582,21 +584,23 @@ message AutocompletePlacesRequest {
582584
// predictions. Otherwise the response will only return Place predictions.
583585
bool include_query_predictions = 10 [(google.api.field_behavior) = OPTIONAL];
584586

585-
// Optional. An arbitrary string which identifies an autocomplete session for
586-
// billing purposes. Must be at most 36 characters in length. Otherwise an
587-
// INVALID_ARGUMENT error is returned.
587+
// Optional. A string which identifies an Autocomplete session for billing
588+
// purposes. Must be a URL and filename safe base64 string with at most 36
589+
// ASCII characters in length. Otherwise an INVALID_ARGUMENT error is
590+
// returned.
588591
//
589592
// The session begins when the user starts typing a query, and concludes when
590593
// they select a place and a call to Place Details or Address Validation is
591-
// made. Each session can have multiple queries, followed by one Place
592-
// selection. The credentials used for each request within a session must
593-
// belong to the same Google Cloud Console project. Once a session has
594-
// concluded, the token is no longer valid; your app must generate a fresh
595-
// token for each session. If the `session_token` parameter is omitted, or if
596-
// you reuse a session token, the session is charged as if no session token
597-
// was provided (each request is billed separately).
594+
// made. Each session can have multiple queries, followed by one Place Details
595+
// or Address Validation request. The credentials used for each request within
596+
// a session must belong to the same Google Cloud Console project. Once a
597+
// session has concluded, the token is no longer valid; your app must generate
598+
// a fresh token for each session. If the `session_token` parameter is
599+
// omitted, or if you reuse a session token, the session is charged as if no
600+
// session token was provided (each request is billed separately).
598601
//
599602
// We recommend the following guidelines:
603+
//
600604
// * Use session tokens for all Place Autocomplete calls.
601605
// * Generate a fresh token for each session. Using a version 4 UUID is
602606
// recommended.
@@ -632,7 +636,7 @@ message AutocompletePlacesResponse {
632636
// A list of string ranges identifying where the input request matched in
633637
// `text`. The ranges can be used to format specific parts of `text`. The
634638
// substrings may not be exact matches of `input` if the matching was
635-
// determined by criteria other than string matching (e.g. spell
639+
// determined by criteria other than string matching (for example, spell
636640
// corrections or transliterations).
637641
//
638642
// These values are Unicode character offsets of `text`. The ranges are
@@ -713,7 +717,8 @@ message AutocompletePlacesResponse {
713717
// Prediction results for a Query Autocomplete prediction.
714718
message QueryPrediction {
715719
// The predicted text. This text does not represent a Place, but rather a
716-
// text query that could be used in a search endpoint (e.g. TextSearch).
720+
// text query that could be used in a search endpoint (for example,
721+
// TextSearch).
717722
//
718723
// `text` is recommended for developers who wish to show a single UI
719724
// element. Developers who wish to show two separate, but related, UI

google/maps/places/v1/places_v1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ publishing:
2020
doc_tag_prefix: places
2121
organization: GEO
2222
library_settings:
23-
- version: google.maps.api.v1
23+
- version: google.maps.places.v1
2424
launch_stage: GA
2525
java_settings:
2626
common:

0 commit comments

Comments
 (0)