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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With