Ask HN: Database with country names down to the city, etc.
Hello HN,
I remember reading these in HN a few months ago. Apparently they were free. They had coordinates, country names, cities, towns, etc.
Can anyone point me to a reliable site with a good database for such?
Thanks!
-Wenbert
12 comments
[ 157 ms ] story [ 326 ms ] threadI've got one, let me dig it up for you, just a moment.
edit:
Ok, ready for download, it's a mysql dump so you can simply read it back in to any mysql server:
http://autotagger.com/geoinfo.dump.gz
41 Megabytes, 2.67 million towns & cities, fields are country, region,name,accented name,latitude,longitude,verified,current,prefered and population.
The 'verified', 'current' and 'prefered' fields are all internal to an application I wrote so you can lose those safely.
I've also added tables with countries, country aliases and regions.
edit2: holy guacamole, easy guys, that server is only on a 100 Mbit uplink.
I figured there'd be one download...
LOL. It downloaded in about a minute. Nice server!
Again, thank you so much!
I don't actively maintain the dataset, but if you want I can create a small website around it so people can update it.
The reason I built this was a project called 'autotagger', the idea behind it is to identify people, places and subjects in texts automatically.
It's one of my pet projects but I don't have enough funds to continue to work on it full time without a way to monetize it, so it's been sitting there rusting for the last year or so.
I think I have most of the datastructures and algorithms worked out, it needs a massive rewrite to get it production ready and fast enough.
The fields most subject to change are the population and the names, cities/towns don't get created too often but merging smaller towns does happen.
They rarely move around, so I figure the longitude/latitude should be good for a while ;)
Would be good if you can give me some more info about it.
When I have some time I'll do a write-up on it and post it.
The basic idea behind it is 'google backwards', if you can figure out how it works from those two words drop me a line ;)
Anyway, thanks! I keep an eye on this project.
This would've been very useful for a past project, and while I don't necessarily need it at the moment, I suspect it'll come in handy sometime in the future.
http://www.geonames.org/export/
Used as the placename source for http://www.dopplr.com among others.
HTH,
Brendan.
http://www.maxmind.com/app/geolitecity