How do you get the country/state/region/city/state/zip/postal from GPS coordinates?(您如何从 GPS 坐标中获取国家/州/地区/城市/州/邮编/邮政?)
问题描述
我的所有照片都有 GPS 坐标.我想包含城市、州、邮编等的标签/IPTC 数据.但是我只有 GPS 坐标.我怎样才能以自动化的方式获取这些信息并获取有意义的信息(我有成千上万张照片,因此将每张照片都输入谷歌地图是行不通的).
I have GPS coordinates on all of my photos. I want to include tags/IPTC data for the city, state, zip, etc.. However all I have is the GPS coordinates. How can I take these and get meaningful info in an automated fashion (I have thousands upon thousands of photos, so typing each one into google maps would not work).
推荐答案
您可以使用以下 HTTP 请求使用 Google Maps API 进行反向地理编码:
You can do reverse geocoding with Google Maps API using the following HTTP request:
简单的 CSV:
http://maps.google.com/maps/geo?q=40.756041,-73.986939&output=csv&sensor=false
更复杂的 XML:
http://maps.google.com/maps/geo?q=40.756041,-73.986939&output=xml&sensor=false
只需将q"参数更改为您的纬度、经度即可.
Simply change the "q" parameter with your latitude,longitude.
请注意,Google Maps API 限制每个 IP 地址每天 15,000 个请求.(Google Maps API 常见问题解答)
Note that the Google Maps API has a limit of 15,000 request per IP address per day. (Google Maps API FAQ)
这篇关于您如何从 GPS 坐标中获取国家/州/地区/城市/州/邮编/邮政?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:您如何从 GPS 坐标中获取国家/州/地区/城市/州/邮编/邮政?


- C# 中多线程网络服务器的模式 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- 输入按键事件处理程序 2022-01-01