[Flashr] Flashr and geo locations
Flip Soeperman
n_molenaar at yahoo.com
Fri Nov 28 00:55:20 PST 2008
Thanks a lot! The bbox works like a charm! My application in still in early stages of progress, but when there it is more improved, I will put it up on the Flashr site.
THanks!
Niels
________________________________
From: Kelvin Luck <kelvin at kelvinluck.com>
To: flashr at osflash.org
Sent: Thursday, 27 November, 2008 23:53:18
Subject: Re: [Flashr] Flashr and geo locations
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
>
>
>
>
_______________________________________________
Flashr mailing list
Flashr at osflash.org
http://osflash.org/mailman/listinfo/flashr_osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/flashr_osflash.org/attachments/20081128/7cb2ed1c/attachment.html>
More information about the Flashr
mailing list