Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to "setFields" with the getDetails function #457

Closed
vendrix-ds opened this issue Oct 26, 2020 · 2 comments
Closed

Ability to "setFields" with the getDetails function #457

vendrix-ds opened this issue Oct 26, 2020 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@vendrix-ds
Copy link

vendrix-ds commented Oct 26, 2020

When the getDetails function is called on a place id, it returns all the fields which you are charged for on each API call. Google Maps API autocomplete documentation has the following value to limit the data returned:
autocomplete.setFields(["address_components", "geometry", "icon", "name"]);
https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete

Are these options able to be passed into the getDetails function?

@wellyshen
Copy link
Owner

wellyshen commented Oct 28, 2020

@vendrix-ds Current implementation only accepts the placeId, but we can include the fields to meet your need.

@wellyshen wellyshen added the enhancement New feature or request label Oct 28, 2020
@wellyshen wellyshen added the help wanted Extra attention is needed label Nov 6, 2020
@wellyshen
Copy link
Owner

@vendrix-ds Here you are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants