您如何从 GPS 坐标中获取国家/州/地区/城市/州/邮编/邮政?坐标、邮编、邮政、地区

由网友(感情戏、没演技)分享简介:我的所有照片都有 GPS 坐标.我想包含城市、州、邮编等的标签/IPTC 数据.但是我只有 GPS 坐标.我怎样才能以自动化的方式获取这些信息并获取有意义的信息(我有成千上万张照片,因此将每张照片都输入谷歌地图是行不通的).I have GPS coordinates on all of my photos. I w...

我的所有照片都有 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)

阅读全文

相关推荐

最新文章