2017-09-22 405 views
0

希望有人能帮助我。如何从placeId Google Place API获取评论

我想获得评论的数量给Android上的placeID。用于支持此调用的Google Places API,但似乎不再包含在API中。有谁知道我怎么能得到这个价值?

注:我有地方评分,我需要的是总评语数。

预先感谢您。

回答

0

您可以通过使用谷歌广场API使用如下得到特定地点的评价:

PlaceBufferResponse places = task.getResult(); 
Place myPlace = places.get(0); 
Log.i(TAG, "Place found: " + myPlace.getName()); 
Log.i(TAG, "Place ratings found: " + myPlace.getRating()); 

,了解更多有关The Google Places API for Android

+0

感谢您的反馈,我已经取使用Places.GeoDataApi.getPlaceById进行评分,但评论是我无法找到如何从API中获得的评论。 – RoseBM