google-maps-services-js
google-maps-services-js copied to clipboard
"Place Details (New)" API calls
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.
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:
- Check the issue tracker - bugs and feature requests for Google Maps Platform APIs and SDKs
- Open a support case - Get 1:1 support in Cloud Console.
- Discord - chat with other developers
-
StackOverflow - use the
google-maps
tag
This is an automated message, feel free to ignore.
This library should always keep up with the latest APIs!
Using fetch and axios like OP mentioned is the only alternative for now. But this obviously needs to be added to the library.
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