in my app in ios 5 i have a button name show in map
forexample in a store detail view there is a showinmap button and this button goes to maps.google to show the user's current direction and the store direction and also it draws a line between these direction about how to go there
this was my method:
NSString* url = [NSString stringWithFormat: @"http://maps.google.com/maps?saddr=Current+Location&daddr=%@,%@",lonlocation,latlocation];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: url]];
but in ios 6 as you know there is no google maps app. instead of that there is apple's new map app.
now my problem is how can i change my code to do the same job with apple map app in ios6 versions?