Iphone MapKit 显示路线

发布于 2024-09-30 02:48:09 字数 277 浏览 2 评论 0原文

我想显示两个位置之间的路线,从用户当前位置到地图上的某个点。我已经在一些应用程序中看到过这种做法,比如 Layar。 http://itunes.apple.com/us/app/layar-reality -browser/id334404207

有人可以给我指点如何在 iphone sdk 4 上实现这一点吗

谢谢

I would like to show the route between 2 locations, from the users current location to a certain point on the map. I have seen this done in a couple of applications like layar.
http://itunes.apple.com/us/app/layar-reality-browser/id334404207

Can someone give me pointers on how to achieve this on iphone sdk 4

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

说不完的你爱 2024-10-07 02:48:09

尝试使用 kishikawakatsumi github 上的代码

看起来他提供了一个围绕 Google Maps 路由 API 的包装器,它将为您提供路线,然后提供一些自定义 MKAnnotations 来处理在 MapKit 中绘制这些路线。

Try using kishikawakatsumi's code on github.

Looks like he provides a wrapper around the Google Maps routing API which will give you the route, and then some custom MKAnnotations to handle drawing those routes in MapKit.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文