google-maps-services-js icon indicating copy to clipboard operation
google-maps-services-js copied to clipboard

"Place Details (New)" API calls

Open jbbae opened this issue 4 months ago • 1 comments

Is your feature request related to a problem? Please describe. I'm trying to move to the Place Details (New) API (https://developers.google.com/maps/documentation/places/web-service/place-details) but there doesn't seem to be a way to specify the required headers (e.g. "X-Goog-Api-Key" and "X-Goog-FieldMask").

Describe the solution you'd like Expanded support of the library for this API

Describe alternatives you've considered I'm using JS, so likely going to try fetch or axios. But would be much nicer to have library support.

jbbae avatar Feb 04 '24 21:02 jbbae

If you would like to upvote the priority of this issue, please comment below or react on the original post above with :+1: so we can see what is popular when we triage.

@jbbae Thank you for opening this issue. 🙏 Please check out these other resources that might help you get to a resolution in the meantime:

This is an automated message, feel free to ignore.

wangela avatar Feb 04 '24 21:02 wangela

This library should always keep up with the latest APIs!

devuxer avatar Feb 24 '24 20:02 devuxer

Using fetch and axios like OP mentioned is the only alternative for now. But this obviously needs to be added to the library.

adamk22 avatar Apr 02 '24 08:04 adamk22

The newer versions of the APIs will not be supported in this library. See here: https://github.com/googlemaps/google-maps-services-js/issues/1105

There is a standaolne library for places available as @googlemaps/places https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-places

usefulthink avatar Apr 04 '24 08:04 usefulthink