如何在iPhone上进行地理编码(非反向地理编码)? [英] How do I do geocoding (NOT reverse geocoding) on iPhone?

查看:120
本文介绍了如何在iPhone上进行地理编码(非反向地理编码)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很困惑为什么有一个用于反向地理编码的iPhone API(lat / long to address)但不适用于常规地理编码(地址到lat / long)。

I am perplexed as to why there is an iPhone API for Reverse Geocoding (lat/long to address) but NOT for regular Geocoding (address to lat/long).

我希望能够在地图(MKMapView)上在用户输入的地址上显示注释。 (作为文字,而不是触摸地图)据我所知,这意味着我必须确定输入地址的纬度/经度。

I want to be able to display an annotation on a map (MKMapView) at an address entered by the user. (As text, not by touching the map) As far as I can tell, that means I have to determine the lat/long for the entered address.

它看起来像它可以使用HTTP完成,但是,反向地理编码ALSO也可以这样做。为什么他们支持一个而不支持另一个?

It looks like it can be done using HTTP, but then, Reverse Geocoding ALSO could have been done that way, too. Why did they support one but not the other?

关于为什么?的答案还是怎么样?我们都会受到赞赏。

Answers as to "why?" or "how?" would both be appreciated.

***有人在这个主题上学到了什么新东西吗?我还没有听说过任何公告吗?

*** Anyone learned anything new on this topic? Any announcements I haven't heard about?

推荐答案

我遇到了同样的问题并写了一个地理编码类。 http:// web。 me.com/andreas.bungert/erle_muss_sein/iPhone_Development/Einträge/2009/7/9_Geocoding_im_SDK.html

I had the same issue and wrote a geocoding class. http://web.me.com/andreas.bungert/erle_muss_sein/iPhone_Development/Einträge/2009/7/9_Geocoding_im_SDK.html

最好的问候

这篇关于如何在iPhone上进行地理编码(非反向地理编码)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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