This is a followup to this question.
I seem to be stuck on this. Basically, I need to be able to convert back and forth to referring to coordinates either in the st
Your conversion between km and radians is wrong. A nautical mile is 1/60th of a degree, so assuming that 1.15... is your conversion from miles to nautical miles, and 1.6... is your conversion from km to statute miles,
nm = km / (1.1515 * 1.609344);
deg = nm / 60;
rad = toRadians(deg);
In other words, I think you're off by a factor of 1000.