2012-05-21 54 views
1

答案只可能是影射我,但这个错误我Foursquare的网站搜索地点不匹配达到API搜索

我一直在做一个简单的搜索试图找到所有靠近我的户外野餐地点。因此,我在我的邮政编码中搜索野餐,并获得结果列表。
https://foursquare.com/search?tab=tipResults&q=picnic&lat=&lng=&near=10001

然后我尝试做使用API​​相同的搜索(场地/探索终点),看看我的应用程序工作得很好,我也得到一个完全不同的地方名单。我一直在使用的API网址是
https://api.foursquare.com/v2/venues/explore?near=10001&section=outdoors&query=picnic&radius=5000&client_id=XXXX&client_secret=YYYY

顺便说一句,如果我不包括半径,它只返回1项。

回答

2

您所提供的网址:https://foursquare.com/search?tab=tipResults&q=picnic&lat=&lng=&near=10001

大约是10001

头产生的API调用您提供:https://api.foursquare.com/v2/venues/explore?near=10001&section=outdoors&query=picnic&radius=5000&client_id=XXXX&client_secret=YYYY

是一个探索的搜索API调用。

这两个有很大的不同,并且将产生不同的结果

尝试(在this place API文档)运行通过API前端搜索这样:

https://api.foursquare.com/v2/tips/search?near=10001&query=picnic

direct link for testing it

让我们知道这是否清除它。