Foursquare API image - Relevance Sorting

146 views Asked by At

I'm currently pulling images into my iOS app via the Foursquare API, from Venue Images.

I noticed the images I pull are not sorted by relevance/popularity as they are on the website.

Is there a way to sort/filter so that I can pull the same images as the website? i.e. the most popular first.

1

There are 1 answers

0
enc_life On

Are you using the group parameter? It seems that if you leave this blank it should sort by relevance.

From the docs:

If not specified, public venue photos are returned ordered by relevance. Pass venue for public venue photos, ordered by recency. Pass checkin for venue photos from friends (including non-public photos from recent checkins), ordered by recency. See our documentation on photos for information on how to handle the response and construct actual photo URLs.

https://developer.foursquare.com/docs/venues/photos