I want to draw route from current location to the destination location.
I am using the following code.
if ([[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"comgooglemaps://"]]) {
NSString *urlString = [NSString stringWithFormat:@"comgooglemaps://?saddr=%f,%f&daddr=%@,%@&directionsmode=driving",
appDelegate.myLocation.coordinate.latitude,
appDelegate.myLocation.coordinate.longitude,
self.objPlace.strLatitude,
self.objPlace.strLongitude];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: urlString]];
}
Result Image ---------------------------------- Expected Image
comgooglemaps://?saddr=23.033646,72.559139&daddr=23.033018,72.557025&directionsmode=driving
NOTE : I am asking for native google application not within the application
But it is not showing route?