Skip to content


Version 1.6.1: Less is More

I decided to push out two quick changes.

  1. phpFlickr is now officially licensed under the Lesser GPL. This means that you can now distribute it with your own projects, even if they aren't licensed under the GPL. I know that there are people who haven't been including phpFlickr with their projects for this very reason. I hope this makes things easier for everyone.
  2. Since Flickr hasn't implemented an API to grant access to the friendly geodata (i.e. saying that a photo is "in New York, NY" or "near Metropolis, IL"), I've decided to do it for you out of the kindness of my heart. To use it in phpFlickr just call the member function "getFriendlyGeodata()" and pass the latitude and longitude as arguments. It'll return an array with the closest town/city/village/hamlet. This only works for towns in the USA right now because I got all of the data from the publicly available census data. Here's a quick example:
$f->getFriendlyGeodata($lat, $lon);
You can easily pass the location data you get from any of Flickr's API calls directly into this function. If you want to use this service in other applications or read up on the caveats I've placed on the service, you can read all about my Friendly Geodata service

Posted in Uncategorized.


One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. xhochy says

    Would be nice if you update the license on Sourceforge too…..

    ReplyReply



Some HTML is OK

or, reply to this post via trackback.