Key Words: Google Map, iOS6, rout map
How to show rout map in iOS6
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:@"https://maps.google.com/maps?saddr=delhi& daddr=noida"];
NSURL *mapURL=[NSURL URLWithString:mapStr];
NSURLRequest *mapReq=[NSURLRequest requestWithURL:mapURL];
[webView loadRequest:mapReq];
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.
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
ReplyDelete