convert latitude and longitude into x and y cordinates [duplicate]
Possible Duplicate:
Longitude, Latitude to XY coordinate conversion
In my iphone application i am getting latitude and longitude of my current place.But I want to draw a line graph taking these latitude and longitude as points.How this is possible??
Try this:
CLLocationCoordinate2D coord = CLLocationCoordinate2DMake(latitudeInFloat, longitudeInFloat);
MKMapPoint point = MKMapPointForCoordinate(coord);
NSLog(@"x is %i and y is %i",point.x,point.y);
精彩评论