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

Places: FindPlace API [parameters] Bug - /maps/api/place/findplacefromtext/json #185

Open
cyclone21 opened this issue Aug 23, 2021 · 4 comments
Assignees
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@cyclone21
Copy link

Steps to reproduce

  1. In postman, trying to call findplacefromtext with utc_offset as a field yet the documentation says utc_offset is an option

Code example

https://maps.googleapis.com/maps/api/place/findplacefromtext/json?fields=formatted_address,name,geometry,utc_offset&input=CN%20Tower,%20Toronto,%20Ontario&inputtype=textquery&key=<mykey>

Stack trace

{
    "candidates": [],
    "error_message": "Error while parsing 'fields' parameter: Unsupported field name 'utc_offset'. ",
    "status": "INVALID_REQUEST"
}

Following these steps will guarantee the quickest resolution possible.

Thanks!

@cyclone21
Copy link
Author

BTW, I've also tried utc_offset_minutes:
{ "candidates": [], "error_message": "Error while parsing 'fields' parameter: Unsupported field name 'utc_offset_minutes'. ", "status": "INVALID_REQUEST" }

@jpoehnelt
Copy link
Contributor

This might be a case where findplacefromtext doesn't return this field and a followup place details request is required using the place id. Looking to confirm and will update the fields parameter to note this if so.

@jpoehnelt jpoehnelt added priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Aug 23, 2021
@jpoehnelt
Copy link
Contributor

Going to assign myself an action item of iterating all fields and testing which are returned from the corresponding methods (e.g. details, findplacefromtext, nearbysearch) and then adding notes to all of the fields specifying the availability.

@jpoehnelt jpoehnelt added priority: p3 Desirable enhancement or fix. May not be included in next release. and removed priority: p2 Moderately-important priority. Fix may not be included in next release. labels Apr 12, 2022
@googlemaps googlemaps deleted a comment from reinasalondra May 11, 2022
@jpoehnelt jpoehnelt removed their assignment Jun 22, 2022
@wangela
Copy link
Member

wangela commented Jan 26, 2023

Confirmed that findplacefromtext does not support utc_offset_minutes, per correct documentation. We are working on correcting the Place Search documentation to remove the unsupported fields.

@wangela wangela added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. and removed type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

4 participants