--- android/TrainInfoService/src/dk/thoerup/traininfoservice/StationDAO.java 2010/10/01 05:30:32 1145 +++ android/TrainInfoService/src/dk/thoerup/traininfoservice/db/StationDAO.java 2011/04/04 10:56:44 1255 @@ -1,4 +1,4 @@ -package dk.thoerup.traininfoservice; +package dk.thoerup.traininfoservice.db; import java.sql.Array; import java.sql.Connection; @@ -165,7 +165,10 @@ return result; } - //the "hack" with max 0.4 degrees latitude and 0.75 degrees longitude is only valid since we only service danish trains, + //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. + // the "hack" with max 0.4 degrees latitude and 0.75 degrees longitude is only valid since we only service danish trains, // in denmark 0.4dg latitude ~ 44km, 0.75dg longitude ~ 47km // the ultra fast method (and only slightly inaccurate as long as we only cover a limited geographically area)