Version 1.6.1: Less is More

Posted on Friday 1 September 2006

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

1 Comment for 'Version 1.6.1: Less is More'

  1.  
    October 21, 2006 | 6:12 am
     
    Would be nice if you update the license on Sourceforge too.....

Leave a comment

(required)

(required)


Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post | TrackBack URI