iOS6中的iOS行车路线

iOS6中的iOS行车路线

本文介绍了iOS6中的iOS行车路线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找有关如何在我的应用程序中将行车路线集成到MKMapView中的信息.是打开Apple Maps程序然后从那里去的唯一方法,或者是它们集成到您自己的应用程序中的一种方法.如果没有,我可能会在获得API密钥后尽快使用google maps.

I have been searching all around about how to integrate driving directions into MKMapView within my application. Is the only way to open the Apple Maps program and go from there, or is their a way of integrating within your own app. If not, I will probably go with google maps as soon as I can get an API key.

推荐答案

如果您的意思是要获得与Apple Maps应用程序相同的行车方向视图(又称转弯导航),那么就…….我知道,那里没有图书馆(如果不是第三党的话).但是,正如您提到的,您可以打开苹果地图或Google地图,向应用程序提供指导,并启动该功能.

If you mean getting the same views for driving direction (a.k.a. turn-by-turn navigation) as the Apple Maps application, then no... as far as I know, there is no library for that (if not 3rd party).However, as you mentioned, you can open apple maps or google maps giving the directions to the application and initiate such a function.

另外,请注意:如果iOS6中将有这样的内置功能(同样,我不相信有),那么很高兴知道它在iOS6之前不存在.这意味着它将无法在较早的设备上运行. (因此,如果您也要支持这些设备,则需要构建一个后备解决方案).

Also, good to know: If there would be such a build-in functionality in iOS6 (which, again I don't believe there is) its good to know it doesn't exist in pre-iOS6. Meaning it won't work on earlier devices. (hence you need to build a fall-back solution if you want to support those devices as well).

有关依次显示的iOS的更多信息: http://developer.apple.com/library/ios/#releasenotes/General/WhatsNewIniPhoneOS/Articles/iOS6.html

More information on iOS turn-by-turn: http://developer.apple.com/library/ios/#releasenotes/General/WhatsNewIniPhoneOS/Articles/iOS6.html

该页面上的行情(这使我相信API不支持逐行显示):

Quote from that page (which makes me believe turn-by-turn is not supported in the API's):

文档搜索页面也没有提供更多信息: http://developer.apple.com/library/ios/search/?q=turn-by-turn

The documentation search page doesn't give much more info either: http://developer.apple.com/library/ios/search/?q=turn-by-turn

有关如何打开地图应用程序的更多信息,请在此处查看答案: https://stackoverflow.com/a/12789896 /406677

For more information on how to open the maps app, check the answer here: https://stackoverflow.com/a/12789896/406677

因此,最重要的是,您需要创建自己的逐步导航...或链接到提供此类支持的现有应用程序.

So bottom line, you need to either create your own turn-by-turn navigation... or link to an existing application giving such support.

我希望能回答您的问题.

I hope that answered your question.

这篇关于iOS6中的iOS行车路线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 14:37