googleapis / googleapis/google-cloud-node

[Google Maps Places API] - Text Search missing next_page_token in response

Open
#5,385 19 comments 8 reactions 1 assignee Claimed by @sofisl View on GitHub
size: m type: bug
Dominant language
TypeScript
Stars
3.2k
Forks
712
Avg merge
2d 3h
Merged PRs (30d)
99

Description

- 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

- npm i @googlemap/places

```
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
]
*/
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.