如何在iPhone中绘制两个地点之间的路线?
如何使用 iOS 4.0 在 MapView 中绘制两个位置之间的路线?有人可以解释一下吗?
How can we draw the routes between two locations in MapView using the iOS 4.0? Can some one shed light on it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现使用 MKOverlayPathView 和 MKPolyLine 和 MKPolyLineView 我们可以在 Mapview 中绘制路线。
I found that using the MKOverlayPathView and MKPolyLine and MKPolyLineView we can draw routes in Mapview.
找到适合您的路径查找算法。 A-star 算法可能是一个值得推荐用于此目的的算法。
Find a path finding algorithm that works for you. The A-star algorithm is probably a good one to recommend for this purpose.