title: How to open a apple maps application with directions from my ios application
body: <p>My aim is to open a map application from ios application with directions, I am able to open maps application but it is not showing directions, i have written the code as follows</p>
  
  <pre><code> NSString *mystr=[[NSString alloc] initWithFormat:@"http://maps.apple.com/maps?saddr=Current+Location&amp;daddr=Newyork"];
              NSURL *myurl=[[NSURL alloc] initWithString:mystr];
              [[UIApplication sharedApplication] openURL:myurl];
  </code></pre>
  
  <p>Can any one please help me how figure out how to pass parameters to this url and any other?</p>