request.setParameter("query", query)
.setParameter("ne", ne)
.setParameter("sw", sw)
.setParameter("intent", "browse")
// This still returns results with empty categories. Fix that.
.setParameter("categoryId", FOOD_CATEGORY_ID)
.setParameter("client_id", CLIENT_ID)
.setParameter("client_secret", CLIENT_SECRET)
.setParameter("v", "20120101");
对于ne = "13.168751,77.750587"
和sw = "12.735796,77.377739"
对于query = mcd,它返回来自世界各地的结果。这只是一个示例查询 - 我在大多数查询中都看到了这种行为。
答案 0 :(得分:1)
您可以发布您正在进行的实际请求(删除了client_secret)吗?当我重建您的请求时,我会得到适当的约束场地:https://developer.foursquare.com/docs/explore#req=venues/search%3Fintent%3Dbrowse%26query%3Dmcd%26ne%3D13.168751,77.750587%26sw%3D12.735796,77.377739