openapi-specification
openapi-specification copied to clipboard
Places: FindPlace API [parameters] Bug - /maps/api/place/findplacefromtext/json
Steps to reproduce
- 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!
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" }
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.
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.
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.