2016-06-22 3 views
3

が私のコードです:マップビューの2つの場所のMapkitルートは、インドの緯度と長距離では動作しませんか?ここ

ワーキング:

CLLocationCoordinate2D sourceCoords = CLLocationCoordinate2DMake(37.7833, -122.4167);//san fransisco 
MKPlacemark *sourcePlacemark = [[MKPlacemark alloc] initWithCoordinate:sourceCoords addressDictionary:nil]; 
MKMapItem *source = [[MKMapItem alloc] initWithPlacemark:sourcePlacemark]; 

// Make the destination location 
CLLocationCoordinate2D destinationCoords = CLLocationCoordinate2DMake(34.0500, -118.2500);//los angeles 
MKPlacemark *destinationPlacemark = [[MKPlacemark alloc] initWithCoordinate:destinationCoords addressDictionary:nil]; 
MKMapItem *destination = [[MKMapItem alloc] initWithPlacemark:destinationPlacemark]; 

NotWorking:

CLLocationCoordinate2D sourceCoords = CLLocationCoordinate2DMake(13.0441, +80.1831); 
MKPlacemark *sourcePlacemark = [[MKPlacemark alloc] initWithCoordinate:sourceCoords addressDictionary:nil]; 
MKMapItem *source = [[MKMapItem alloc] initWithPlacemark:sourcePlacemark]; 


Make the destination location CLLocationCoordinate2D destinationCoords = CLLocationCoordinate2DMake(13.0545, +80.2114); 
MKPlacemark *destinationPlacemark = [[MKPlacemark alloc] initWithCoordinate:destinationCoords addressDictionary:nil]; 
MKMapItem *destination = [[MKMapItem alloc] initWithPlacemark:destinationPlacemark]; 

のMapViewに表示されていないポリライン。

答えて

4

アップルマップはインドの指示に対応していません。あなたはインドでの道順にGoogle Mapsを使用する必要があります。 you can check map feature availability here

+0

ありがとうございました.......... – ragu

+0

私たちがサポートリストにもないパキスタンの方向を実装していれば、米国の方向性の仕事でクライアントにビルドを送るかどうか? –

+0

@SyedQamarAbbasはいそうです。 – ivarun

関連する問題