如何在 iPhone 本机应用程序中获取路线/方向
我想在我的 iPhone 本机应用程序上添加路线方向。我尝试了 google api v3 但它无法离线工作。我也尝试过route-me-map,但没有得到任何方向/路线的示例。我还搜索了各种网站和论坛,但找不到任何解决方案。如果有人知道如何做到这一点,请帮助我。
i want to add route direction on my iphone native apps. i tried google api v3 but it dont work on offline. i also tried route-me-map but did not get any example of direction/route .I also searched various websites and forums, but I could not found any solutions. Please help me if anyone knows how to do this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许你可以看看 http://developers.cloudmade.com/projects/show/ iphone-sdk
他们提供了地图+路由 API,并且带有 Open Street Map ;)
Maybe you can have a look at http://developers.cloudmade.com/projects/show/iphone-sdk
They offer a mapping+routing api and it's with Open Street Map ;)
我认为最好的方法是使用谷歌的网络服务并将点绘制为地图视图的折线。我正在使用
http://maps.google.com/maps?f=d&hl=en&saddr=%lf,%lf&daddr=%lf,%lf&ie=UTF8&0&om= 0&输出=kml
Web 服务并在 mapView 上将路线绘制为折线。
I think the best way is using web service from google and draw the points as poly lines to the mapview. I am using
http://maps.google.com/maps?f=d&hl=en&saddr=%lf,%lf&daddr=%lf,%lf&ie=UTF8&0&om=0&output=kml
web service and draw the routes over mapView as poly lines.