Reputation: 257
I want to display point to point route between two points on map with in my app. I am using MKDirectionsRequest
for this.I am trying to find route between pune to mumbai.I am getting an error as a response.
Error message :
Error Domain=MKErrorDomain Code=5 "Directions Not Available" UserInfo=0x9d80dd0 {
NSLocalizedFailureReason=A route to the nearest road cannot be determined., NSLocalizedDescription=Directions Not Available, MKDirectionsErrorCode=6, MKErrorGEOError=-403
}
Is MKDirectionsRequest
for showing route on Maps app only?
How can I find point to point route between two points in iOS7 without using Google API or any routing app?
Can you please help me out regarding the same. Looking forward for any reference link or sample code from your end.
Thanks
Upvotes: 7
Views: 8110
Reputation: 228
Apple map directions feature available countries list is in this link.
Please check the link before implement the directions.
Upvotes: 6
Reputation: 257
Finally i found solution of my question. MKDirectionsRequest is the right api to find route between two points. It seems Apple has not added route feature for India yet. I tried for other country and it worked for me.
Upvotes: 17