Camus
Camus

Reputation: 846

Foursquare API results is different

I am using this url to query the foursquare webserver through my iOS app:

https://api.foursquare.com/v2/venues/search?ll=%f,%f&radius=4000&intent=checkin&client_id=%@&client_secret=%@&v=20140328

I get the results around me but I do not get the venue where I am standing at the moment.

Any suggestions?

Upvotes: 0

Views: 384

Answers (1)

goodgoogleymoogley
goodgoogleymoogley

Reputation: 98

In my use of this call, I have had great results. One thing I see in the Foursquare documentation for this call's 'radius' parameter is the following:

Radius: Limit results to venues within this many meters of the specified location. Defaults to a city-wide area. Only valid for requests with intent=browse, or requests with intent=checkin and categoryId or query...

It looks like you could either drop the radius parameter in your request, or add the additional categoryId or query to get the right results. Hope that helps.

Upvotes: 0

Related Questions