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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:43:19+00:00 2026-06-15T18:43:19+00:00

I wondered if it is possible to create navigation route within MKMapView on iOS

  • 0

I wondered if it is possible to create navigation route within MKMapView on iOS 6 instead of opening the built-in Maps application?
I googled it but didn’t find any answer.

This is the code I’m using now (that is opening the built-in Maps app):

-(IBAction) navigation
{
    if (SYSTEM_VERSION_LESS_THAN(@"6.0"))
    {
        NSString *destinationString = @"Afek, Israel";
        NSString *url = [NSString stringWithFormat: @"http://maps.google.com/maps?saddr=%f,%f&daddr=%@",wedMapView.userLocation.coordinate.latitude,wedMapView.userLocation.coordinate.longitude, destinationString];
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
    }

    else
    {
        Class mapItemClass = [MKMapItem class];
        if (mapItemClass && [mapItemClass respondsToSelector:@selector(openMapsWithItems:launchOptions:)])
        {
            double latitude = 32.83431728836292;
            double longitude = 35.128666162490845;
            MKPlacemark *placemark = [[[MKPlacemark alloc] initWithCoordinate:CLLocationCoordinate2DMake(latitude, longitude) addressDictionary:nil] autorelease];
            //[mapItem setName:@"Name of your location"];

            // Create a map item for the geocoded address to pass to Maps app
            MKMapItem *mapItem = [[MKMapItem alloc] initWithPlacemark:placemark];
            [mapItem setName:@"שמורתה, קיבוץ אפק"];

            // Set the directions mode to "Driving"
            // Can use MKLaunchOptionsDirectionsModeWalking instead
            NSDictionary *launchOptions = @{MKLaunchOptionsDirectionsModeKey : MKLaunchOptionsDirectionsModeDriving};

            // Get the "Current User Location" MKMapItem
            MKMapItem *currentLocationMapItem = [MKMapItem mapItemForCurrentLocation];

            // Pass the current location and destination map items to the Maps app
            // Set the direction mode in the launchOptions dictionary
            [MKMapItem openMapsWithItems:@[currentLocationMapItem, mapItem] launchOptions:launchOptions];
        };
    }
}  

And this is the MKMapView I Have that I want to make turn by turn route when I press the blue map button (above the Waze button):

MKMapView

Thanks for the help.

  • 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-15T18:43:20+00:00Added an answer on June 15, 2026 at 6:43 pm

    iOS 6 does not provide the app with directions, it relies on the built-in Maps app to do that. So if you want to show directions with in your app you’ll need to find a service for calculating the route. You can’t use Google because they only allow you to use their data on their maps, not on Apple’s. You could look into CloudMade and OpenStreetMap, but you’d have to give up using iOS 6’s maps for that. They come with their open UI components.

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

Sidebar

Related Questions

I can set up an autofilter using pyWin32, but I wondered if it's possible
Wondered if anyone can tell me whether the following is possible within views. I
I am new to MDX and wondered if it is possible to create a
I wondered if it was possible to create a templatized getter, such as :
I just wondered if it would be possible to create a small, simple jpg,
I've been evaluating django and wondered if the following is possible. I've already looked
I'm wondered is it possible to debug .net embedded js files in WebStorm? Because,
I wondered about if it's possible to add two or more complete functions to
I just wondered whether it's possible to match against the same values for multiple
I have using .on() in jQuery 1.7 and wondered whether it is possible to

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.