【问题标题】:How to get Review from placeId Google Place API如何从 placeId Google Place API 获取评论
【发布时间】:2017-09-22 03:56:40
【问题描述】:

希望有人可以帮助我。

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

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

提前谢谢你。

【问题讨论】:

    标签: android google-places-api


    【解决方案1】:

    您可以使用 Google Place 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的更多信息

    【讨论】:

    • 感谢您的反馈,我已经使用 Places.GeoDataApi.getPlaceById 获取评级,但评论是我无法从 API 中获取的评论。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-05-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-27
    • 1970-01-01
    • 1970-01-01
    • 2021-07-08
    相关资源
    最近更新 更多