package dk.daoas.fulddaekning; import geocode.GeoPoint; public class Adresse extends GeoPoint { public int id; public short postnr; public String adresse; public int gadeid; public short husnr; public String husnrbogstav; public String rute; public short ho; public Adresse(Double latitude, Double longitude) { super(latitude, longitude); } @Override public String toString() { return "Adresse id=" + id+ " postnr=" + postnr + " adresse=" + adresse + " ho=" + ho; } @Override //Fra KDNodeComparator protected boolean isNodeCompatible(GeoPoint other) { if (! (other instanceof Adresse) ) { System.out.print("How the hell did this happen?"); System.exit(1); return false; } Adresse addr = (Adresse) other; return (this.ho == addr.ho); } }