Small utility library that helps one to build memory hash with desired data from GeoNames.
data used: http://download.geonames.org/export/zip/US.zip
how to use:
var index = 'postal' 'county' 'county_code';console;// { county: 'Palm Beach', county_code: '099' }
OR
var index = 'postal';console;/*{ country: 'US', postal: '33445', place: 'Delray Beach', state: 'Florida', state_code: 'FL', county: 'Palm Beach', county_code: '099', community: '', community_code: '', latitude: '26.4564', longitude: '-80.1054', accuracy: '' }*/