Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8225465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:25:39+00:00 2026-06-07T15:25:39+00:00

NSString *url = [NSString stringWithFormat: @http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f, currentLocation.latitude, currentLocation.longitude, coordinate.latitude, coordinate.longitude]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];

  • 0
NSString *url = [NSString stringWithFormat: @"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f", currentLocation.latitude, currentLocation.longitude, coordinate.latitude, coordinate.longitude];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];

I am trying open Maps application on iPhone from my application to show direction between two location. But, it is showing written directions in safari from google rather than opening maps application. Can anybody help me out.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T15:25:40+00:00Added an answer on June 7, 2026 at 3:25 pm

    You can launch other apps from your app. However, maps should respond to the http://maps.google.com schema. Typically, http://maps.google.com/ should launch the Maps application but I’m not sure why it is not.

    Maps also supports maps:// and mapitem:// URL Schemes.

    Update

    The iOS Simulator does not have the Maps app, so obviously this isn’t going to work in the simulator. Works as expected on a physical device though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

NSString *urlString = [NSString stringWithFormat:@http://maps.google.com/maps/geo?q=%@&output=csv, [temp stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]]; DLog(@urlString:%@,urlString); //http://maps.google.com/maps/geo?q=Kebon%20Jeruk,Jakarta&output=csv NSURL * Url= [NSURL URLWithString:urlString];
NSString *soundURL = [NSString stringWithFormat:@http://translate.google.com/translate_tts?q=%@&tl=%@,strTextOfFilter,strCodeOfLanguage]; NSLog(@URL : %@,soundURL); this show: http://translate.google.com/translate_tts?q=%E4%BD%A0%E5%A5%BD&tl=zh-TW copy url to
NSString *urlString =[NSString stringWithFormat:@http://api.stackoverflow.com/1.0/questions?tagged=iphone & key=%d,key1]; NSURL *url = [NSURL URLWithString:urlString]; NSMutableURLRequest *request =
I implemented the following code: NSURL *url = [ NSURL URLWithString:[ NSString stringWithFormat: @http://www.google.com/search?q=%@,
-(void)loadWebAdress:(NSString*)textAdress { [UIApplication sharedApplication].networkActivityIndicatorVisible = YES; adressurl=[NSString stringWithFormat:@http://%@, textAdress]; NSURL *url=[NSURL URLWithString:adressurl]; NSURLRequest *requestObj=[NSURLRequest
I have a NSURLRequest created next way: NSString *url=[NSString stringWithFormat:@http://myserveradress.com/api/users/register?register_password=%@&register_password_confirm=%@&register_email=%@&register_terms=1&register_user=%@&process_registration=1&register_name=%@ , [password stringByReplacingOccurrencesOfString:@ withString:@%],[confirm
Ok this is annoying me. I have the following code: weatherAddress = [NSString stringWithFormat:@http://google.com];
I need to get the contents from this URL http://google.fr/ok in a NSString can
I have the following NSString: NSString* searchURL = [NSString stringWithFormat:@http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22%@%22)%0A%09%09&format=json&env=http%3A%2F%2Fdatatables.org%2Falltables.env&callback=,symbol]; NSLog(@URL IS: %@, searchURL);
My code is like this : NSString *urlStr = [NSString stringWithFormat:@https://xxx.xxx.xx.xx/Pages/Service/FMService.svc/FileAudit?user=%@&pass=%@&fileId=%d&isAudited=1&opinion=%@,appDelegate.user.userName,appDelegate.user.password,self.todo.fileId,self.opinion]; NSLog(@URL=%@,urlStr); NSURL *url

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.