openapi-specification icon indicating copy to clipboard operation
openapi-specification copied to clipboard

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

Open cyclone21 opened this issue 3 years ago • 4 comments

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 avatar Aug 23 '21 15:08 cyclone21

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" }

cyclone21 avatar Aug 23 '21 15:08 cyclone21

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 avatar Aug 23 '21 19:08 jpoehnelt

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 avatar Aug 23 '21 19:08 jpoehnelt

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 avatar Jan 26 '23 19:01 wangela