@googlemaps/places 1.3.0 → 1.5.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.
- package/CHANGELOG.md +15 -0
- package/build/protos/google/geo/type/viewport.proto +1 -1
- package/build/protos/google/maps/places/v1/attribution.proto +1 -1
- package/build/protos/google/maps/places/v1/ev_charging.proto +1 -1
- package/build/protos/google/maps/places/v1/fuel_options.proto +1 -1
- package/build/protos/google/maps/places/v1/geometry.proto +1 -1
- package/build/protos/google/maps/places/v1/photo.proto +1 -1
- package/build/protos/google/maps/places/v1/place.proto +10 -8
- package/build/protos/google/maps/places/v1/places_service.proto +40 -34
- package/build/protos/google/maps/places/v1/review.proto +1 -1
- package/build/protos/protos.d.ts +770 -16
- package/build/protos/protos.js +2993 -299
- package/build/protos/protos.json +348 -16
- package/build/src/v1/places_client.d.ts +30 -27
- package/build/src/v1/places_client.js +14 -12
- package/build/src/v1/places_client.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.5.0](https://github.com/googleapis/google-cloud-node/compare/places-v1.4.0...places-v1.5.0) (2024-05-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* [Many APIs] update Nodejs generator to send API versions in headers for GAPICs ([#5351](https://github.com/googleapis/google-cloud-node/issues/5351)) ([01f48fc](https://github.com/googleapis/google-cloud-node/commit/01f48fce63ec4ddf801d59ee2b8c0db9f6fb8372))
|
|
9
|
+
* [Many APIs] update Nodejs generator to send API versions in headers for GAPICs ([#5354](https://github.com/googleapis/google-cloud-node/issues/5354)) ([a9784ed](https://github.com/googleapis/google-cloud-node/commit/a9784ed3db6ee96d171762308bbbcd57390b6866))
|
|
10
|
+
|
|
11
|
+
## [1.4.0](https://github.com/googleapis/google-cloud-node/compare/places-v1.3.0...places-v1.4.0) (2024-03-29)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* [Many APIs] add several fields to manage state of database encryption update ([#5193](https://github.com/googleapis/google-cloud-node/issues/5193)) ([333b409](https://github.com/googleapis/google-cloud-node/commit/333b40951a255ecfab249bd6e7ace5877270ec85))
|
|
17
|
+
|
|
3
18
|
## [1.3.0](https://github.com/googleapis/google-cloud-node/compare/places-v1.2.0...places-v1.3.0) (2024-02-22)
|
|
4
19
|
|
|
5
20
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 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.
|
|
@@ -295,8 +295,8 @@ message Place {
|
|
|
295
295
|
google.type.LocalizedText display_name = 31;
|
|
296
296
|
|
|
297
297
|
// A set of type tags for this result. For example, "political" and
|
|
298
|
-
// "locality".
|
|
299
|
-
//
|
|
298
|
+
// "locality". For the complete list of possible values, see Table A and Table
|
|
299
|
+
// B at
|
|
300
300
|
// https://developers.google.com/maps/documentation/places/web-service/place-types
|
|
301
301
|
repeated string types = 5;
|
|
302
302
|
|
|
@@ -308,8 +308,8 @@ message Place {
|
|
|
308
308
|
string primary_type = 50;
|
|
309
309
|
|
|
310
310
|
// The display name of the primary type, localized to the request language if
|
|
311
|
-
// applicable.
|
|
312
|
-
//
|
|
311
|
+
// applicable. For the complete list of possible values, see Table A and Table
|
|
312
|
+
// B at
|
|
313
313
|
// https://developers.google.com/maps/documentation/places/web-service/place-types
|
|
314
314
|
google.type.LocalizedText primary_type_display_name = 32;
|
|
315
315
|
|
|
@@ -362,7 +362,8 @@ message Place {
|
|
|
362
362
|
// chain.
|
|
363
363
|
string website_uri = 16;
|
|
364
364
|
|
|
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.
|
|
366
367
|
repeated Review reviews = 53;
|
|
367
368
|
|
|
368
369
|
// The regular hours of operation.
|
|
@@ -373,7 +374,8 @@ message Place {
|
|
|
373
374
|
// fractions of an hour, e.g. X hours and 15 minutes.
|
|
374
375
|
optional int32 utc_offset_minutes = 22;
|
|
375
376
|
|
|
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.
|
|
377
379
|
repeated Photo photos = 54;
|
|
378
380
|
|
|
379
381
|
// The place's address in adr microformat: http://microformats.org/wiki/adr.
|
|
@@ -534,6 +536,6 @@ enum PriceLevel {
|
|
|
534
536
|
// Place provides expensive services.
|
|
535
537
|
PRICE_LEVEL_EXPENSIVE = 4;
|
|
536
538
|
|
|
537
|
-
// Place provides very expensive
|
|
539
|
+
// Place provides very expensive services.
|
|
538
540
|
PRICE_LEVEL_VERY_EXPENSIVE = 5;
|
|
539
541
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2024 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.
|
|
@@ -36,11 +36,10 @@ option objc_class_prefix = "GMPSV1";
|
|
|
36
36
|
option php_namespace = "Google\\Maps\\Places\\V1";
|
|
37
37
|
|
|
38
38
|
// Service definition for the Places API.
|
|
39
|
-
// Note: every request
|
|
40
|
-
// the request proto (all
|
|
41
|
-
//
|
|
42
|
-
//
|
|
43
|
-
// https://cloud.google.com/apis/docs/system-parameters
|
|
39
|
+
// Note: every request (except for Autocomplete requests) requires a field mask
|
|
40
|
+
// set outside of the request proto (`all/*`, is not assumed). The field mask
|
|
41
|
+
// can be set via the HTTP header `X-Goog-FieldMask`. See:
|
|
42
|
+
// https://developers.google.com/maps/documentation/places/web-service/choose-fields
|
|
44
43
|
service Places {
|
|
45
44
|
option (google.api.default_host) = "places.googleapis.com";
|
|
46
45
|
|
|
@@ -238,7 +237,9 @@ message SearchNearbyResponse {
|
|
|
238
237
|
message SearchTextRequest {
|
|
239
238
|
// How results will be ranked in the response.
|
|
240
239
|
enum RankPreference {
|
|
241
|
-
//
|
|
240
|
+
// For a categorical query such as "Restaurants in New York City", RELEVANCE
|
|
241
|
+
// is the default. For non-categorical queries such as "Mountain View, CA"
|
|
242
|
+
// we recommend that you leave rankPreference unset.
|
|
242
243
|
RANK_PREFERENCE_UNSPECIFIED = 0;
|
|
243
244
|
|
|
244
245
|
// Ranks results by distance.
|
|
@@ -282,13 +283,13 @@ message SearchTextRequest {
|
|
|
282
283
|
|
|
283
284
|
// Searchable EV options of a place search request.
|
|
284
285
|
message EVOptions {
|
|
285
|
-
// Optional.
|
|
286
|
-
// charging
|
|
286
|
+
// Optional. Minimum required charging rate in kilowatts. A place with a
|
|
287
|
+
// charging rate less than the specified rate is filtered out.
|
|
287
288
|
double minimum_charging_rate_kw = 1
|
|
288
289
|
[(google.api.field_behavior) = OPTIONAL];
|
|
289
290
|
|
|
290
291
|
// Optional. The list of preferred EV connector types. A place that does not
|
|
291
|
-
// support any of the listed connector types
|
|
292
|
+
// support any of the listed connector types is filtered out.
|
|
292
293
|
repeated EVConnectorType connector_types = 2
|
|
293
294
|
[(google.api.field_behavior) = OPTIONAL];
|
|
294
295
|
}
|
|
@@ -465,21 +466,23 @@ message GetPlaceRequest {
|
|
|
465
466
|
// Note that 3-digit region codes are not currently supported.
|
|
466
467
|
string region_code = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
467
468
|
|
|
468
|
-
// Optional.
|
|
469
|
-
//
|
|
470
|
-
// INVALID_ARGUMENT error is
|
|
469
|
+
// Optional. A string which identifies an Autocomplete session for billing
|
|
470
|
+
// purposes. Must be a URL and filename safe base64 string with at most 36
|
|
471
|
+
// ASCII characters in length. Otherwise an INVALID_ARGUMENT error is
|
|
472
|
+
// returned.
|
|
471
473
|
//
|
|
472
474
|
// The session begins when the user starts typing a query, and concludes when
|
|
473
475
|
// 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
|
-
//
|
|
476
|
-
// belong to the same Google Cloud Console project. Once a
|
|
477
|
-
// concluded, the token is no longer valid; your app must generate
|
|
478
|
-
// token for each session. If the `session_token` parameter is
|
|
479
|
-
// you reuse a session token, the session is charged as if no
|
|
480
|
-
// was provided (each request is billed separately).
|
|
476
|
+
// made. Each session can have multiple queries, followed by one Place Details
|
|
477
|
+
// or Address Validation request. The credentials used for each request within
|
|
478
|
+
// a session must belong to the same Google Cloud Console project. Once a
|
|
479
|
+
// session has concluded, the token is no longer valid; your app must generate
|
|
480
|
+
// a fresh token for each session. If the `session_token` parameter is
|
|
481
|
+
// omitted, or if you reuse a session token, the session is charged as if no
|
|
482
|
+
// session token was provided (each request is billed separately).
|
|
481
483
|
//
|
|
482
484
|
// We recommend the following guidelines:
|
|
485
|
+
//
|
|
483
486
|
// * Use session tokens for all Place Autocomplete calls.
|
|
484
487
|
// * Generate a fresh token for each session. Using a version 4 UUID is
|
|
485
488
|
// recommended.
|
|
@@ -538,8 +541,8 @@ message AutocompletePlacesRequest {
|
|
|
538
541
|
LocationRestriction location_restriction = 3
|
|
539
542
|
[(google.api.field_behavior) = OPTIONAL];
|
|
540
543
|
|
|
541
|
-
// Optional. Included primary Place type (
|
|
542
|
-
// from
|
|
544
|
+
// Optional. Included primary Place type (for example, "restaurant" or
|
|
545
|
+
// "gas_station") from
|
|
543
546
|
// https://developers.google.com/maps/documentation/places/web-service/place-types.
|
|
544
547
|
// A Place is only returned if its primary type is included in this list. Up
|
|
545
548
|
// to 5 values can be specified. If no types are specified, all Place types
|
|
@@ -582,21 +585,23 @@ message AutocompletePlacesRequest {
|
|
|
582
585
|
// predictions. Otherwise the response will only return Place predictions.
|
|
583
586
|
bool include_query_predictions = 10 [(google.api.field_behavior) = OPTIONAL];
|
|
584
587
|
|
|
585
|
-
// Optional.
|
|
586
|
-
//
|
|
587
|
-
// INVALID_ARGUMENT error is
|
|
588
|
+
// Optional. A string which identifies an Autocomplete session for billing
|
|
589
|
+
// purposes. Must be a URL and filename safe base64 string with at most 36
|
|
590
|
+
// ASCII characters in length. Otherwise an INVALID_ARGUMENT error is
|
|
591
|
+
// returned.
|
|
588
592
|
//
|
|
589
593
|
// The session begins when the user starts typing a query, and concludes when
|
|
590
594
|
// 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
|
-
//
|
|
593
|
-
// belong to the same Google Cloud Console project. Once a
|
|
594
|
-
// concluded, the token is no longer valid; your app must generate
|
|
595
|
-
// token for each session. If the `session_token` parameter is
|
|
596
|
-
// you reuse a session token, the session is charged as if no
|
|
597
|
-
// was provided (each request is billed separately).
|
|
595
|
+
// made. Each session can have multiple queries, followed by one Place Details
|
|
596
|
+
// or Address Validation request. The credentials used for each request within
|
|
597
|
+
// a session must belong to the same Google Cloud Console project. Once a
|
|
598
|
+
// session has concluded, the token is no longer valid; your app must generate
|
|
599
|
+
// a fresh token for each session. If the `session_token` parameter is
|
|
600
|
+
// omitted, or if you reuse a session token, the session is charged as if no
|
|
601
|
+
// session token was provided (each request is billed separately).
|
|
598
602
|
//
|
|
599
603
|
// We recommend the following guidelines:
|
|
604
|
+
//
|
|
600
605
|
// * Use session tokens for all Place Autocomplete calls.
|
|
601
606
|
// * Generate a fresh token for each session. Using a version 4 UUID is
|
|
602
607
|
// recommended.
|
|
@@ -632,7 +637,7 @@ message AutocompletePlacesResponse {
|
|
|
632
637
|
// A list of string ranges identifying where the input request matched in
|
|
633
638
|
// `text`. The ranges can be used to format specific parts of `text`. The
|
|
634
639
|
// substrings may not be exact matches of `input` if the matching was
|
|
635
|
-
// determined by criteria other than string matching (
|
|
640
|
+
// determined by criteria other than string matching (for example, spell
|
|
636
641
|
// corrections or transliterations).
|
|
637
642
|
//
|
|
638
643
|
// These values are Unicode character offsets of `text`. The ranges are
|
|
@@ -713,7 +718,8 @@ message AutocompletePlacesResponse {
|
|
|
713
718
|
// Prediction results for a Query Autocomplete prediction.
|
|
714
719
|
message QueryPrediction {
|
|
715
720
|
// The predicted text. This text does not represent a Place, but rather a
|
|
716
|
-
// text query that could be used in a search endpoint (
|
|
721
|
+
// text query that could be used in a search endpoint (for example,
|
|
722
|
+
// Text Search).
|
|
717
723
|
//
|
|
718
724
|
// `text` is recommended for developers who wish to show a single UI
|
|
719
725
|
// element. Developers who wish to show two separate, but related, UI
|