[Flashr] Flashr and geo locations

Kelvin Luck kelvin at kelvinluck.com
Thu Nov 27 14:53:18 PST 2008


Hi Niels,

It looks like Flickr's implementation of geo stuff has changed a bit since I last updated Flashr. When Flashr was last updated there was only bbox and accuracy parameters to flickr.photos.search... You should still be able to use those parameters if you want:

_flashr.photosSearch({tags:SEARCH_TAG, per_page:NUM_RESULTS, bbox:[minimum_longitude, minimum_latitude, maximum_longitude, maximum_latitude]});

Here you are defining a bounding box to search within...

You can also try using some of flickrs new search terms as described on their API page:

http://www.flickr.com/services/api/flickr.photos.search.html

That is what your example looks like it is doing:

_flashr.photosSearch({tags:SEARCH_TAG, per_page:NUM_RESULTS, lat:52, lon:5});

(I don't think the acuracy is necessary). That should search for photos matching your tag within a 5km circle of the specified latitude and longitude...

If you still don't get any results for that then try it in the API Explorer on flickr and let me know if that works,

Cheers,

Kelvin :)

p.s. the extras:geo tells flickr to return geo information about each of the matching photos so it shouldn't effect what photos are found, just what data is provided for those photos...

On Thu, 27 Nov 2008 14:04:52 -0800, Flip Soeperman <n_molenaar at yahoo.com> wrote:

> Dear reader,
>
> today I started playing around with Flashr, which is really simple and great! There is this thing I want to do, but can't figure out how.
> I am trying to search for a specific geo location.
> Flashr API is talking about GeoLocation and Longitude, Latitude and accuracy. Flickr is talking about long lat and accurancy. Then there is also the extras:geo. But I can't figure out what to do to include in it the photosSearch.
> My latest try is
> _flashr.photosSearch({tags:SEARCH_TAG, per_page:NUM_RESULTS, accuracy:1, lat:52, lon:5}); but that doesn't give any answer, and I know there should be at least one photos applicable.
>
> What am I doing wrong:)???
>
> Thanks!
> Niels
>
>
>
> 






More information about the Flashr mailing list