0

I am trying to find how to provide directions to a certain location using the in app MapView. I want my app to pull the users current location(which I have accomplished), then I want the MapView to use that information to provide turn by turn directions to a certain destination. Is this even possible with iOS SDK 6.0 and xcode 4.5?

1 Answers1

0

U can Use Google Directional Map api .simply Implement

CLLocationCoordinate2D coordinate = CLLocationCoordinate2DMake([_iLat doubleValue],[_iLong    doubleValue]);


 MKPlacemark* placeMark = [[MKPlacemark alloc] initWithCoordinate:coordinate  addressDictionary:nil];
 MKMapItem *destination =  [[MKMapItem alloc] initWithPlacemark:placeMark];

 if([destination respondsToSelector:@selector(openInMapsWithLaunchOptions:)])
{
    //using iOS6 native maps app
    [destination openInMapsWithLaunchOptions:@{MKLaunchOptionsDirectionsModeKey:MKLaunchOptionsDirectionsModeDriving}];

}
Bajaj
  • 859
  • 7
  • 17