fail to grab photos

70 views
Skip to first unread message

mcky

unread,
Nov 27, 2012, 1:24:45 AM11/27/12
to panora...@googlegroups.com
I am writing an app for iphone. I am using the panoramio REST api to get some nice photos but is having problem with it when I am setting X and Y, where Y-X is the number of photos included. The "count" of the photos in that area which i defined earlier, say, is 560. So, i try to grab photos from 200 to 204 ( X=200, Y=204). However, the received array is nil. I tried other values and found out that the lower values of X and Y work ( e.g. from 30-80) but the array contains less than 50 photos. I tried several locations and they are all the same. What am i missing here or i misunderstood the REST api?
Message has been deleted

QuentinUK

unread,
Nov 27, 2012, 1:07:12 PM11/27/12
to panora...@googlegroups.com
The count has not made any sense for ages. Start from 0 and have a loop testing the has_more flag until it is false.

mcky

unread,
Nov 29, 2012, 1:57:12 AM11/29/12
to panora...@googlegroups.com
alright, thanks! now i know what to do. cheers.
Reply all
Reply to author
Forward
0 new messages