通过foursquare会场api搜索全世界的查询 [英] searching query in whole of world by foursquare venue api

查看:126
本文介绍了通过foursquare会场api搜索全世界的查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I take an string from user and must search its places in whole of world.

我想使用Foursquare场地api.

I want to use foursquare venues api.

但是在那个端点中,我必须通过(ll和半径)或(sw和ne)或(附近和半径)设置搜索范围.

but in that endpoint I must set search ranges by (ll and radius) or (sw and ne) or (near and radius).

现在如何在整个世界中搜索字符串?

now how search places for an string in whole of world ?

推荐答案

您可以将intent参数设置为全局":

You can set the intent parameter to "global":

intent=global

请参见场地搜索参数:

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

global
Finds the most globally relevant venues for the search, independent of location.
Ignores all parameters other than query and limit.

例如:

https://api.foursquare.com/v2/venues/search?intent=global&query=apple+store&oauth_token=(YOUR_TOKEN)& v = 20150721

https://api.foursquare.com/v2/venues/search?intent=global&query=apple+store&oauth_token=(YOUR_TOKEN)&v=20150721

如果使用global值,则会忽略除querylimit之外的所有其他参数.

If you use the global value, all other parameters except query and limit are ignored.

这篇关于通过foursquare会场api搜索全世界的查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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