将街道名称和城市反向地理编码为文本

发布于 2024-09-06 06:22:11 字数 771 浏览 4 评论 0原文

我一直在寻找一种好方法来将街道名称和城市作为文本(此处显示的无限循环,库比蒂诺)输出,以便在我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱的故事 2024-09-13 06:22:11

在 iPhone 上,使用 MKReverseGeocoder

这个问题有一个更完整的代码示例:

如何检索用户当前的城市名称?< /a>

on the iPhone, use MKReverseGeocoder

This question has a more complete code example:

How to retrieve user's current city name?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文