fysoul17 / google_maps_place_picker

Place picker on Google Maps for Flutter
MIT License
222 stars 357 forks source link

Getting user_ratings_total from PickResult #70

Closed xJon closed 3 years ago

xJon commented 3 years ago

Describe the bug Is it possible to get the total number of reviews for a place (user_ratings_total) from the PickResult? I wasn't able to find it myself. Thank you for a great package!

fysoul17 commented 3 years ago

It uses google_map_webservice package to fetch place detail, and thus it cannot be fetched if the data is not provided from the package.

A workaround is to grab the place id from PickResult and request to Google Map API to fetch specific data of the place. In this case, you need to use your own [selectedPlaceWidgetBuilder].

xJon commented 3 years ago

Do you know whether there is a reason why by default it fetches all other "Atmosphere" place details apart from user_ratings_total?

fysoul17 commented 3 years ago

Sorry, I am not sure, it would be good to ask on their Github's issue. ;)

fysoul17 commented 3 years ago

Closing as there are no further updates.