TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Is there a free download of countries and their major cities available?

4 pointsby talkaboutadatealmost 17 years ago
I've got an app that needs to list countries and major cities in a couple of drop down boxes. I found one but it costs $1049.95 - http://www.download32.com/geodatasource-world-cities-database--gold-edition--i24139.html. Anyone know of anything a little cheaper, like free?

7 comments

dkasperalmost 17 years ago
You could get the 2 largest cities in each country from here: <a href="http://en.wikipedia.org/wiki/List_of_largest_cities_and_second_largest_cities_by_country" rel="nofollow">http://en.wikipedia.org/wiki/List_of_largest_cities_and_seco...</a><p>Or this has the capital and cities larger than the capital: <a href="http://en.wikipedia.org/wiki/List_of_capitals_and_largest_cities_by_country" rel="nofollow">http://en.wikipedia.org/wiki/List_of_capitals_and_largest_ci...</a>
amarcusalmost 17 years ago
Javascript code that displays a drop down of Coutry and State: <a href="http://javascript.internet.com/forms/country-state-drop-down.html" rel="nofollow">http://javascript.internet.com/forms/country-state-drop-down...</a><p>I know you wanted cities, but maybe this could do
评论 #238853 未加载
galleypagealmost 17 years ago
You could use MONDIAL. <a href="http://www.dbis.informatik.uni-goettingen.de/Mondial/" rel="nofollow">http://www.dbis.informatik.uni-goettingen.de/Mondial/</a><p>The database is pretty extensive, but you should only need to query it once to get what you need.
talkaboutadatealmost 17 years ago
Thanks, guys/girls. Looking at the forums on geonames it seems like it's over kill and that it may be slow reading such a large database, and mondial seems to be the same. I think I may spend a day or two typing in the countries and cities myself!
hughalmost 17 years ago
<a href="http://en.wikipedia.org/wiki/List_of_countries" rel="nofollow">http://en.wikipedia.org/wiki/List_of_countries</a> ?<p>And then about eight hours' work to look up and type in the names of all the major cities in each country?
评论 #238052 未加载
nnrcschmdtalmost 17 years ago
Did you look at GeoNames? <a href="http://www.geonames.org/" rel="nofollow">http://www.geonames.org/</a><p>It would require you to do some parsing to filter what you need but the info is there.
globalrevalmost 17 years ago
Ok I found something:<p><a href="http://en.wikipedia.org/wiki/List_of_capitals_and_larger_cities_by_country" rel="nofollow">http://en.wikipedia.org/wiki/List_of_capitals_and_larger_cit...</a>