我想在MKMapview
. 我在下面提到了一个示例网址。同样我想要但不想去下一个 URL。请任何人帮助,如果你知道。在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]];