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?
|
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? |
|||||
|
|
This is pretty much the standard as far as I'm aware: |
|||
|
|
Don't forget about Geonames dataset:
|
|||||
|
|
Natural Earth's Populated Places could be another option. |
|||||||
|
|
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. |
|||
|
|
|
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 |
|||
|
|
|
I'm using the geodata from www.ip2location.com |
|||
|