通过提供经纬度和长期得到地名 [英] get place name by providing lat and long

查看:134
本文介绍了通过提供经纬度和长期得到地名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序,我想我使用 HTTP天气预报:// WWW .google.com / IG / API?天气= 对,它通过提供一个城市。但是对我来说唯一的纬度和经度可

In my application i want to get the weather report I'm using http://www.google.com/ig/api?weather="" for that by providing a city. But for me only lat and longitude is available

如何通过纬度和经度获得地名。

How can I get the place name by lat and longitudes.

推荐答案

仅供参考,你在做什么叫做反向地理编码。

FYI, what you're doing is called reverse geocoding.

大多数国地名Web服务都可以在JSON,包括findNearby。

Most of the Geonames webservices are available in JSON, including findNearby.

谷歌也有一个反向地理编码的web服务

什么你问的是一个不小的事情 - 一个纬度/液化天然气的数据库几乎可以肯定将是psented XML或JSON $ P $,所以它可能是值得投资一点时间和精力在此。机器人必须具备的XML / JSON包装?

What you're asking is not a small thing - a lat/lng database is almost certainly going to be presented in either XML or JSON, so it might be worth investing a little time and effort in this. Android must have xml/json wrappers?

这篇关于通过提供经纬度和长期得到地名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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