iOS 上的正向地理编码
Map Kit 目前仅支持反向地理编码(坐标到地址),不支持正向地理编码(地址到坐标)。我看到另一篇帖子提到了这一点,并且一些人将自己的解决方案发布到问题,但这些答案已经一年多了。
是否仍然没有标准解决方案(无论是来自 Apple 还是来自强大、维护良好的与 API 保持同步的库)?最好的方法仍然是使用 Google 地图 API 推出自己的解决方案吗?我认为这是一个很常见的问题,那里会有一些东西......
Map Kit currently only has support for reverse geocoding (coordinates to address), not forward geocoding (address to coordinates). I see another SO post mentioned this, and a few people posted their own solutions to the problem, but those answers are over a year old.
Is there still no standard solution to this (either from Apple or a robust, well-maintained library that keeps up with the APIs)? Is the best approach still to roll your own solution using the Google Maps APIs? I'd think this is a common enough problem that there would be something out there...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不幸的是,情况仍然如此,您提到的答案仍然是最相关的。我同意你的观点,尽管所谓的许可问题使得向 MapKit 添加前向地理编码支持变得困难,但这种情况有点令人惊讶。
不过,我添加此链接是为了防止您错过它。如果你想在 Google 的 API 上使用一个漂亮的 Objective-C 包装器,这是一个好的开始:
http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/
Unfortunately, that is still the case and the answers you mentioned are still the most relevant. I agree with you that it's a bit surprising this is the case, despite so-called licensing issues that make adding forward geocoding support to MapKit difficult.
I'm adding this link just in case you might have missed it, however. It's a good start if you want a nice Objective-C wrapper over Google's API:
http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/
不,仍然没有内置的解决方案。然而,您链接的最佳答案中提到的 BS* 库非常棒。我已经在两个项目中使用过它,没有任何问题。
http://blog.sallarp.com/ipad-iphone-forward-地理编码-api-google/
No, there is still no built in solution. However, the BS* library mentioned in the top answer from your link is fantastic. I've used it on two projects with out any issue.
http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/