在MapKit中显示行车路线 [英] Showing Driving Directions in MapKit

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

问题描述

有什么方法可以显示iPhone MapKit中的行车路线吗?

is there any way to show the driving directions in iphones MapKit?

是否有任何方法可以从Google MAPs API以XML或其他格式获取路线的坐标和名称? 例如,

is there any way to get the coordinates and names of a route as an XML or in other formates from google MAPs API ? eg , http://maps.google.com/maps?f=d&hl=en&geocode=&saddr=39.23232,-103.343433&daddr=41.23232,-104.344343&ie=UTF8&z=12

推荐答案

否,您不能将MapKit用于行车路线.它不支持这一点.

No, you cannot use MapKit for driving directions. It does not support this.

但是,您可以在MapKit之上临时创建一个透明视图并绘制一些内容,但是MapKit本身没有任何内容.

However, you could improvise a transparent view on top of MapKit and draw something, but nothing native to MapKit.

以下是您自己绘制路线的示例:
http://spitzkoff.com/craig/?p=65

Here is a sample of drawing routes yourself:
http://spitzkoff.com/craig/?p=65

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

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