给定纬度/经度坐标,我们如何找出城市/国家? [英] Given the lat/long coordinates, how can we find out the city/country?

查看:36
本文介绍了给定纬度/经度坐标,我们如何找出城市/国家?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,如果我们有这些坐标集

For example if we have these set of coordinates

"latitude": 48.858844300000001,
"longitude": 2.2943506,

我们怎样才能找到城市/国家?

How can we find out the city/country?

推荐答案

免费的 Google地理编码 API 通过 HTTP REST API 提供此服务.请注意,API 使用和费率限制,但您可以付费无限制访问.

The free Google Geocoding API provides this service via a HTTP REST API. Note, the API is usage and rate limited, but you can pay for unlimited access.

试试这个链接看看输出的例子(这是在json中,输出也可以在XML中)

Try this link to see an example of the output (this is in json, output is also available in XML)

https://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true

这篇关于给定纬度/经度坐标,我们如何找出城市/国家?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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