需要资源来将城市与坐标配对

发布于 2024-09-30 04:32:25 字数 459 浏览 0 评论 0原文

我有一个世界各地的城市(和其他一些地点)列表,格式如下:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

行至春深 2024-10-07 04:32:25

看看 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文