问题
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