您如何从 GPS 坐标中获取国家/州/地区/城市/州/邮编/邮政? [英] How do you get the country/state/region/city/state/zip/postal from GPS coordinates?

查看:34
本文介绍了您如何从 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 坐标中获取国家/州/地区/城市/州/邮编/邮政?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆