在iOS6中路由MKMapKit的数据 [英] Routing Data for MKMapKit in iOS6

查看:143
本文介绍了在iOS6中路由MKMapKit的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

之前我已经在iOS应用程序中完成了路由,但是对于iOS6,我们现在正在显示Apple地图 - 这会导致问题,因为我们使用Google路由数据,如果我们使用Google数据,我们应该在Google上显示它map。

I have done routing in iOS apps before, but with iOS6 we are now displaying Apple maps - which causes a problem because we are using Google routing data and if we use Google data, we are supposed to be displaying it on a Google map.

我一直在搜索,但据我所知,Apple没有提供任何路由数据。到目前为止,答案最接近答案似乎是当Apple说消费方向信息的应用程序通过向地图应用程序发送适当的请求来执行此操作,然后地图应用程序处理向用户显示该信息的任务。 - 对我而言,这意味着地图应用会打开以显示路线,并将用户从我们的应用中删除。

I have been searching but as far as I can tell, Apple does not provide any routing data. The closest thing to an answer so far seems to be when Apple says Apps that consume direction information do so by sending an appropriate request to the Maps app, which then handles the task of displaying that information to the user. - which, to me, means that the Maps app would be opened to display the route, and taking the user out of our app.


  • 我们可以在哪里获得使用Apple地图在iOS6应用程序上使用的即时路由数据?

推荐答案

您可以使用 MapQuest的Open Directions API 。它是免费的,似乎没有任何限制。他们还有许可API ,每日免费限制。

You could use MapQuest's Open Directions API. It is free and it does not seem to have any limit. They also have a licensed API with a free daily limit.

我相信你只需要在你的应用上放置他们的徽标。

I believe you are only required to put their logo somewhere on your app.

这篇关于在iOS6中路由MKMapKit的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆