Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Api 场馆搜索中的CategoryId无法正常工作_Api_Search_Categories_Foursquare - Fatal编程技术网

Api 场馆搜索中的CategoryId无法正常工作

Api 场馆搜索中的CategoryId无法正常工作,api,search,categories,foursquare,Api,Search,Categories,Foursquare,在“搜索场所”的foursquare Api文档中,它指出 "categoryId - A comma separated list of categories to limit results to. This is an experimental feature and subject to change or may be unavailable. If you specify categoryId you may also specify a radius. If specifying

在“搜索场所”的foursquare Api文档中,它指出

"categoryId  - A comma separated list of categories to limit results to. This is an experimental feature and subject to change or may be unavailable. If you specify categoryId you may also specify a radius. If specifying a top-level category, all sub-categories will also match the query."
意识到它应该是实验性的,但当我提供食品类别,即
4d4b7105d754a06374d81259
时,它只返回一些局部结果,其余的结果都在几英里之外
但是,如果我在网站sing Food category上执行相同的搜索,它会正确返回大量结果,假设它是最后一位
“如果指定顶级类别,所有子类别也将匹配查询”
不起作用,即它不搜索子类别

有没有解决办法

谢谢

Neil Pepper

您发出的请求的默认意图为intent=checkin。这将返回一个关于附近结果的过滤器,由于它试图猜测用户可能在哪里签入,因此会严重受距离的影响


Foursquare Explore使用端点并尝试返回查询的推荐结果。如果您想获得在该工具中获得的各种结果,请调用/viouses/explore?section=food

您可以发布您正在进行的示例API请求,并移除客户端/u secret/oauth令牌吗?当然,使用foursquare测试其如此重要的一点是场地/搜索?ll=51.140797,0.274064&categoryId=4d4b7105d754a06374d81259然而,当登录foursquare并在同一位置使用时,我得到了更多的本地位置。这个问题太老了,categoryId过滤器仍然无法工作。我发现这是一个更好的方法,使用explore和a部分。非常感谢。