--- dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/LookupWorker.java 2014/09/11 08:13:32 2199 +++ dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/LookupWorker.java 2014/09/11 08:14:40 2200 @@ -19,6 +19,8 @@ @Override public void run() { + Constants consts = Constants.getInstance(); + ArrayList daekkede = lookup.getDaekkedeAdresser(); Queue queue = lookup.getQueue(); Database db = lookup.getDb(); @@ -45,7 +47,7 @@ if ( bedsteAdr != null) { - if (bedsteAfstand <= 6.0) { + if (bedsteAfstand <= consts.getMaxDistance() ) { //Gem kun hvis distancen er under max_distance for distributøren if (Lookup.verbose == true) { logger.info("(" +workerId + ") Bedste: " + qAdresse + "==>" + bedsteAdr + " ::: " + bedsteAfstand ); }