How to get all public photos from Geotagged from Flickr?

I am currently creating a part of the php application that includes placing photos with geotagged tags on a Google map, I would like all photos of geotexted publics with Flickr to be placed on this map, and not just those that a specific user had. I managed to capture some seemingly random photos using the following link:

http://api.flickr.com/services/feeds/geo/flickr.photos.search

But I want to take all the available photos, does anyone know how I can do this?

+4
source share
2 answers

Having a very brief overview of the Flickr API, I would suggest you do something like the following:

  • request the latest public photos using flickr.panda.getPhotos
  • scroll and draw your photos on the map using the lat / long values โ€‹โ€‹returned in the results.

I donโ€™t think you can request all public photos (except your own).

An example result from flickr.panda.getPhotos as follows:

 <?xml version="1.0" encoding="utf-8" ?> <rsp stat="ok"> <photos interval="60" lastupdate="1327418852" total="62" panda="wang wang"> <photo title="Disneyland Transport 3" id="6745836781" secret="5890dc399e" server="7162" farm="8" owner=" 40910903@N04 " ownername="Wicked Transport" latitude="28.38113" longitude="-81.568336" accuracy="11" /> <photo title="Mears Motor Coaches 1" id="6745840323" secret="cc0553ecd7" server="7155" farm="8" owner=" 40910903@N04 " ownername="Wicked Transport" latitude="28.38113" longitude="-81.568336" accuracy="11" /> <photo title="Igreja de Santa Rita" id="5586974263" secret="68ac3fcde2" server="5263" farm="6" owner=" 52904565@N03 " ownername="Travessia Bacana" latitude="-18.645269" longitude="-43.433761" accuracy="10" /> <photo title="Disneyland Transport 4" id="6745837615" secret="f72ef7e744" server="7012" farm="8" owner=" 40910903@N04 " ownername="Wicked Transport" latitude="28.38113" longitude="-81.568336" accuracy="11" /> <!-- SNIP! --> </photos> </rsp> 
+3
source

Check it out from the flickr API . Use 1 for public photos. You can also check min_upload_date, as well as an API that allows you to display photos after a specified date.

privacy_filter (optional) Return photos only according to a certain level of privacy. This only applies when making an authenticated call to view your photos. Allowed values: 1 public photos 2 private photos visible to friends 3 personal photos visible to family 4 private photos visible to friends and family 5 completely private photos

+2
source

Source: https://habr.com/ru/post/1392697/


All Articles