Dear friends,
I create a script to extract coordinate from the exif of a number of images and create an excel file with thumbnail, latitude, longitude and other columns.
I was wondering if there was an (easy) way to find the closest placename from geonames given lat and long.

Oh you want to know what it is, why you did nolt ask that in first place :)

I did not prove this, but by Googling I got this: I am unable to read that code in my mobile as it does not show indention showing the code.

For module supporting geonames, there seems to be (again un tested)

Basically you could also use for example Google Maps API to accomplish same kind of thing.