你如何从GPS坐标获得国家/州/地区/城市/州/邮政/邮政? [英] How do you get the country/state/region/city/state/zip/postal from GPS coordinates?
问题描述
我的所有照片都有GPS坐标。我想包括城市,州,邮编等标签/ IPTC数据。但我拥有的是GPS坐标。我怎样才能以自动化的方式获取这些信息并获得有意义的信息(我有成千上万张照片,因此,将每一张照片输入到谷歌地图中将无法使用)。
您可以使用以下HTTP请求使用Google Maps API进行反向地理编码:
简单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参数。
请注意,Google Maps API的请求限制为15,000每个IP地址每天。 ( Google Maps API常见问题)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).
You can do reverse geocoding with Google Maps API using the following HTTP request:
Simple CSV:
http://maps.google.com/maps/geo?q=40.756041,-73.986939&output=csv&sensor=false
More Complex XML:
http://maps.google.com/maps/geo?q=40.756041,-73.986939&output=xml&sensor=false
Simply change the "q" parameter with your latitude,longitude.
Note that the Google Maps API has a limit of 15,000 request per IP address per day. (Google Maps API FAQ)
这篇关于你如何从GPS坐标获得国家/州/地区/城市/州/邮政/邮政?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!