【问题标题】:Foursquare venue score/ratingFoursquare 场地评分/评分
【发布时间】:2013-06-25 18:00:34
【问题描述】:

有谁知道我如何使用 Foursquare API 获得场地的得分/评级(例如 9.0/10)?

我正在通过无用户访问进行连接。 https://developer.foursquare.com/overview/auth#userless

我在请求场地详细信息时收到的 JSON blob 似乎不包括分数/评分。 https://developer.foursquare.com/docs/venues/venues

【问题讨论】:

    标签: foursquare


    【解决方案1】:

    值得注意的是,首先,并非所有场馆都有收视率。仅在某些情况下才会计算评分,例如,如果有足够的关于场所的情绪数据可以开始计算评分,并且该场所不是用户的家。

    但是,如果某个场所确实计算了评分,并且您使用最新版本的 API 发出请求(确保您在过去几个月内设置了 v 参数),它将以 JSON 格式返回从API如下,当你调用/venues/<ID>:

    {
      response: {
        venue: {
          ... // Other data about the venue will surround this, of course
          rating: 7.18
        }
      }
      ... // The response's metadata will also be here
    }
    

    所以,基本上你想检查response.venue.rating

    【讨论】:

    • 有没有办法让它从 /venues/search 返回?打电话?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多