Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm developing an application that calculates the distance between cities using their respective Longitude and Latitude values.

But the problem is where to get a comprehensive list of latitude and longitude values of these cities?

share|improve this question
3  
I'd look around developers.google.com/maps and wiki.openstreetmap.org/wiki/API for a start – Morawski Mar 19 '12 at 9:14

migrated from programmers.stackexchange.com Mar 19 '12 at 11:08

6 Answers

up vote 5 down vote accepted

This is pretty much the standard as far as I'm aware:

MaxMind GeoLite

share|improve this answer
I don't get it, how is this a list of global cities? Is this link even correct? Shouldn't it point to GeoliteCity? – Günther Mar 22 '12 at 14:06

Don't forget about Geonames dataset:

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

share|improve this answer
3  
download a "cities" file at download.geonames.org/export/dump – Mike Toews Mar 19 '12 at 18:34

Natural Earth's Populated Places could be another option.

share|improve this answer
Thanks for the help. But i was looking for Latitude and Longitudes of Cities round the world. – dotman14 Mar 19 '12 at 12:07
1  
@dotman14: Dataset is meant to consist of all admin-0 and many admin-1 capitals, major cities and towns, plus a sampling of smaller towns in sparsely inhabited regions. And latlon values can be found as two columns inside DBF file. – radek Mar 19 '12 at 12:53

You could also extract the data from OpenStreetMap (using e.g. their API, as described here), or simply from Wikipedia. Most Wikipedia pages for cities have the city's coordinates.

Of course, this would require a bit of scripting, and possibly a list of the cities you want.

share|improve this answer

Here is another option for Global Cities: GRUMP version 1 now has a free layer of settlement points with attributes, such as population size.

http://sedac.ciesin.columbia.edu/data/set/grump-v1-settlement-points

share|improve this answer

I'm using the geodata from www.ip2location.com

share|improve this answer
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – iant Aug 14 '12 at 10:26

Your Answer

 
discard

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.