Looking for a way to mimic Flickr API logic to use Google views.
On Flickr I can call the flickr.photos.search
method and get all the photos for a specific location like so:
The response:
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<photos page="1" pages="7673" perpage="100" total="767266">
<photo id="17856165012" owner="91887621@N04" secret="6d2acf3b87" server="7690" farm="8" title="Amsterdam Canal" ispublic="1" isfriend="0" isfamily="0" />
<photo id="17830118816" owner="131827681@N05" secret="ee8b55fc5e" server="7756" farm="8" title="IMG_2209" ispublic="1" isfriend="0" isfamily="0" />
<photo id="17668921970" owner="131827681@N05" secret="bd0061e638" server="8825" farm="9" title="IMG_2210" ispublic="1" isfriend="0" isfamily="0" />
<photo id="17853550052" owner="131827681@N05" secret="c834e9a7eb" server="7738" farm="8" title="IMG_2212" ispublic="1" isfriend="0" isfamily="0" />
<photo id="17856935911" owner="131827681@N05" secret="39be86bb4b" server="7723" farm="8" title="IMG_2213" ispublic="1" isfriend="0" isfamily="0" />
<photo id="17233920844" owner="131827681@N05" secret="8be2333be3" server="7658" farm="8" title="IMG_2214" ispublic="1" isfriend="0" isfamily="0" />
<photo id="17853542232" owner="131827681@N05" secret="8f19ee65c2" server="7747" farm="8" title="IMG_2215" ispublic="1" isfriend="0" isfamily="0" />
<photo id="17856926911" owner="131827681@N05" secret="bc0fb6dbc1" server="7667"....
Then I call flickr.photos.getInfo
for each photo id to get the photo info
The Response:
<?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
<photo id="17853542232" secret="8f19ee65c2" server="7747" farm="8" dateuploaded="1432037570" isfavorite="0" license="0" safety_level="0" rotation="90" originalsecret="7848968317" originalformat="jpg" views="2" media="photo">
<owner nsid="131827681@N05" username="trashhunters" realname="Trash Hunters" location="" iconserver="7748" iconfarm="8" path_alias="trashhunters" />
<title>IMG_2215</title>
<description />
<visibility ispublic="1" isfriend="0" isfamily="0" />
<dates posted="1432037570" taken="2015-05-17 13:47:32" takengranularity="0" takenunknown="0" lastupdate="1432040217" />
<editability cancomment="0" canaddmeta="0" />
<publiceditability cancomment="1" canaddmeta="0" />
<usage candownload="1" canblog="0" canprint="0" canshare="1" />
<comments>0</comments>
<notes />
<people haspeople="0" />
<tags>
<tag id="131822341-17853542232-563433" author="131827681@N05" authorname="trashhunters" raw="blikje" machine_tag="0">blikje</tag>
<tag id="131822341-17853542232-81138" author="131827681@N05" authorname="trashhunters" raw="fanta" machine_tag="0">fanta</tag>
</tags>
<location latitude="52.367408" longitude="4.862769" accuracy="16" context="0" place_id="xQ4tawtWUL1NrOY" woeid="727232">
<locality place_id="xQ4tawtWUL1NrOY" woeid="727232">Amsterdam</locality>
<county place_id="nmbnjNtQUL_iOTHdPg" woeid="12592040">Amsterdam</county>
<region place_id="F86XYCBTUb6DPzhs" woeid="2346379">North Holland</region>
<country place_id="Exbw8apTUb6236fOVA" woeid="23424909">Netherlands</country>
</location>
<geoperms ispublic="1" iscontact="0" isfriend="0" isfamily="0" />
<urls>
<url type="photopage">https://www.flickr.com/photos/trashhunters/17853542232/</url>
</urls>
</photo>
</rsp>
I'm interested in the longitude, latitude, time taken and user info. I've looked through the Google places API but couldn't find a way.
Update: just to be clear, I've found the place details request, on Google API but the photos result does not contain location or user data:
..."photos" : [
{
"height" : 2322,
"html_attributions" : [
"\u003ca href=\"//lh5.googleusercontent.com/-QO7PKijayYw/AAAAAAAAAAI/AAAAAAAAAZc/fTtRm3YH3cA/s100-p-k/photo.jpg\"\u003eWilliam Stewart\u003c/a\u003e"
],
"raw_reference" : {
"fife_url" : "https://lh3.googleusercontent.com/-7mKc4261Edg/VB01Tfy2OWI/AAAAAAAADII/BHs-SIudu64/k/"
},
"width" : 4128
},...
Any advice would be appreciated :)