Reputation: 736
Hi there am using the Map Kit, i did add several points based on Lat & long Data, so far, it's all good. I Did try to implement the MKDirections methods but i get this response: A route to the destination from its nearest road cannot be determined, NSLocalizedDescription=Directions Not Available, MKDirectionsErrorCode=7, MKErrorGEOError=-403
My question is: If i somehow own the data of those routes between two points, is there a way to draw the route using the MapKit instead of asking apple to provide a route?
thanks in advance for your responses
Upvotes: 0
Views: 4579
Reputation: 28727
Yes, you can draw a polyline, if you know the sequence of lat,lon coordinates along the road from start to destination.
Apples BreadCrumbs demo code shows how to do that.
Upvotes: 1