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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:33:24+00:00 2026-06-10T07:33:24+00:00

I am developing an iOS app . Within this app i have a type

  • 0

I am developing an iOS app . Within this app i have a type of view which among other information presents a MKMapView map to the currently selected company store; the store’s location is plotted on the map through a pin. The pin has a customized MKAnnotationView, in which i have added a detail disclosure button. What i want to do is when the user presses the button, to present a popover with some choices – like go to the website of that specific store.

One of the options that i want to implement there is to navigate from the user’s current location to the location of the store. What i want the application to do is present an obtion which should say smith. like “Navigate to location” , which when clicked opens GoogleMaps, selects the navigate to location options, selects CurrentLocation as “Start” and the store’s location stored in the pin’ coordinates as “End”. Can this be done , because i haven’t found a solution to this ? If so, how???

  • 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-10T07:33:25+00:00Added an answer on June 10, 2026 at 7:33 am

    I did it with this code:

    - (void) openBrowser:(id)sender
    { 
        NSString *launchUrl=@"";
        launchUrl= [launchUrl stringByAppendingString:@"http://maps.google.com/maps?daddr="];
        NSString *tmpLat = [[NSString alloc] initWithFormat:@"%g", self.newRegion.center.latitude];
        NSString *tmpLong = [[NSString alloc] initWithFormat:@"%g", self.newRegion.center.longitude];
        NSString *llat=[tmpLat stringByAppendingString:[@"," stringByAppendingString:tmpLong]];
        launchUrl=[@"http://maps.google.com/maps?daddr=" stringByAppendingString:llat];
        launchUrl=[launchUrl stringByAppendingString:[@"&saddr=" stringByAppendingString:@"Current Location"]];
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[launchUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]];
    }
    

    openBrowser is a method I call with the detail disclosure button.
    I found the urls that point to maps.google.com are handled by default by the google maps app installed on the phone;
    for directions from point A to point B the url must be something like:

    http://maps.google.com/maps?daddr=whatever&saddr=whatever

    daddr= Destination

    saddr= Source

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

Sidebar

Related Questions

I have an iOS app which I am developing, this app has videos which
I'm developing an iOS app using Core Plot headers. I have different UI for
I'm developing an iOS app with XCode 4.2 and latest SDK. I have added
I am developing an iOS app using XCode 4.2 I have a UIImage variable
I'm developing a native mobile app for Android and iOS using PhoneGap.I have a
I am a real n00b in developing iOS app. This is my first application
I'm currently developing an iOS app and have reached the point where I need
Developing ios app. I have an object class Product.h and .m respectively along with
I'm developing an iOS App and I want to make a table view, but
I've developing my first iOS app which allows users to login to an account

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.