I made an application on mapview. so if you want to get the right path, you need to use KMLViewer or use GoogleMaps. In google maps you can do this code
NSString * urlstring = [NSString stringWithFormat: @ "http://maps.google.com/?saddr=%f,%f&daddr=
% F% F ", sourcelocation.latitude, sourcelocation.longitude, destinationlocation.latitude, Destin
ationlocation.longitude];
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:urlstring]];
source
share