I am trying to enable new functionality in application. I need a full list with countries->regions/states/provinces->cities/villages and i need a database that have all needed data. Another functionality is find all this data by country + postal(zip) code.
After couple day of research, I found geonames api. I downloaded data, but city table have 2,5 millions cities. So this is too big data for local database and searching is too slow. After this I started use geonames, but this time within API.
I have a test cities:
US, Maryland, Phoenix - 21131
US, Utah, Provo - 84604 Ukraine
Cherkassy, Cherkassy - 18001.
I tried all methods and each time some city data was wrong or not existing. I tried to find city by country+postal code, country+placename, by lat+lng, by east+west+north+south and each time some data was wrong. What I need to have Is region/state/province name, city name and unique id.
I am trying to finish this task last 2 weeks so I'll be fired, if will not finish this task soon) Maybe someone know good free API or working query for geonames? Sorry for my English and thanx for any help.