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 6897913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:13:45+00:00 2026-05-27T07:13:45+00:00

Hi I have an iPhone application using maps and locations. I would like the

  • 0

Hi I have an iPhone application using maps and locations.

I would like the user to be able to press a button that gives turn by turn directions to that location. I understand that i am not allowed to do this in app, but i was wondering if anyone could tell me if it is possible to make a link to the native google maps application that will enter directions to the location from the users current location.

If it is possible could you also tell me how?

any help would be appreciated.

Thanks

  • 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-05-27T07:13:46+00:00Added an answer on May 27, 2026 at 7:13 am

    Sure, it’s possible – you’ve just got to tell the system to open a google maps link, with parameters for the start and end address set.

    You might want to try using the following google maps URL:

    http://maps.google.com/maps?saddr=x,y&daddr=x,y

    So you can see the two parameters are saddr (start address) and
    daddr (destination address). You set these to a pair of coordinates, separated by a comma.

    Here is a bit of code I wrote that will take the user from their current location to a specific location (hardcoded in my case).

    This is the core location delegate method which is called once their location has been established.

    - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation {
        if (newLocation.horizontalAccuracy == oldLocation.horizontalAccuracy) {
            [self.locationManager stopUpdatingLocation];
            CLLocationCoordinate2D coords = newLocation.coordinate;
            NSString *stringURL = [NSString stringWithFormat:@"http://maps.google.com/maps?saddr=%g,%g&daddr=50.967222,-2.153611", coords.latitude, coords.longitude];
            NSURL *url = [NSURL URLWithString:stringURL];
            [[UIApplication sharedApplication] openURL:url];
        }
    }
    

    To set this all up, you could add a property of a location manager to your controller, and then when you want to set it up (say in viewDidLoad) intialise it like this:

    self.locationManager = [[CLLocationManager alloc] init];
    self.locationManager.delegate = self;
    [self.locationManager startUpdatingLocation];
    

    Calling [[UIApplication sharedApplication] openUrl:url]; will send it to the system’s URL handler, which will detect it’s a google maps link, and open it up in maps.

    Hope that helps

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

Sidebar

Related Questions

I have an iPhone application using UINavigationController and would like to customize the elements
I have converted an iPhone application using the wizard like thing in XCode into
I have developed a small iPhone application by using singleton that I use to
I have an iPhone application that is mostly using standard controls. There is one
I am using iPhone native maps to my application. I have a set of
I have an iPhone application that's using Navigation Controller to display the top bar
Can User follow up on twitter using iphone application. I have done the functionality
I have recently started creating an iPhone application using Appcelerator's Titanium. Since the application
How can I self-sign an iPhone application using Xcode? I have done the following:
Anyone have idea how to pass value from iPhone application to the REST-Webservice using

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.