Show route between current and desired location on iPhone MapView

前端 未结 3 1742
说谎
说谎 2020-12-28 11:24

I want to show a route on a MKMapView between the current location and a desired location as an annotation.

What is the best way to do this?

3条回答
  •  再見小時候
    2020-12-28 11:55

    You have to compute your self the way points and draw the route as a layer. The is no public api to show route in a MKMapView.

    The fastest solution is to open maps app of the phone with the route.

提交回复
热议问题