-
-
Save macdiva/4472506 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Docs here: | |
http://www.flickr.com/services/api/flickr.photos.search.htm | |
Interactive API Explorer for that method here: | |
http://www.flickr.com/services/api/explore/flickr.photos.search | |
Find a place. Like this: | |
http://www.flickr.com/places/United+States/Louisiana/New+Orleans | |
Look at the bottom of the page for the WOE ID. You can click on that or just use the WOE ID. | |
http://www.flickr.com/places/info/2458833 | |
That tells you the bounding box and centroid in lat/lon. | |
For New Orleans it's | |
lat=29.9537 | |
lon=-90.0777 | |
I'll also use | |
radius=5 // (km) that's the default | |
I could also directly use the WOE ID. | |
Using www.epochconverter.com I found the 5 hours surrounding midnight New Year's Eve: | |
min_taken_date=1356973200 | |
max_taken_date=1356991200 | |
Using flickr.photos.search (this is using the Flickr API Explorer API Key -- substitute in your own): | |
http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=6d8c8c064ff4f1f72b1938e574a2e523&min_taken_date=1356973200&max_taken_date=1356991200&lat=29.9537&lon=-90.0777&radius=5&format=rest&auth_token=72157632444036961-bae1f4d7ad01bb49&api_sig=78aec38d16fd3e4a3df36e86e4bd5563 | |
<?xml version="1.0" encoding="utf-8" ?> | |
<rsp stat="ok"> | |
<photos page="1" pages="1" perpage="100" total="22"> | |
<photo id="8334423356" owner="55456476@N06" secret="090eeaed10" server="8358" farm="9" title="till nightfall." ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8330792541" owner="21685341@N00" secret="b39d2eb43e" server="8354" farm="9" title="2013 Desktop Wallpaper Calendar - January" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8334125666" owner="83865436@N07" secret="0d2ff945c7" server="8502" farm="9" title="Broccoli, Kumquat, Pickles, Green Onion Vinaigrette - Maurepas Foods - Bywater - New Orleans, LA" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8333063963" owner="83865436@N07" secret="95e297e0af" server="8076" farm="9" title="Broccoli, Kumquat, Pickles, Green Onion Vinaigrette - Maurepas Foods - Bywater - New Orleans, LA" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8333071319" owner="83865436@N07" secret="1cb838f161" server="8071" farm="9" title="Arugula, Citrus, Chicken Cracklin - Maurepas Foods - Bywater - New Orleans, LA" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8333077859" owner="83865436@N07" secret="fbfa4f25e6" server="8499" farm="9" title="Joe with NYE Guests - Maurepas Foods - Bywater - New Orleans, LA" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8332641566" owner="64957428@N00" secret="cf6478f3b2" server="8352" farm="9" title="Happy New Year!" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8331471974" owner="47503730@N08" secret="b15bc3f10f" server="8216" farm="9" title="Happy New Year #nola" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8334369291" owner="32544079@N08" secret="48e5934720" server="8222" farm="9" title="IMG_5338" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8334308511" owner="32544079@N08" secret="db5b837f15" server="8351" farm="9" title="IMG_5345" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8334362399" owner="32544079@N08" secret="8f4ce3d782" server="8079" farm="9" title="IMG_5339" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8335376946" owner="32544079@N08" secret="3400a99ce6" server="8491" farm="9" title="IMG_5344" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8334336897" owner="32544079@N08" secret="5e00fd2538" server="8217" farm="9" title="IMG_5343" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8334352327" owner="32544079@N08" secret="3a92a57b8b" server="8358" farm="9" title="IMG_5341" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8331310365" owner="91259460@N06" secret="9f1546f837" server="8215" farm="9" title="Scallop martini, yum!" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8331152403" owner="85450402@N02" secret="daf1a67416" server="8358" farm="9" title="" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8333067563" owner="83865436@N07" secret="5bdc4db2d7" server="8357" farm="9" title="Pork Char Sui, Anchovy & Pork FIsh Sauce, Pickled Japanese Turnips, White Bread - Maurepas Foods - Bywater - New Orleans, LA" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8334129602" owner="83865436@N07" secret="b602c47180" server="8213" farm="9" title="Pork Char Sui, Anchovy & Pork FIsh Sauce, Pickled Japanese Turnips, White Bread - Maurepas Foods - Bywater - New Orleans, LA" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8332288508" owner="83865436@N07" secret="61e5d0bb94" server="8491" farm="9" title="A little Toulouse Red Absinthe cocktail to help wish goodbye to 2012! Happy New Year!" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8333075549" owner="83865436@N07" secret="9c27363469" server="8080" farm="9" title="Toulouse Red Absinthe Cocktail - Maurepas Foods - Bywater - New Orleans, LA" ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8332477120" owner="91256725@N05" secret="c967f815cd" server="8351" farm="9" title="Bayou Poker." ispublic="1" isfriend="0" isfamily="0" /> | |
<photo id="8331955028" owner="91570942@N04" secret="49263aca62" server="8080" farm="9" title="My big friend" ispublic="1" isfriend="0" isfamily="0" /> | |
</photos> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment