- which product (packages/*): packages/google-maps-places
- OS: OSX
- Node.js version: 21.7.2
- npm version: 10.6.0
- google-cloud-node version:Place2 1.6.0
Steps to reproduce
const {PlacesClient} = require('@googlemaps/places').v1;
let response = await placesClient.searchText(textQuery: 'something', {
otherArgs: {
headers: {
'x-Goog-FieldMask': 'places.displayName',
},}});
console.log(response);
/*
response:
[
{
places: [
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object]
],
contextualContents: []
},
null,
null
]
I would expect something like:
[
{
places: [
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object], [Object],
[Object], [Object]
],
contextualContents: [],
nextPageToken: ''
},
null,
null
]
*/
Unfortunately it is not working even with the older endpoint for me. I tried it but no token is returned in both version.