in My iPhone App How Can I show directions from current location to End Point?
is there any built in component or facility available on iphone which can show maps and direction using GPS and built in compass?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you mean taking the user to the maps application based on two points, then you can do it like this:
NSURL *URL = [NSURL URLWithString:@"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f"];You plug in your starting address and destination (in lat. and long.) appropriately.
[[UIApplication sharedApplication] openURL:URL];It should take you to the maps application automatically!