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

  • Home
  • SEARCH
  • 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 4001876
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:57:28+00:00 2026-05-20T07:57:28+00:00

I want to ask a user which GPS application he wants to use in

  • 0

I want to ask a user which GPS application he wants to use in order to take him to specific location.
I guess i have to check first which GPS apps are installed… How can i do that?
When user selects specific app, how can i activate it and tell it to route to specific destination?

  • 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-20T07:57:29+00:00Added an answer on May 20, 2026 at 7:57 am

    It lacks of resources, but it’s doable … Copy & paste of my old source code … Just replace Tip with something else. It’s simple class, which holds locLatitude and locLongitude values with some more details. TomTom isn’t supported, because I wasn’t able to find URL scheme for it. As I no longer need it, I didn’t try to search for it again.

    typedef enum {
        ExternalNavigationAppGoogleMaps,
        ExternalNavigationAppNavigon,
        ExternalNavigationAppTomTom
    } ExternalNavigationApp;
    
    + (BOOL)isSupported:(ExternalNavigationApp)navigationApp;
    + (BOOL)navigateTo:(Tip *)tip viaApp:(ExternalNavigationApp)navigationApp;
    + (BOOL)navigateTo:(Tip *)tip from:(CLLocationCoordinate2D)from viaApp:(ExternalNavigationApp)navigationApp;
    

    … implementation parts …

    + (NSString *)googleMapsUrl:(Tip *)tip from:(CLLocationCoordinate2D)from {  
        NSString *urlString = [NSString stringWithFormat:@"http://maps.google.com/maps?saddr=%1.6f,%1.6f&daddr=%1.6f,%1.6f",
                               from.latitude, from.longitude,
                               [tip.locLatitude floatValue], [tip.locLongitude floatValue]];
        return urlString;
    }
    
    + (NSString *)navigonAppUrl:(Tip *)tip {
        NSString *urlString = [NSString stringWithFormat:@"navigon://%@|%@||||||%f|%f",
                               [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleName"],
                               tip.name,
                               [tip.locLongitude floatValue],
                               [tip.locLatitude floatValue]];
    
        return urlString;
    }
    
    + (NSString *)tomtomAppUrl:(Tip *)tip {
        return nil;
    }
    
    + (NSURL *)urlForApp:(ExternalNavigationApp)navigationApp withTip:(Tip *)tip from:(CLLocationCoordinate2D)from {
        NSString *urlString = nil;
        if ( ExternalNavigationAppNavigon == navigationApp ) {
            urlString = [self navigonAppUrl:tip];
        } else if ( ExternalNavigationAppTomTom == navigationApp ) {
            urlString = [self tomtomAppUrl:tip];
        } else if ( ExternalNavigationAppGoogleMaps == navigationApp ) {
            urlString = [self googleMapsUrl:tip from:from];
        }
    
        if ( urlString == nil )
            return nil;
    
        return [NSURL URLWithString:[urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
    }
    
    + (BOOL)isSupported:(ExternalNavigationApp)navigationApp {
        CLLocationCoordinate2D coord;
        NSURL *url = [self urlForApp:navigationApp withTip:nil from:coord];
    
        if ( url == nil )
            return NO;
    
        return [[UIApplication sharedApplication]canOpenURL:url];
    }
    
    + (BOOL)navigateTo:(Tip *)tip viaApp:(ExternalNavigationApp)navigationApp {
        CLLocationCoordinate2D coord;
        NSURL *url = [self urlForApp:navigationApp withTip:tip from:coord];
    
        if ( url == nil )
            return NO;
    
        return [[UIApplication sharedApplication] openURL:url]; 
    }
    
    + (BOOL)navigateTo:(Tip *)tip from:(CLLocationCoordinate2D)from viaApp:(ExternalNavigationApp)navigationApp {
        NSURL *url = [self urlForApp:navigationApp withTip:tip from:from];
    
        if ( url == nil )
            return NO;
    
        return [[UIApplication sharedApplication] openURL:url]; 
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my GWT application, I want to ask a user confirmation when he navigates
I want to ask a question about Java. I have a user-defined object class,
I have made a chat window in which user can ask for support on
I have a product database which I want to distribute to an iphone user
I want to make a program in C which will ask the user to
I want to ask the user before closing the application. I'm using C# .NET
I have user information which I need to use in different places on the
I have a question game in which I ask the user some questions and
want to ask user to input something but not want to wait forever. There
Alright so in Java I want to ask the user for a time in

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.