This Project Is No Longer Maintained
Geonames is no longer maintained. Your mileage with patches may vary.
geonames
Scripts for using Geonames
You can read about how this code maps location data to the GeoNames data on Etsy's Code as Craft blog here: http://etsy.me/YCrlbo