2012-05-21 88 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

讓我們知道這是否清除它。