开发者

Foursquare API nearByVenue service issue

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

Suppose as an example i am getting following link:

ht开发者_如何学JAVAtps://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


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜