NSString* url = [NSString stringWithFormat: @"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f",currentLocation.coordinate.latitude,currentLocation.coordinate.longitude,
destLocation.coordinate.latitude, destLocation.coordinate.longitude];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: url]];
destLocation.coordinate.latitude, destLocation.coordinate.longitude];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: url]];
Dear Sir,
ReplyDeleteI want to get latitude and longitude from php side and show current location.
In iphone Google Map is already a default functionality to show current location
ReplyDeleteif you want to show it to webpage then
Create a URI like this one:
http://maps.google.com/?q=[lat],[long]