0

Out アプリケーションは、マップ上の住所を見つけるために Apple マップを呼び出します。これは、マップに住所を送信する方法です。

http://maps.apple.com/?q=1858 East Pike Street,(Old Route 50),Clarksburg,WV 26302 (Harry Green Chevrolet)&ll=39.278,-80.299 

つまり、データが見つかりませんエラーです! しかし、同じ場所がGoogleマップで見つかりました 言及された場所がAppleマップでどのように見つかるか教えてください よろしくお願いします

4

1 に答える 1

0

最初に、スタンドアロンの Apple Maps アプリが、入力された住所を実際に認識できるかどうかをテストします。そうでない場合は、何がサービスを混乱させているのかがわかるまで、スタンドアロン アプリで遊んでください。Google は以前からサービスをホストしており、検索会社でもあります。Google の専門知識に高度な言語処理が含まれているのは当然のことです。

2 つ目の注意として、マップを開くために新しい iOS 6 API を使用することもお勧めします。これは、座標からルーティングを行う方法です。

// if you know the coordinates:
MKPlacemark * srcPlacemark = 
    [[[MKPlacemark alloc] initWithCoordinate:src 
                           addressDictionary:[NSDictionary dictionary]] autorelease];
MKMapItem * srcObj = [[[MKMapItem alloc] initWithPlacemark:srcPlacemark] autorelease];
// alternatively, if you want to use "user's current location":
// MKMapItem * srcObj = [MKMapItem mapItemForCurrentLocation];

// if you know the address:
NSDictionary * dstDict = [NSDictionary dictionaryWithObjectsAndKeys:
                          self.addressLabel.text, kABPersonAddressStreetKey,
                          self.city ? self.city : @"", kABPersonAddressCityKey,
                          self.country ? self.country : @"", kABPersonAddressCountryKey,
                          nil];
MKPlacemark * dstPlacemark = [[[MKPlacemark alloc] initWithCoordinate:dst addressDictionary:dstDict] autorelease];
MKMapItem * dstObj = [[[MKMapItem alloc] initWithPlacemark:dstPlacemark] autorelease];

return [MKMapItem openMapsWithItems:[NSArray arrayWithObjects:srcObj, dstObj, nil] 
                      launchOptions:[NSDictionary dictionaryWithObject:MKLaunchOptionsDirectionsModeDriving 
                                                                forKey:MKLaunchOptionsDirectionsModeKey]];
于 2013-05-28T10:53:37.907 に答える