将街道名称和城市反向地理编码为文本
我一直在寻找一种好方法来将街道名称和城市作为文本(此处显示的无限循环,库比蒂诺)输出,以便在我的 iPhone 应用程序中显示。这需要能够随着街道和城市的变化而动态变化。我不知道如何做到这一点,我希望有人可以提供帮助。我附上了我想要实现的目标的非常粗略图像。
我发现了这个(http://code.google.com /apis/maps/documentation/javascript/services.html#Geocoding) 用于谷歌地图,了解如何使用 javascript 进行反向地理编码,但我不明白的是如何在 iPhone 开发设置中完成此操作。我从事网页设计工作,我知道如何在 HTML 中完成它,但我对 iPhone 开发非常陌生,并且对如何在这里完成它没有丝毫线索。
如果有人能阐明如何做到这一点,我将非常感激。我似乎无法通过搜索谷歌找到我要找的东西。
参考图片:
alt text http://www. Threepixeldrift.com/images/deep -存储/reversegeocodeiphoneapp.jpg
I have been having some trouble finding a good way to output just the street name and city as text (Infinite Loop, Cupertino shown here) that can be displayed in my iPhone app. This needs to be able to dynamically change as you change streets and city. I don't have the slightest idea of how to do this, I hope someone can help. I have attached a very rough image of what I am trying to acheave.
I have found this (http://code.google.com/apis/maps/documentation/javascript/services.html#Geocoding) for google maps about how to reverse geocode using javascript, but what I do not understand is how this would be done in a iPhone development setting. I work in web design and I see how it would be done in HTML but I am very new to iPhone development and don't have the slightest clue of how it would be done here.
If someone could spell out how to do this I would be extremely grateful. I cannot seem to find what I am looking for by searching Google.
Reference picture:
alt text http://www.threepixeldrift.com/images/deep-storage/reversegeocodeiphoneapp.jpg
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 iPhone 上,使用 MKReverseGeocoder
这个问题有一个更完整的代码示例:
如何检索用户当前的城市名称?< /a>
on the iPhone, use MKReverseGeocoder
This question has a more complete code example:
How to retrieve user's current city name?