Foursquare API nearByVenue service issue

99封情书 提交于 2019-12-11 04:07:56

问题


Using Foursquare api "Venue" service.. i am parsing nearByVenue details like shop, restaurant etc.

Suppose as an example i am getting following link:

https://api.foursquare.com/v1/venues.json?geolat=40.562362&geolong=-111.938689

Issue is I am getting only 10 nearbyDetails.. suppose I am standing in New York there should be number of venue details.. why I am getting only 10 details only ?

Is there any other service or i am following wrong approach to use it?

Thanks


回答1:


Add l=n where n is your limit in query string. The default limit is set to 30.

https://api.foursquare.com/v1/venues.json?geolat=40.562362&geolong=-111.938689&l=10



回答2:


https://api.foursquare.com/v1/venues.xml?geolat=40.562362&geolong=-111.938689&l=50&q=coffee

You can change the value of l="no of result" parameter.

And also if you want to search for particular keyword like ATM, Coffee then you can add the parameter q and add it's value like q="atm", q="coffee", etc.

hope it will be helpful to you.



来源:https://stackoverflow.com/questions/6248275/foursquare-api-nearbyvenue-service-issue

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