Created
April 28, 2013 04:53
-
-
Save NikolaKirev/5475940 to your computer and use it in GitHub Desktop.
iOS5 Map Directions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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