2017-09-22 435 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