Oh.. 20626.4806247096 radians in a circle. So distance factor must be (11699*1000)*57.2957795131
I corrected line 6, cut in paste issue ha. I know the signs are not all bunched up in one 1 meter pile. Which leads me to think something is wrong with lines with:
X1 = (cos(y1) * sin(x1))
Y1 = sin(y1)
'----------------------------'
X2 = (cos(y2) * sin(x2))
Y2 = sin(y2)
' distance = sqr((((X1-X2)^2)+((Y1-Y2)^2)))