简体   繁体   English

在iOS上转发地理编码

[英]Forward geocoding on iOS

Map Kit currently only has support for reverse geocoding (coordinates to address), not forward geocoding (address to coordinates). Map Kit目前仅支持反向地理编码(地址坐标),而不支持前向地理编码(地址到坐标)。 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. 我看到另一个SO帖子提到了这个,有几个人发布了他们自己的问题解决方案,但这些答案已经超过一年了。

Is there still no standard solution to this (either from Apple or a robust, well-maintained library that keeps up with the APIs)? 是否仍然没有标准的解决方案(来自Apple或一个健壮,维护良好的库,可以跟上API)? Is the best approach still to roll your own solution using the Google Maps APIs? 使用Google Maps API仍然是推出自己解决方案的最佳方法吗? I'd think this is a common enough problem that there would be something out there... 我认为这是一个普遍存在的问题,那里会有一些东西......

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. 我同意你的看法,这有点令人惊讶,尽管所谓的许可问题使得向MapKit添加前向地理编码支持变得困难。

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: 如果你想要一个比Google API更好的Objective-C包装器,这是一个好的开始:

http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/ http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/

No, there is still no built in solution. 不,仍然没有内置的解决方案。 However, the BS* library mentioned in the top answer from your link is fantastic. 但是,您链接的最佳答案中提到的BS *库非常棒。 I've used it on two projects with out any issue. 我已经在两个项目中使用它而没有任何问题。

http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/ http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM