1
我有一个固定的经度和纬度,所以我使用它并在pinview中使用mapview。现在我想要当前位置和绘制路线,所以我认为使用GPS我可以获得经纬度。使用这个位置(纬度&经度),我必须绘制一条具有我的固定值(纬度&经度)的路线。这怎么可能..?这是做到这一点的正确方法吗? ?如何绘制两点的路线..?全球定位系统(GPS)并绘制iPhone中的MapRoutet
我已经使用了委托方法,但它不叫,
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation
{
[manager stopUpdatingHeading];
NSLog(@"latitude=%f",newLocation.coordinate.latitude);
NSLog(@"longitude=%f",newLocation.coordinate.longitude);
}