Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm writing an application that needs to plot a user's location on the map, and the user could be anywhere in the world, but I only need city/town level resolution, not street address. Is there a single open source database that contains this information?

share|improve this question
Very similar question with additional resources: Comprehensive list of Latitude and Longitude values of cities round the world – RyanDalton Apr 9 '12 at 17:36
up vote 3 down vote accepted

Since you are interested in city/town level resolution, the best one is

"The GeoNames geographical database covers all countries and contains over eight million placenames that are available for download free of charge."

In case you are interested in your user's IP address, you can use ipinfodb. It returns the location of an IP address (country, region, city, zipcode, latitude and longitude) and the associated timezone in JSON format.

share|improve this answer
Wow. That's fantastic. Thanks! – Joshua Frank Apr 8 '12 at 23:06

For geocoding up to street level, but can also only request a city, this could be useful:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.