ios - how to get the details of route direction in MKMapview -


i want direction route detail in mkmapview. mentioned 1 sample url below. likewise want don't want go next url. please help, if know. possible or not in ios?

 cllocationcoordinate2d start = { (37.785834), (-122.406417) };  cllocationcoordinate2d end = { (48.922499), (-125.507813) };   nsstring *googlemapsurlstring = [nsstring stringwithformat:@"http://maps.google.com/?saddr=%1.6f,%1.6f&daddr=%1.6f,%1.6f", start.latitude, start.longitude, end.latitude, end.longitude];   [[uiapplication sharedapplication] openurl:[nsurl urlwithstring:googlemapsurlstring]]; 

i think may route start end point..

in viewcontroller.m file use code..

- (void)viewdidload {     [super viewdidload];      mapview* mapview = [[[mapview alloc] initwithframe:                          cgrectmake(0, 0, self.view.frame.size.width, self.view.frame.size.height)] autorelease];      [self.view addsubview:mapview];      place* home = [[[place alloc] init] autorelease];     home.name = @"home";     home.description = @"sweet home";     home.latitude = 37.785834;     home.longitude = -122.406417;      place* office = [[[place alloc] init] autorelease];     office.name = @"office";     office.description = @"bad office";     office.latitude = 48.922499;     office.longitude = -125.507813;       [mapview showroutefrom:home to:office]; } 

for more detail see code @ site.. http://code.google.com/p/ashiphone/downloads/detail?name=mapwithroutes.zip&can=2&q=

if problem solved otherwise feel free ask..


Comments