How to draw route between two locations in iPhone?

后端 未结 2 572
青春惊慌失措
青春惊慌失措 2021-01-16 18:43

How can we draw the routes between two locations in MapView using the iOS 4.0? Can some one shed light on it?

相关标签:
2条回答
  • 2021-01-16 19:06

    Find a path finding algorithm that works for you. The A-star algorithm is probably a good one to recommend for this purpose.

    0 讨论(0)
  • 2021-01-16 19:24

    I found that using the MKOverlayPathView and MKPolyLine and MKPolyLineView we can draw routes in Mapview.

    0 讨论(0)
提交回复
热议问题