to convert co-ordinates to CGPoint
, use below method
CGPoint point = [mapView convertCoordinate:location toPointToView:overlayView];
here location is CLLocationCoordinate2D
object which has map latitude
and longitude
and overlayView
is a view where you need to draw the polylines.