I am trying to create a mathematical formula to convert meters to decimal degrees.
Reading this article Decimal Degrees, I thought this generic formula:
x = (Value_in_meter * 0.00001)/1.1132
But I know it is not 100% correct, I should use the other values according where is my point.
I am using Google Maps Api, so, how to discover if my point is at 23N/S, 45N/S or 67N/S?
Complementing
I did this function:
public static double convertMeterToDegrees(double meter, double latitude){
double quotient;
double degree = Math.floor(latitude);
double modDegree = Math.abs(degree);
if (modDegree == 0){
quotient = 1.1132;
} else if (modDegree <= 23){
quotient = 1.0247;
} else if (modDegree <= 45){
quotient = 0.7871;
} else {
quotient = 0.43496;
}
return (meter * 0.00001)/quotient;
}
Is it correct?