googlemaps-samples/android-places-demos

9012: Error while parsing 'fields' parameter: Unsupported field name 'opening_hours'.

TommyLemon opened this issue · 3 comments

In the screen named "Current Place", if "OPENING HOURS" were chosen in the place fields, the api will throw such an exception:
com.google.android.gms.common.api.ApiException: 9012: Error while parsing 'fields' parameter: Unsupported field name 'opening_hours'.

Opening hours is not supported for current place requests. Documented here:

https://developers.google.com/places/android-sdk/current-place#get-current

Will fix the demo to remove this deprecated field from the default call to findCurrentPlace.

Confirmed that the demo excludes OPENING_HOURS from the requested place fields when calling findCurrentPlace. This was fixed in PR #11 at Line 66