--- dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/GeoPoint.java 2014/09/19 09:37:37 2221 +++ dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/GeoPoint.java 2014/09/20 11:02:26 2222 @@ -22,4 +22,19 @@ return 62.8 * Math.sqrt( 3.1 * (pwrLat + pwrLng) ); } + + + //Latitude (horizonal), longitude(vertical) so + // 1 degree latitude is ~ 111320 meters, since the distance between the horizonal lines is always the same + // 1 degree longitude is ~111320 meters at equator but gets shorter as we get closer to the poles. + // so 1 degree longitude is 64.5 km at denmarks southern point (gedser=54.55,11.95) + // and is 59.4km at northern point (skagen = 57.75,10.65) + + public static double kmToLatitude(double km) { + return km / 111.320 ; + } + + public static double kmToLongitude( double km) {//denne er kun ca + return km / 62.0; + } }