iosgoogle-mapsgpsfoursquare

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:

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?


Solution

  • 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