Flickr APIs get location based image

Is it possible to get CC-images made in the location where the user is located via flickr api or any other service?

How to get lat and long from browser and send it to flickr and then extract the image made there? Just like the yahoo app on iOS does.

+6
source share
2 answers

Check out the flickr API documentation for flickr.photos.search .

There are additional parameters for lat, lon, radius, and geo-context.

+3
source

Here is an example url showing the format for the endpoint to search for photos in a specific location:

https://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=e693af3d1f05789dfaad53030d8ba9e2&lat=37.7994&lon=122.3950&format=rest&api_sig=b5935d841e55cb4281ae

I tested the endpoint in the mailbox and in my browser and it returns xml, including the photos tagged with lat and lon tags that I specified.

An example was created thanks to some documentation here: https://www.flickr.com/services/api/flickr.photos.geo.photosForLocation. HTML

And a useful Flickr api explorer tool: https://www.flickr.com/services/api/explore/flickr.photos.search

+2
source

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


All Articles