1

2点間のルートを描くメソッドを実装したのですが、ルートが外れてしまいました。どうすれば道路だけでルートを描くことができますか?

coordinateArray[0] = CLLocationCoordinate2DMake(appDelegate.latitude, appDelegate.longitude);
coordinateArray[1] = CLLocationCoordinate2DMake(appDelegate.latitude2, appDelegate.longitude2); 

self.routeLine = [MKPolyline polylineWithCoordinates:coordinateArray count:2];
[self.myMapView setVisibleMapRect:[self.routeLine boundingMapRect]]; 
[self.myMapView addOverlay:self.routeLine];
4

1 に答える 1

0

これは非常に役に立ちました((:MKPolyline with Google Maps API https://github.com/Surya121/SBMapWithRoute

于 2013-01-09T16:07:00.307 に答える