开发者

Need a resource for pairing cities to coordinates

开发者 https://www.devze.com 2023-01-22 14:46 出处:网络
I have a list of cities (and some other locations) around the world, formatted like this: America/Antigua

I have a list of cities (and some other locations) around the world, formatted like this:

America/Antigua  
America/Anguilla  
Europe/Tirane  
Asia/Yerevan  
America/Curacao  
Africa/Luanda  
Antarctica/McMurdo

And I need to get their corresponding coordinates formatted like this:

Europe/Stockholm 59.21N 18.04W  

Since I have a rather large list (around 1k posts) I would like to be able to automate the retrieval of these coordinates. Does there exist a free resource (preferably downloadable, not search-only) from which it's easy to extract this data?

The alternatives I can think of at the moment are google maps (which would require an api key, if I understand it correctly), or Wikipedia (which doesn't have that d开发者_JAVA百科ata easily available, and is not optimized for that kind of searches). And both of these are online-only, which is sub-optimal for me.


Look at geonames.org

I am sure you can query that service for free but I dont know if that data can be downloadable


Check out http://www.realestate3d.com/gps/world-latlong.htm

0

精彩评论

暂无评论...
验证码 换一张
取 消