如何在Iphone中使用GoogleMaps中的指定字符串获取区域?

发布于 2024-08-09 20:28:25 字数 258 浏览 2 评论 0原文

在我的 iPhone 应用程序中,我使用 MKMapView 来显示任何区域(即澳大利亚),并且使用坐标(纬度和经度)工作正常。但我想根据字符串(即澳大利亚)而不是坐标显示区域。 假设我单击名为“Australia”的 TableView,在下一个视图中它应该显示澳大利亚并带有一些精确点。

如何根据字符串而不是给定的坐标显示任何区域?

提供任何包含任何代码片段或任何有用的链接或任何其他的解决方案,我们将不胜感激。

谢谢,

米沙尔·沙阿

In my iphone application i am using MKMapView to display any region(i.e Australia) and it is working fine using coordinates(latitude and longitude).But i want to display the region based on the string (i.e Australia) instead of the coordinates.
Lets say i click on the TableView with named string as "Australia" and in the next view it should display Australia with some pinpoints on that.

how to display any region based on the String instead of the given coordinates?

provide any solution with any code snippet or any useful link or any other ,which would be appreciated.

Thanks,

Mishal Shah

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

酒解孤独 2024-08-16 20:28:25

您需要地理编码。查询服务器“澳大利亚”应该返回您需要的坐标。

You need Geocoding. Querying the server for "Australia" should return the coordinates you need.

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