Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 iphone 应用程序中,我使用 MKMapView 来显示任何区域(即澳大利亚),并且使用坐标(纬度和经度)可以正常工作。但我想根据字符串(即澳大利亚)而不是坐标来显示区域。假设我点击了命名字符串为“Australia”的 TableView,在下一个视图中它应该显示澳大利亚,并在其上进行一些精确定位。
如何根据字符串而不是给定坐标显示任何区域?
提供带有任何代码片段或任何有用链接或任何其他的任何解决方案,我们将不胜感激。
谢谢,
米沙尔沙阿
你需要地理编码。向服务器查询“澳大利亚”应返回您需要的坐标。