UIMapView iPad-查找地址 [英] UIMapView iPad - Address look up

查看:83
本文介绍了UIMapView iPad-查找地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的应用程序具有以下地址,例如:"123 Main St,Perth,Wa,6554,Australia"

Our app has addresses like "123 Main St, Perth, Wa, 6554, Australia"

我们需要显示带有该地址的地图.有没有办法让UIMap视图查找地址并显示?

We need to display a map with that address. Is there a way to get the UIMap view to lookup the address and display?

通常我们会用纬度/经度,并用大头针注释将其放入.

Normally we'd have the Lat/Long and would just put that in with a pin annotation.

推荐答案

您可以使用 Google的地理编码Api 首先获取地址的纬度/经度,然后将其加载到UIMapView中.

You can use Google's Geocoding Api to first get Lat/Long for the address, and then load that in UIMapView.

这篇关于UIMapView iPad-查找地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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