Sunday, December 30, 2012

How to show rout map in iOS6

Key Words: Google Map, iOS6, rout map

              How to show rout map in iOS6

Get contacts of all your emergency needs on single tap. Download Quick-Finder for iPhone

1) Take a web view where do you want to show the map.

2) Let you want to show the rout between Delhi(India) to Noida(India).

   You need to write following code of lines
   NSString *mapStr=[NSString stringWithFormat:@"   daddr=noida"];
    NSURL *mapURL=[NSURL URLWithString:mapStr];
    NSURLRequest *mapReq=[NSURLRequest requestWithURL:mapURL];
    [webView loadRequest:mapReq]; 

If you know the lattitude and longitude of given places you can use pair of (lat, long) instead of name of places.

1 comment:

  1. This is a good site but the theme is not so attractive. I'd seen some dark themes that are inbuilt in the blogger. Admin should consider these themes