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
Search 利用foursquare场馆api在全球范围内搜索查询_Search_Location_Foursquare - Fatal编程技术网

Search 利用foursquare场馆api在全球范围内搜索查询

Search 利用foursquare场馆api在全球范围内搜索查询,search,location,foursquare,Search,Location,Foursquare,我从用户那里得到一个字符串,必须搜索它在全世界的位置 我想使用foursquare场地api 但在该端点中,我必须通过(ll和radius)或(sw和ne)或(near和radius)设置搜索范围 现在,如何在全球范围内搜索字符串?您可以将intent参数设置为“global”: 见: 全球 查找与搜索最具全球相关性的地点,与位置无关。 忽略除查询和限制以外的所有参数 例如: https://api.foursquare.com/v2/venues/search?intent=global&qu

我从用户那里得到一个字符串,必须搜索它在全世界的位置

我想使用foursquare场地api

但在该端点中,我必须通过(ll和radius)或(sw和ne)或(near和radius)设置搜索范围


现在,如何在全球范围内搜索字符串?

您可以将
intent
参数设置为“global”:

见:

全球
查找与搜索最具全球相关性的地点,与位置无关。
忽略除查询和限制以外的所有参数

例如:

https://api.foursquare.com/v2/venues/search?intent=global&query=apple+store&oauth_令牌=(您的_令牌)&v=20150721

如果使用
global
值,则将忽略除
query
limit
之外的所有其他参数

intent=global