在我的iphone应用程序中,我获得了当前位置的纬度和经度。但我想绘制一个以经度和经度为点的折线图。这有可能吗?
答案 0 :(得分:4)
试试这个:
CLLocationCoordinate2D coord = CLLocationCoordinate2DMake(latitudeInFloat, longitudeInFloat);
MKMapPoint point = MKMapPointForCoordinate(coord);
NSLog(@"x is %i and y is %i",point.x,point.y);