Skip to content

Instantly share code, notes, and snippets.

@NikolaKirev
Created April 28, 2013 04:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NikolaKirev/5475940 to your computer and use it in GitHub Desktop.
Save NikolaKirev/5475940 to your computer and use it in GitHub Desktop.
iOS5 Map Directions
NSString *url = [NSString stringWithFormat: @"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f",
currentLocation.coordinate.latitude,
currentLocation.coordinate.longitude,
[destionationObject.latitude doubleValue],
[destionationObject.longitude doubleValue]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment