で方向ルートの詳細を取得したいMKMapview
。以下に 1 つのサンプル URL を示します。同様に、私は次の 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]];