Foursquare API doesn't work when searching main categories

青春壹個敷衍的年華 提交于 2019-12-14 03:15:43

问题


Venues Search API has stopped working as it has been working and as it is documented.

After digging in this more deeply, it is obvious that "categoryId" parameter works only, if you define exact mach. If you define root category, it doesn't search from its subcategories as it should.

To test, you can try: https://api.foursquare.com/v2/venues/search?ll=40.7,-74&categoryId=4bf58dd8d48988d154941735

--> Return Cuban Restaurants (4bf58dd8d48988d154941735 -> "Cuban Restaurant")

This returns 0 venues: https://api.foursquare.com/v2/venues/search?ll=40.7,-74&categoryId=4d4b7105d754a06374d81259 (4d4b7105d754a06374d81259 is Food)


回答1:


add to search link additional parameter &intent=browse



来源:https://stackoverflow.com/questions/32697589/foursquare-api-doesnt-work-when-searching-main-categories

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!