The solution below works great when searching for photos related to a city/town.
Now I need to display some photos related to a country :))
Let's consider "Croatia". The coordinates for the country's center are: 45.1000000,15.2000000.
Let's consider that the search query has the "croatia" tag, the latitude and longitude above and the accuracy set to 3 (country level).
The search query will look like
I only get 4 pics, when I should get many.
No matter what is the value for accuracy, from 1 to 16, I only get 2-5 pics. I added more keywords (in order to limit the results in case there are too many), same results.
If I remove the geo coordinates at all, it works, I get some 797975 results :))) Most of them have geo
I don't understand. If the query works with only "croatia" tag, if I add any coordinates inside the country's area and set the accuracy to "country level" I should get some filtered results, but I don't get any.
From: Sam Judson <sam@...>
Sent: Wednesday, April 4, 2012 3:41 PM
Subject: Re: [yws-flickr] Flickr Api bad results
My bad, I always forget about the 'limiting factor'.
From the docs:
"Geo queries require some sort of limiting agent in order to prevent the database from crying. This is basically like the check against "parameterless searches" for queries without a geo component.
A tag, for instance, is considered a limiting agent as are user defined min_date_taken and min_date_upload parameters — If no limiting factor is passed we return only photos added in the last 12 hours (though we may extend the limit in the future). "
So you need to set some other limiting factor, such as a tag or a min and max upload date.
On 4 April 2012 13:37, Sam Judson <sam@...>
I was going to say that you should be setting the "accuracy" parameter (which you should be) but I tried that, and that only increases it to 66 photos, which still isn't right.
I wonder if there is something wrong on the Flickr side?
On 4 April 2012 13:17, laur <elpaulet@...>
i need to display some pics in my website, related to a certain town. let's consider: venice, italy.
i have the coordinates for this city: 45.4343363, 12.3387844
when i call the search api, i only get 6 pictures of poor relevance.
i should get hundreds of them considering that venice is such a touristic point...
i verified my api call with the flickr tool:
the call i get is this:
the results? the same 6 pictures.
if i look in flickr places at the venice city, there are hundreds of them:
so, my opinion is that the api doesn't work. this is a lucky city, anyway, that i get 6 pictures. for many other towns i get none.
can you solve this?