需要资源来将城市与坐标配对
我有一个世界各地的城市(和其他一些地点)列表,格式如下:
America/Antigua
America/Anguilla
Europe/Tirane
Asia/Yerevan
America/Curacao
Africa/Luanda
Antarctica/McMurdo
我需要将它们相应的坐标格式化为如下:
Europe/Stockholm 59.21N 18.04W
由于我有一个相当大的列表(大约 1k 个帖子),我希望能够自动检索这些坐标。是否存在可以轻松提取此数据的免费资源(最好是可下载的,而不是仅限搜索的)?
我目前能想到的替代方案是谷歌地图(如果我理解正确的话,它需要一个 api 密钥),或维基百科(它没有容易获得的数据,并且没有针对此类搜索进行优化) 。而且这两个都是在线的,这对我来说不是最佳选择。
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 data easily available, and is not optimized for that kind of searches). And both of these are online-only, which is sub-optimal for me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看看 geonames.org
我相信您可以免费查询该服务,但我不知道该数据是否可以可下载
Look at geonames.org
I am sure you can query that service for free but I dont know if that data can be downloadable
查看http://www.realestate3d.com/gps/world-latlong.htm
Check out http://www.realestate3d.com/gps/world-latlong.htm