搜索主要类别时,Foursquare API不起作用 [英] Foursquare API doesn't work when searching main categories

查看:37
本文介绍了搜索主要类别时,Foursquare API不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Venues Search API已停止工作,并且已记录在文档中.

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

更深入地研究这一点之后,很明显,只有定义精确的mach时,"categoryId"参数才有效.如果您定义根类别,则它不会从其子类别中进行搜索.

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.

要进行测试,您可以尝试: https://api.foursquare.com/v2/场所/search?ll=40.7,-74&categoryId=4bf58dd8d48988d154941735

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

->返回古巴餐厅(4bf58dd8d48988d154941735->古巴餐厅")

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

这将返回0个场所: https://api.foursquare.com/v2/场所/search?ll=40.7,-74&categoryId=4d4b7105d754a06374d81259 (4d4b7105d754a06374d81259是食物)

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

推荐答案

添加到搜索链接附加参数&intent=browse

add to search link additional parameter &intent=browse

这篇关于搜索主要类别时,Foursquare API不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆