【问题标题】:Foursquare API return only specific categoryFoursquare API 仅返回特定类别
【发布时间】:2016-07-09 11:13:43
【问题描述】:

我正在使用foursquare api。我可以根据一些参数(包括我在其中传递搜索字符串的“查询”)成功地取回附近的结果。

我正在尝试确定是否有办法返回特定类别的地点。例如健身房、公园等。我尝试将字符串传递给“section”参数,但这没有任何影响。

【问题讨论】:

    标签: ios api location foursquare


    【解决方案1】:

    你可以使用categoryId参数。

    例如搜索健身房(4bf58dd8d48988d175941735):

    https://api.foursquare.com/v2/venues/search?ll=40.7,-74&categoryId=4bf58dd8d48988d175941735&oauth_token=(YOUR_TOKEN)&v=20160324

    另请参阅: https://developer.foursquare.com/docs/venues/search

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-31
      • 2018-11-14
      • 1970-01-01
      • 2013-10-30
      • 1970-01-01
      相关资源
      最近更新 更多