I'm trying to solve this assignment and it's taking too much time:
Here's my try, it's just a snippet of my code:
final double RADIUS = 6371.01;
double temp = Math.cos(Math.toRadians(latA))
* Math.cos(Math.toRadians(latB))
* Math.cos(Math.toRadians((latB) - (latA)))
+ Math.sin(Math.toRadians(latA))
* Math.sin(Math.toRadians(latB));
return temp * RADIUS * Math.PI / 180;
I am using this formulae to get the latitude and longitude: x = Deg + (Min + Sec / 60) / 60)
I would like to say that I have no idea what I am doing, I just wanna finish this part so I can concentrate on the rest.
Thanks