444 |
|
|
445 |
|
|
446 |
|
|
447 |
addr.visited = true; |
//addr.visited = true; |
448 |
if (addr.state == AddressState.NOT_CHANGED) { |
if (addr.state == AddressState.NOT_CHANGED) { |
449 |
if (addr.distributor == null) { |
if (addr.distributor == null) { |
450 |
addr.state = AddressState.OPENED; |
addr.state = AddressState.OPENED; |
469 |
if (entry.husnr == 999) { |
if (entry.husnr == 999) { |
470 |
return; |
return; |
471 |
} |
} |
472 |
|
if (entry.kommunekode == 0 || entry.vejkode == 0) { |
473 |
|
return; |
474 |
|
} |
475 |
|
if (entry.kommunekode < 100) { |
476 |
|
return; |
477 |
|
} |
478 |
|
if (Short.parseShort(Integer.toString(entry.gadeid).substring(0, 4)) != entry.postnr) { |
479 |
|
return; //gadeid / postnr mismatch |
480 |
|
} |
481 |
|
|
482 |
|
|
483 |
|
|
484 |
System.out.println("Opretter adresse ud fra " + entry); |
System.out.println("Opretter adresse ud fra " + entry); |
494 |
a.husnr = entry.husnr; |
a.husnr = entry.husnr; |
495 |
a.husnrbogstav = entry.litra; |
a.husnrbogstav = entry.litra; |
496 |
a.postnr = entry.postnr; |
a.postnr = entry.postnr; |
497 |
a.visited = true; |
//a.visited = true; |
498 |
|
|
499 |
if (entry.ugedage.mandag) { |
if (entry.ugedage.mandag) { |
500 |
a.ruteMandag = entry.rute; |
a.ruteMandag = entry.rute; |