如何在iphone应用程序中获取纬度和经度的地址 [英] How to get the address of a latitude and longitude in an iphone application

查看:107
本文介绍了如何在iphone应用程序中获取纬度和经度的地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用CLLocation获取经度和纬度。我想知道如何通过使用这个经度和纬度得到地址。请帮助我。

解决方案

您可以使用 MKReverseGeocoder ,它使用谷歌反向地理编码工具。



更新: MKReverseGeocoder iOS 5中,您应该使用Core Location框架中的CLGeocoder类。它提供正向和反向地理编码功能 - 检查课程参考资料了解更多详情


I am getting latitude and longitude using CLLocation. I want to know how I can get the address by using this latitude and longitude. Please help me.

解决方案

You can use MKReverseGeocoder class for that purpose, which uses google reverse geocoding facilities.

Update: MKReverseGeocoder class is deprecated in iOS 5, you should use CLGeocoder class from Core Location framework instead. It provides functions for both forward and reverse geocoding - check class reference for more details

这篇关于如何在iphone应用程序中获取纬度和经度的地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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