21 double temp1 = sin(delta_latitude *
PI / 360.0) * sin(delta_latitude *
PI / 360.0) +
23 sin(delta_longitude *
PI / 360.0) * sin(delta_longitude *
PI / 360.0);
25 double temp2 = 2.0 * asin(min(1.0, sqrt(temp1)));
27 return earth_radius * temp2;
33 while (latitude > 270) {
37 while (latitude < -270) {
41 while (longitude > 180) {
45 while (longitude < -180) {
49 if (latitude < -90.0) {
63 if (longitude < -180.0) {
67 if (longitude > 180) {
73 convertToRegularCoordinates(latitude, longitude);
Time Dependent Person DataType.
void convertToRegularCoordinates(double &latitude, double &longitude) const
double getDistance(const GeoCoordinate &coord1, const GeoCoordinate &coord2) const
static const GeoCoordCalculator & getInstance()
Singleton pattern.