@googlemaps/places 1.1.0 → 1.3.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 +14 -0
- package/README.md +1 -0
- package/build/protos/google/maps/places/v1/attribution.proto +8 -10
- package/build/protos/google/maps/places/v1/photo.proto +10 -11
- package/build/protos/google/maps/places/v1/place.proto +251 -253
- package/build/protos/google/maps/places/v1/places_service.proto +387 -41
- package/build/protos/google/maps/places/v1/review.proto +17 -24
- package/build/protos/protos.d.ts +8556 -7785
- package/build/protos/protos.js +26958 -25437
- package/build/protos/protos.json +3045 -3209
- package/build/src/index.js +1 -1
- package/build/src/v1/index.js +1 -1
- package/build/src/v1/places_client.d.ts +192 -37
- package/build/src/v1/places_client.js +59 -14
- package/build/src/v1/places_client.js.map +1 -1
- package/build/src/v1/places_client_config.json +4 -0
- package/package.json +5 -5
package/build/src/index.js
CHANGED
package/build/src/v1/index.js
CHANGED
|
@@ -3,10 +3,11 @@ import type { Callback, CallOptions, Descriptors, ClientOptions } from 'google-g
|
|
|
3
3
|
import * as protos from '../../protos/protos';
|
|
4
4
|
/**
|
|
5
5
|
* Service definition for the Places API.
|
|
6
|
-
* Note: every request actually requires a field mask set outside of
|
|
7
|
-
* proto (all/'*' is not assumed). That can be set via either a
|
|
8
|
-
* (SystemParameterContext) over RPC, or a header
|
|
9
|
-
* See:
|
|
6
|
+
* Note: every request actually requires a field mask set outside of
|
|
7
|
+
* the request proto (all/'*', is not assumed). That can be set via either a
|
|
8
|
+
* side channel (SystemParameterContext) over RPC, or a header
|
|
9
|
+
* (X-Goog-FieldMask) over HTTP. See:
|
|
10
|
+
* https://cloud.google.com/apis/docs/system-parameters
|
|
10
11
|
* @class
|
|
11
12
|
* @memberof v1
|
|
12
13
|
*/
|
|
@@ -18,6 +19,8 @@ export declare class PlacesClient {
|
|
|
18
19
|
private _gaxGrpc;
|
|
19
20
|
private _protos;
|
|
20
21
|
private _defaults;
|
|
22
|
+
private _universeDomain;
|
|
23
|
+
private _servicePath;
|
|
21
24
|
auth: gax.GoogleAuth;
|
|
22
25
|
descriptors: Descriptors;
|
|
23
26
|
warn: (code: string, message: string, warnType?: string) => void;
|
|
@@ -86,15 +89,22 @@ export declare class PlacesClient {
|
|
|
86
89
|
}>;
|
|
87
90
|
/**
|
|
88
91
|
* The DNS address for this API service.
|
|
92
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
89
93
|
* @returns {string} The DNS address for this service.
|
|
90
94
|
*/
|
|
91
95
|
static get servicePath(): string;
|
|
92
96
|
/**
|
|
93
|
-
* The DNS address for this API service - same as servicePath
|
|
94
|
-
*
|
|
97
|
+
* The DNS address for this API service - same as servicePath.
|
|
98
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
95
99
|
* @returns {string} The DNS address for this service.
|
|
96
100
|
*/
|
|
97
101
|
static get apiEndpoint(): string;
|
|
102
|
+
/**
|
|
103
|
+
* The DNS address for this API service.
|
|
104
|
+
* @returns {string} The DNS address for this service.
|
|
105
|
+
*/
|
|
106
|
+
get apiEndpoint(): string;
|
|
107
|
+
get universeDomain(): string;
|
|
98
108
|
/**
|
|
99
109
|
* The port for this API service.
|
|
100
110
|
* @returns {number} The default port for this service.
|
|
@@ -128,13 +138,17 @@ export declare class PlacesClient {
|
|
|
128
138
|
* affect results based on applicable law.
|
|
129
139
|
*
|
|
130
140
|
* For more information, see
|
|
131
|
-
*
|
|
141
|
+
* https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html.
|
|
132
142
|
*
|
|
133
143
|
*
|
|
134
144
|
* Note that 3-digit region codes are not currently supported.
|
|
135
145
|
* @param {string[]} request.includedTypes
|
|
136
146
|
* Included Place type (eg, "restaurant" or "gas_station") from
|
|
137
|
-
* https://developers.google.com/places/
|
|
147
|
+
* https://developers.google.com/maps/documentation/places/web-service/place-types.
|
|
148
|
+
*
|
|
149
|
+
* Up to 50 types from [Table
|
|
150
|
+
* A](https://developers.google.com/maps/documentation/places/web-service/place-types#table-a)
|
|
151
|
+
* may be specified.
|
|
138
152
|
*
|
|
139
153
|
* If there are any conflicting types, i.e. a type appears in both
|
|
140
154
|
* included_types and excluded_types, an INVALID_ARGUMENT error is
|
|
@@ -143,11 +157,15 @@ export declare class PlacesClient {
|
|
|
143
157
|
* If a Place type is specified with multiple type restrictions, only places
|
|
144
158
|
* that satisfy all of the restrictions are returned. For example, if we
|
|
145
159
|
* have {included_types = ["restaurant"], excluded_primary_types =
|
|
146
|
-
* ["restaurant"]}, the returned places
|
|
160
|
+
* ["restaurant"]}, the returned places provide "restaurant"
|
|
147
161
|
* related services but do not operate primarily as "restaurants".
|
|
148
162
|
* @param {string[]} request.excludedTypes
|
|
149
163
|
* Excluded Place type (eg, "restaurant" or "gas_station") from
|
|
150
|
-
* https://developers.google.com/places/
|
|
164
|
+
* https://developers.google.com/maps/documentation/places/web-service/place-types.
|
|
165
|
+
*
|
|
166
|
+
* Up to 50 types from [Table
|
|
167
|
+
* A](https://developers.google.com/maps/documentation/places/web-service/place-types#table-a)
|
|
168
|
+
* may be specified.
|
|
151
169
|
*
|
|
152
170
|
* If the client provides both included_types (e.g. restaurant) and
|
|
153
171
|
* excluded_types (e.g. cafe), then the response should include places that
|
|
@@ -160,11 +178,17 @@ export declare class PlacesClient {
|
|
|
160
178
|
* If a Place type is specified with multiple type restrictions, only places
|
|
161
179
|
* that satisfy all of the restrictions are returned. For example, if we
|
|
162
180
|
* have {included_types = ["restaurant"], excluded_primary_types =
|
|
163
|
-
* ["restaurant"]}, the returned places
|
|
181
|
+
* ["restaurant"]}, the returned places provide "restaurant"
|
|
164
182
|
* related services but do not operate primarily as "restaurants".
|
|
165
183
|
* @param {string[]} request.includedPrimaryTypes
|
|
166
184
|
* Included primary Place type (e.g. "restaurant" or "gas_station") from
|
|
167
|
-
* https://developers.google.com/places/
|
|
185
|
+
* https://developers.google.com/maps/documentation/places/web-service/place-types.
|
|
186
|
+
* A place can only have a single primary type from the supported types table
|
|
187
|
+
* associated with it.
|
|
188
|
+
*
|
|
189
|
+
* Up to 50 types from [Table
|
|
190
|
+
* A](https://developers.google.com/maps/documentation/places/web-service/place-types#table-a)
|
|
191
|
+
* may be specified.
|
|
168
192
|
*
|
|
169
193
|
* If there are any conflicting primary types, i.e. a type appears in both
|
|
170
194
|
* included_primary_types and excluded_primary_types, an INVALID_ARGUMENT
|
|
@@ -173,11 +197,15 @@ export declare class PlacesClient {
|
|
|
173
197
|
* If a Place type is specified with multiple type restrictions, only places
|
|
174
198
|
* that satisfy all of the restrictions are returned. For example, if we
|
|
175
199
|
* have {included_types = ["restaurant"], excluded_primary_types =
|
|
176
|
-
* ["restaurant"]}, the returned places
|
|
200
|
+
* ["restaurant"]}, the returned places provide "restaurant"
|
|
177
201
|
* related services but do not operate primarily as "restaurants".
|
|
178
202
|
* @param {string[]} request.excludedPrimaryTypes
|
|
179
203
|
* Excluded primary Place type (e.g. "restaurant" or "gas_station") from
|
|
180
|
-
* https://developers.google.com/places/
|
|
204
|
+
* https://developers.google.com/maps/documentation/places/web-service/place-types.
|
|
205
|
+
*
|
|
206
|
+
* Up to 50 types from [Table
|
|
207
|
+
* A](https://developers.google.com/maps/documentation/places/web-service/place-types#table-a)
|
|
208
|
+
* may be specified.
|
|
181
209
|
*
|
|
182
210
|
* If there are any conflicting primary types, i.e. a type appears in both
|
|
183
211
|
* included_primary_types and excluded_primary_types, an INVALID_ARGUMENT
|
|
@@ -186,10 +214,10 @@ export declare class PlacesClient {
|
|
|
186
214
|
* If a Place type is specified with multiple type restrictions, only places
|
|
187
215
|
* that satisfy all of the restrictions are returned. For example, if we
|
|
188
216
|
* have {included_types = ["restaurant"], excluded_primary_types =
|
|
189
|
-
* ["restaurant"]}, the returned places
|
|
217
|
+
* ["restaurant"]}, the returned places provide "restaurant"
|
|
190
218
|
* related services but do not operate primarily as "restaurants".
|
|
191
219
|
* @param {number} request.maxResultCount
|
|
192
|
-
* Maximum number of results to return. It must be between 1 and 20,
|
|
220
|
+
* Maximum number of results to return. It must be between 1 and 20 (default),
|
|
193
221
|
* inclusively. If the number is unset, it falls back to the upper limit. If
|
|
194
222
|
* the number is set to negative or exceeds the upper limit, an
|
|
195
223
|
* INVALID_ARGUMENT error is returned.
|
|
@@ -235,7 +263,7 @@ export declare class PlacesClient {
|
|
|
235
263
|
* affect results based on applicable law.
|
|
236
264
|
*
|
|
237
265
|
* For more information, see
|
|
238
|
-
*
|
|
266
|
+
* https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html.
|
|
239
267
|
*
|
|
240
268
|
*
|
|
241
269
|
* Note that 3-digit region codes are not currently supported.
|
|
@@ -243,23 +271,22 @@ export declare class PlacesClient {
|
|
|
243
271
|
* How results will be ranked in the response.
|
|
244
272
|
* @param {string} request.includedType
|
|
245
273
|
* The requested place type. Full list of types supported:
|
|
246
|
-
* https://developers.google.com/places/
|
|
247
|
-
* included type.
|
|
274
|
+
* https://developers.google.com/maps/documentation/places/web-service/place-types.
|
|
275
|
+
* Only support one included type.
|
|
248
276
|
* @param {boolean} request.openNow
|
|
249
|
-
* Used to restrict the search to places that are open
|
|
250
|
-
*
|
|
277
|
+
* Used to restrict the search to places that are currently open. The default
|
|
278
|
+
* is false.
|
|
251
279
|
* @param {number} request.minRating
|
|
252
280
|
* Filter out results whose average user rating is strictly less than this
|
|
253
|
-
* limit. A valid value must be
|
|
254
|
-
* 0.5 cadence i.e. [0, 0.5, 1.0, ... , 5.0] inclusively.
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
* results with a less than 1.0 rating.
|
|
281
|
+
* limit. A valid value must be a float between 0 and 5 (inclusively) at a
|
|
282
|
+
* 0.5 cadence i.e. [0, 0.5, 1.0, ... , 5.0] inclusively. The input rating
|
|
283
|
+
* will round up to the nearest 0.5(ceiling). For instance, a rating of 0.6
|
|
284
|
+
* will eliminate all results with a less than 1.0 rating.
|
|
258
285
|
* @param {number} request.maxResultCount
|
|
259
286
|
* Maximum number of results to return. It must be between 1 and 20,
|
|
260
|
-
* inclusively. If the number is unset, it falls back to
|
|
261
|
-
* the number is set to negative or exceeds the upper
|
|
262
|
-
* INVALID_ARGUMENT error is returned.
|
|
287
|
+
* inclusively. The default is 20. If the number is unset, it falls back to
|
|
288
|
+
* the upper limit. If the number is set to negative or exceeds the upper
|
|
289
|
+
* limit, an INVALID_ARGUMENT error is returned.
|
|
263
290
|
* @param {number[]} request.priceLevels
|
|
264
291
|
* Used to restrict the search to places that are marked as certain price
|
|
265
292
|
* levels. Users can choose any combinations of price levels. Default to
|
|
@@ -275,6 +302,8 @@ export declare class PlacesClient {
|
|
|
275
302
|
* The region to search. This location serves as a restriction which means
|
|
276
303
|
* results outside given location will not be returned. Cannot be set along
|
|
277
304
|
* with location_bias.
|
|
305
|
+
* @param {google.maps.places.v1.SearchTextRequest.EVOptions} [request.evOptions]
|
|
306
|
+
* Optional. Set the searchable EV options of a place search request.
|
|
278
307
|
* @param {object} [options]
|
|
279
308
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
280
309
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -297,9 +326,13 @@ export declare class PlacesClient {
|
|
|
297
326
|
* @param {Object} request
|
|
298
327
|
* The request object that will be sent.
|
|
299
328
|
* @param {string} request.name
|
|
300
|
-
* Required. The resource name of a photo
|
|
301
|
-
* photos
|
|
302
|
-
*
|
|
329
|
+
* Required. The resource name of a photo media in the format:
|
|
330
|
+
* `places/{place_id}/photos/{photo_reference}/media`.
|
|
331
|
+
*
|
|
332
|
+
* The resource name of a photo as returned in a Place object's `photos.name`
|
|
333
|
+
* field comes with the format
|
|
334
|
+
* `places/{place_id}/photos/{photo_reference}`. You need to append `/media`
|
|
335
|
+
* at the end of the photo resource to get the photo media resource name.
|
|
303
336
|
* @param {number} [request.maxWidthPx]
|
|
304
337
|
* Optional. Specifies the maximum desired width, in pixels, of the image. If
|
|
305
338
|
* the image is smaller than the values specified, the original image will be
|
|
@@ -328,7 +361,7 @@ export declare class PlacesClient {
|
|
|
328
361
|
* Optional. If set, skip the default HTTP redirect behavior and render a text
|
|
329
362
|
* format (for example, in JSON format for HTTP use case) response. If not
|
|
330
363
|
* set, an HTTP redirect will be issued to redirect the call to the image
|
|
331
|
-
*
|
|
364
|
+
* media. This option is ignored for non-HTTP requests.
|
|
332
365
|
* @param {object} [options]
|
|
333
366
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
334
367
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -346,13 +379,13 @@ export declare class PlacesClient {
|
|
|
346
379
|
getPhotoMedia(request: protos.google.maps.places.v1.IGetPhotoMediaRequest, options: CallOptions, callback: Callback<protos.google.maps.places.v1.IPhotoMedia, protos.google.maps.places.v1.IGetPhotoMediaRequest | null | undefined, {} | null | undefined>): void;
|
|
347
380
|
getPhotoMedia(request: protos.google.maps.places.v1.IGetPhotoMediaRequest, callback: Callback<protos.google.maps.places.v1.IPhotoMedia, protos.google.maps.places.v1.IGetPhotoMediaRequest | null | undefined, {} | null | undefined>): void;
|
|
348
381
|
/**
|
|
349
|
-
* Get
|
|
382
|
+
* Get the details of a place based on its resource name, which is a string
|
|
383
|
+
* in the `places/{place_id}` format.
|
|
350
384
|
*
|
|
351
385
|
* @param {Object} request
|
|
352
386
|
* The request object that will be sent.
|
|
353
387
|
* @param {string} request.name
|
|
354
|
-
* Required.
|
|
355
|
-
* equivalently the name in the same Place. Format: places/<place_id>.
|
|
388
|
+
* Required. The resource name of a place, in the `places/{place_id}` format.
|
|
356
389
|
* @param {string} [request.languageCode]
|
|
357
390
|
* Optional. Place details will be displayed with the preferred language if
|
|
358
391
|
* available.
|
|
@@ -365,10 +398,35 @@ export declare class PlacesClient {
|
|
|
365
398
|
* details, like region-specific place name, if available. The parameter can
|
|
366
399
|
* affect results based on applicable law.
|
|
367
400
|
* For more information, see
|
|
368
|
-
*
|
|
401
|
+
* https://www.unicode.org/cldr/charts/latest/supplemental/territory_language_information.html.
|
|
369
402
|
*
|
|
370
403
|
*
|
|
371
404
|
* Note that 3-digit region codes are not currently supported.
|
|
405
|
+
* @param {string} [request.sessionToken]
|
|
406
|
+
* Optional. An arbitrary string which identifies an autocomplete session for
|
|
407
|
+
* billing purposes. Must be at most 36 characters in length. Otherwise an
|
|
408
|
+
* INVALID_ARGUMENT error is returned.
|
|
409
|
+
*
|
|
410
|
+
* The session begins when the user starts typing a query, and concludes when
|
|
411
|
+
* they select a place and a call to Place Details or Address Validation is
|
|
412
|
+
* made. Each session can have multiple queries, followed by one Place
|
|
413
|
+
* selection. The credentials used for each request within a session must
|
|
414
|
+
* belong to the same Google Cloud Console project. Once a session has
|
|
415
|
+
* concluded, the token is no longer valid; your app must generate a fresh
|
|
416
|
+
* token for each session. If the `session_token` parameter is omitted, or if
|
|
417
|
+
* you reuse a session token, the session is charged as if no session token
|
|
418
|
+
* was provided (each request is billed separately).
|
|
419
|
+
*
|
|
420
|
+
* We recommend the following guidelines:
|
|
421
|
+
* * Use session tokens for all Place Autocomplete calls.
|
|
422
|
+
* * Generate a fresh token for each session. Using a version 4 UUID is
|
|
423
|
+
* recommended.
|
|
424
|
+
* * Ensure that the credentials used for all Place Autocomplete, Place
|
|
425
|
+
* Details, and Address Validation requests within a session belong to the
|
|
426
|
+
* same Cloud Console project.
|
|
427
|
+
* * Be sure to pass a unique session token for each new session. Using the
|
|
428
|
+
* same token for more than one session will result in each request being
|
|
429
|
+
* billed individually.
|
|
372
430
|
* @param {object} [options]
|
|
373
431
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
374
432
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -385,6 +443,103 @@ export declare class PlacesClient {
|
|
|
385
443
|
]>;
|
|
386
444
|
getPlace(request: protos.google.maps.places.v1.IGetPlaceRequest, options: CallOptions, callback: Callback<protos.google.maps.places.v1.IPlace, protos.google.maps.places.v1.IGetPlaceRequest | null | undefined, {} | null | undefined>): void;
|
|
387
445
|
getPlace(request: protos.google.maps.places.v1.IGetPlaceRequest, callback: Callback<protos.google.maps.places.v1.IPlace, protos.google.maps.places.v1.IGetPlaceRequest | null | undefined, {} | null | undefined>): void;
|
|
446
|
+
/**
|
|
447
|
+
* Returns predictions for the given input.
|
|
448
|
+
*
|
|
449
|
+
* @param {Object} request
|
|
450
|
+
* The request object that will be sent.
|
|
451
|
+
* @param {string} request.input
|
|
452
|
+
* Required. The text string on which to search.
|
|
453
|
+
* @param {google.maps.places.v1.AutocompletePlacesRequest.LocationBias} [request.locationBias]
|
|
454
|
+
* Optional. Bias results to a specified location.
|
|
455
|
+
*
|
|
456
|
+
* At most one of `location_bias` or `location_restriction` should be set. If
|
|
457
|
+
* neither are set, the results will be biased by IP address, meaning the IP
|
|
458
|
+
* address will be mapped to an imprecise location and used as a biasing
|
|
459
|
+
* signal.
|
|
460
|
+
* @param {google.maps.places.v1.AutocompletePlacesRequest.LocationRestriction} [request.locationRestriction]
|
|
461
|
+
* Optional. Restrict results to a specified location.
|
|
462
|
+
*
|
|
463
|
+
* At most one of `location_bias` or `location_restriction` should be set. If
|
|
464
|
+
* neither are set, the results will be biased by IP address, meaning the IP
|
|
465
|
+
* address will be mapped to an imprecise location and used as a biasing
|
|
466
|
+
* signal.
|
|
467
|
+
* @param {string[]} [request.includedPrimaryTypes]
|
|
468
|
+
* Optional. Included primary Place type (e.g. "restaurant" or "gas_station")
|
|
469
|
+
* from
|
|
470
|
+
* https://developers.google.com/maps/documentation/places/web-service/place-types.
|
|
471
|
+
* A Place is only returned if its primary type is included in this list. Up
|
|
472
|
+
* to 5 values can be specified. If no types are specified, all Place types
|
|
473
|
+
* are returned.
|
|
474
|
+
* @param {string[]} [request.includedRegionCodes]
|
|
475
|
+
* Optional. Only include results in the specified regions, specified as up to
|
|
476
|
+
* 15 CLDR two-character region codes. An empty set will not restrict the
|
|
477
|
+
* results. If both `location_restriction` and `included_region_codes` are
|
|
478
|
+
* set, the results will be located in the area of intersection.
|
|
479
|
+
* @param {string} [request.languageCode]
|
|
480
|
+
* Optional. The language in which to return results. Defaults to en-US. The
|
|
481
|
+
* results may be in mixed languages if the language used in `input` is
|
|
482
|
+
* different from `language_code` or if the returned Place does not have a
|
|
483
|
+
* translation from the local language to `language_code`.
|
|
484
|
+
* @param {string} [request.regionCode]
|
|
485
|
+
* Optional. The region code, specified as a CLDR two-character region code.
|
|
486
|
+
* This affects address formatting, result ranking, and may influence what
|
|
487
|
+
* results are returned. This does not restrict results to the specified
|
|
488
|
+
* region. To restrict results to a region, use `region_code_restriction`.
|
|
489
|
+
* @param {google.type.LatLng} [request.origin]
|
|
490
|
+
* Optional. The origin point from which to calculate geodesic distance to the
|
|
491
|
+
* destination (returned as `distance_meters`). If this value is omitted,
|
|
492
|
+
* geodesic distance will not be returned.
|
|
493
|
+
* @param {number} [request.inputOffset]
|
|
494
|
+
* Optional. A zero-based Unicode character offset of `input` indicating the
|
|
495
|
+
* cursor position in `input`. The cursor position may influence what
|
|
496
|
+
* predictions are returned.
|
|
497
|
+
*
|
|
498
|
+
* If empty, defaults to the length of `input`.
|
|
499
|
+
* @param {boolean} [request.includeQueryPredictions]
|
|
500
|
+
* Optional. If true, the response will include both Place and query
|
|
501
|
+
* predictions. Otherwise the response will only return Place predictions.
|
|
502
|
+
* @param {string} [request.sessionToken]
|
|
503
|
+
* Optional. An arbitrary string which identifies an autocomplete session for
|
|
504
|
+
* billing purposes. Must be at most 36 characters in length. Otherwise an
|
|
505
|
+
* INVALID_ARGUMENT error is returned.
|
|
506
|
+
*
|
|
507
|
+
* The session begins when the user starts typing a query, and concludes when
|
|
508
|
+
* they select a place and a call to Place Details or Address Validation is
|
|
509
|
+
* made. Each session can have multiple queries, followed by one Place
|
|
510
|
+
* selection. The credentials used for each request within a session must
|
|
511
|
+
* belong to the same Google Cloud Console project. Once a session has
|
|
512
|
+
* concluded, the token is no longer valid; your app must generate a fresh
|
|
513
|
+
* token for each session. If the `session_token` parameter is omitted, or if
|
|
514
|
+
* you reuse a session token, the session is charged as if no session token
|
|
515
|
+
* was provided (each request is billed separately).
|
|
516
|
+
*
|
|
517
|
+
* We recommend the following guidelines:
|
|
518
|
+
* * Use session tokens for all Place Autocomplete calls.
|
|
519
|
+
* * Generate a fresh token for each session. Using a version 4 UUID is
|
|
520
|
+
* recommended.
|
|
521
|
+
* * Ensure that the credentials used for all Place Autocomplete, Place
|
|
522
|
+
* Details, and Address Validation requests within a session belong to the
|
|
523
|
+
* same Cloud Console project.
|
|
524
|
+
* * Be sure to pass a unique session token for each new session. Using the
|
|
525
|
+
* same token for more than one session will result in each request being
|
|
526
|
+
* billed individually.
|
|
527
|
+
* @param {object} [options]
|
|
528
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
529
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
530
|
+
* The first element of the array is an object representing {@link protos.google.maps.places.v1.AutocompletePlacesResponse|AutocompletePlacesResponse}.
|
|
531
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
532
|
+
* for more details and examples.
|
|
533
|
+
* @example <caption>include:samples/generated/v1/places.autocomplete_places.js</caption>
|
|
534
|
+
* region_tag:places_v1_generated_Places_AutocompletePlaces_async
|
|
535
|
+
*/
|
|
536
|
+
autocompletePlaces(request?: protos.google.maps.places.v1.IAutocompletePlacesRequest, options?: CallOptions): Promise<[
|
|
537
|
+
protos.google.maps.places.v1.IAutocompletePlacesResponse,
|
|
538
|
+
protos.google.maps.places.v1.IAutocompletePlacesRequest | undefined,
|
|
539
|
+
{} | undefined
|
|
540
|
+
]>;
|
|
541
|
+
autocompletePlaces(request: protos.google.maps.places.v1.IAutocompletePlacesRequest, options: CallOptions, callback: Callback<protos.google.maps.places.v1.IAutocompletePlacesResponse, protos.google.maps.places.v1.IAutocompletePlacesRequest | null | undefined, {} | null | undefined>): void;
|
|
542
|
+
autocompletePlaces(request: protos.google.maps.places.v1.IAutocompletePlacesRequest, callback: Callback<protos.google.maps.places.v1.IAutocompletePlacesResponse, protos.google.maps.places.v1.IAutocompletePlacesRequest | null | undefined, {} | null | undefined>): void;
|
|
388
543
|
/**
|
|
389
544
|
* Return a fully-qualified photo resource name string.
|
|
390
545
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright
|
|
2
|
+
// Copyright 2024 Google LLC
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -28,10 +28,11 @@ const gapicConfig = require("./places_client_config.json");
|
|
|
28
28
|
const version = require('../../../package.json').version;
|
|
29
29
|
/**
|
|
30
30
|
* Service definition for the Places API.
|
|
31
|
-
* Note: every request actually requires a field mask set outside of
|
|
32
|
-
* proto (all/'*' is not assumed). That can be set via either a
|
|
33
|
-
* (SystemParameterContext) over RPC, or a header
|
|
34
|
-
* See:
|
|
31
|
+
* Note: every request actually requires a field mask set outside of
|
|
32
|
+
* the request proto (all/'*', is not assumed). That can be set via either a
|
|
33
|
+
* side channel (SystemParameterContext) over RPC, or a header
|
|
34
|
+
* (X-Goog-FieldMask) over HTTP. See:
|
|
35
|
+
* https://cloud.google.com/apis/docs/system-parameters
|
|
35
36
|
* @class
|
|
36
37
|
* @memberof v1
|
|
37
38
|
*/
|
|
@@ -76,7 +77,7 @@ class PlacesClient {
|
|
|
76
77
|
* ```
|
|
77
78
|
*/
|
|
78
79
|
constructor(opts, gaxInstance) {
|
|
79
|
-
var _a, _b;
|
|
80
|
+
var _a, _b, _c, _d;
|
|
80
81
|
this._terminated = false;
|
|
81
82
|
this.descriptors = {
|
|
82
83
|
page: {},
|
|
@@ -86,16 +87,24 @@ class PlacesClient {
|
|
|
86
87
|
};
|
|
87
88
|
// Ensure that options include all the required fields.
|
|
88
89
|
const staticMembers = this.constructor;
|
|
89
|
-
|
|
90
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.universe_domain) &&
|
|
91
|
+
(opts === null || opts === void 0 ? void 0 : opts.universeDomain) &&
|
|
92
|
+
(opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
|
|
93
|
+
throw new Error('Please set either universe_domain or universeDomain, but not both.');
|
|
94
|
+
}
|
|
95
|
+
this._universeDomain =
|
|
96
|
+
(_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com';
|
|
97
|
+
this._servicePath = 'places.' + this._universeDomain;
|
|
98
|
+
const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
|
|
90
99
|
this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
|
|
91
100
|
const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
|
|
92
|
-
const clientConfig = (
|
|
93
|
-
const fallback = (
|
|
101
|
+
const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
|
|
102
|
+
const fallback = (_d = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _d !== void 0 ? _d : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
|
|
94
103
|
opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
|
|
95
104
|
// Request numeric enum values if REST transport is used.
|
|
96
105
|
opts.numericEnums = true;
|
|
97
106
|
// If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
|
|
98
|
-
if (servicePath !==
|
|
107
|
+
if (servicePath !== this._servicePath && !('scopes' in opts)) {
|
|
99
108
|
opts['scopes'] = staticMembers.scopes;
|
|
100
109
|
}
|
|
101
110
|
// Load google-gax module synchronously if needed
|
|
@@ -113,9 +122,9 @@ class PlacesClient {
|
|
|
113
122
|
// Set useJWTAccessWithScope on the auth object.
|
|
114
123
|
this.auth.useJWTAccessWithScope = true;
|
|
115
124
|
// Set defaultServicePath on the auth object.
|
|
116
|
-
this.auth.defaultServicePath =
|
|
125
|
+
this.auth.defaultServicePath = this._servicePath;
|
|
117
126
|
// Set the default scopes in auth client if needed.
|
|
118
|
-
if (servicePath ===
|
|
127
|
+
if (servicePath === this._servicePath) {
|
|
119
128
|
this.auth.defaultScopes = staticMembers.scopes;
|
|
120
129
|
}
|
|
121
130
|
// Determine the client header string.
|
|
@@ -184,6 +193,7 @@ class PlacesClient {
|
|
|
184
193
|
'searchText',
|
|
185
194
|
'getPhotoMedia',
|
|
186
195
|
'getPlace',
|
|
196
|
+
'autocompletePlaces',
|
|
187
197
|
];
|
|
188
198
|
for (const methodName of placesStubMethods) {
|
|
189
199
|
const callPromise = this.placesStub.then(stub => (...args) => {
|
|
@@ -203,19 +213,38 @@ class PlacesClient {
|
|
|
203
213
|
}
|
|
204
214
|
/**
|
|
205
215
|
* The DNS address for this API service.
|
|
216
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
206
217
|
* @returns {string} The DNS address for this service.
|
|
207
218
|
*/
|
|
208
219
|
static get servicePath() {
|
|
220
|
+
if (typeof process !== undefined &&
|
|
221
|
+
typeof process.emitWarning === 'function') {
|
|
222
|
+
process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
223
|
+
}
|
|
209
224
|
return 'places.googleapis.com';
|
|
210
225
|
}
|
|
211
226
|
/**
|
|
212
|
-
* The DNS address for this API service - same as servicePath
|
|
213
|
-
*
|
|
227
|
+
* The DNS address for this API service - same as servicePath.
|
|
228
|
+
* @deprecated Use the apiEndpoint method of the client instance.
|
|
214
229
|
* @returns {string} The DNS address for this service.
|
|
215
230
|
*/
|
|
216
231
|
static get apiEndpoint() {
|
|
232
|
+
if (typeof process !== undefined &&
|
|
233
|
+
typeof process.emitWarning === 'function') {
|
|
234
|
+
process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
|
|
235
|
+
}
|
|
217
236
|
return 'places.googleapis.com';
|
|
218
237
|
}
|
|
238
|
+
/**
|
|
239
|
+
* The DNS address for this API service.
|
|
240
|
+
* @returns {string} The DNS address for this service.
|
|
241
|
+
*/
|
|
242
|
+
get apiEndpoint() {
|
|
243
|
+
return this._servicePath;
|
|
244
|
+
}
|
|
245
|
+
get universeDomain() {
|
|
246
|
+
return this._universeDomain;
|
|
247
|
+
}
|
|
219
248
|
/**
|
|
220
249
|
* The port for this API service.
|
|
221
250
|
* @returns {number} The default port for this service.
|
|
@@ -316,6 +345,22 @@ class PlacesClient {
|
|
|
316
345
|
this.initialize();
|
|
317
346
|
return this.innerApiCalls.getPlace(request, options, callback);
|
|
318
347
|
}
|
|
348
|
+
autocompletePlaces(request, optionsOrCallback, callback) {
|
|
349
|
+
request = request || {};
|
|
350
|
+
let options;
|
|
351
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
352
|
+
callback = optionsOrCallback;
|
|
353
|
+
options = {};
|
|
354
|
+
}
|
|
355
|
+
else {
|
|
356
|
+
options = optionsOrCallback;
|
|
357
|
+
}
|
|
358
|
+
options = options || {};
|
|
359
|
+
options.otherArgs = options.otherArgs || {};
|
|
360
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
361
|
+
this.initialize();
|
|
362
|
+
return this.innerApiCalls.autocompletePlaces(request, options, callback);
|
|
363
|
+
}
|
|
319
364
|
// --------------------
|
|
320
365
|
// -- Path templates --
|
|
321
366
|
// --------------------
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"places_client.js","sourceRoot":"","sources":["../../../src/v1/places_client.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF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"version": "1.3.0",
|
|
4
4
|
"description": "Places API (New) client for Node.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"fix": "gts fix",
|
|
39
39
|
"lint": "gts check",
|
|
40
40
|
"postpack": "minifyProtoJson",
|
|
41
|
-
"prepare": "npm run compile
|
|
41
|
+
"prepare": "npm run compile",
|
|
42
42
|
"system-test": "c8 mocha build/system-test",
|
|
43
43
|
"test": "c8 mocha build/test",
|
|
44
44
|
"samples-test": "cd samples/ && npm link ../ && npm i && npm test",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/mocha": "^9.0.0",
|
|
52
52
|
"@types/node": "^20.4.5",
|
|
53
|
-
"@types/sinon": "^
|
|
53
|
+
"@types/sinon": "^17.0.0",
|
|
54
54
|
"c8": "^8.0.1",
|
|
55
|
-
"gapic-tools": "^0.
|
|
55
|
+
"gapic-tools": "^0.3.0",
|
|
56
56
|
"gts": "5.2.0",
|
|
57
57
|
"jsdoc": "^4.0.0",
|
|
58
58
|
"jsdoc-fresh": "^3.0.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"long": "^5.2.3",
|
|
62
62
|
"mocha": "^9.2.2",
|
|
63
63
|
"pack-n-play": "^2.0.0",
|
|
64
|
-
"sinon": "^
|
|
64
|
+
"sinon": "^17.0.0",
|
|
65
65
|
"typescript": "^5.1.6"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|