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

How do you get the country/state/region/city/state/zip/postal from GPS coordinates?(您如何从 GPS 坐标中获取国家/州/地区/城市/州/邮编/邮政?)
本文介绍了您如何从 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 坐标中获取国家/州/地区/城市/州/邮编/邮政?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)