searching query in whole of world by foursquare venue api

谁说我不能喝 提交于 2020-01-06 19:29:35

问题


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

I want to use foursquare venues api.

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 ?


回答1:


You can set the intent parameter to "global":

intent=global

See Venue Search Parameters:

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

For example:

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

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



来源:https://stackoverflow.com/questions/30885322/searching-query-in-whole-of-world-by-foursquare-venue-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!