4

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??

Community
  • 1
  • 1
Tinjzz
  • 87
  • 1
  • 1
  • 15
  • 1
    refer http://stackoverflow.com/questions/6186029/longitude-latitude-to-xy-coordinate-conversion http://stackoverflow.com/questions/609379/how-do-i-convert-coordinates-to-a-latitude-longitude – Nikunj Jadav Sep 26 '11 at 06:55
  • Thankyou for the link..But now also I am not clear about drawing line graph..:( – Tinjzz Sep 26 '11 at 08:35

1 Answers1

5

Try this:

CLLocationCoordinate2D coord = CLLocationCoordinate2DMake(latitudeInFloat, longitudeInFloat);
MKMapPoint point = MKMapPointForCoordinate(coord);
NSLog(@"x is %i and y is %i",point.x,point.y);
Saran
  • 6,274
  • 3
  • 39
  • 48