/[projects]/dao/FuldDaekningWorker/src/main/java/dk/daoas/fulddaekning/Adresse.java
ViewVC logotype

Diff of /dao/FuldDaekningWorker/src/main/java/dk/daoas/fulddaekning/Adresse.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2744 by torben, Wed Oct 7 19:32:00 2015 UTC revision 2747 by torben, Wed Oct 7 20:14:10 2015 UTC
# Line 1  Line 1 
1  package dk.daoas.fulddaekning;  package dk.daoas.fulddaekning;
2    
 import com.jwetherell.algorithms.data_structures.KdTree;  
3    
4  public class Adresse extends KdTree.XYZPoint {  public class Adresse {
5          public int id;          public int id;
6          public short postnr;          public short postnr;
7          public String vejnavn;          public String vejnavn;
# Line 17  public class Adresse extends KdTree.XYZP Line 16  public class Adresse extends KdTree.XYZP
16                    
17          public double xyz[] = new double[3];          public double xyz[] = new double[3];
18                    
19          public Adresse(Double latitude, Double longitude) {          public Adresse(double latitude, double longitude) {
                 super(latitude, longitude);  
20                                    
21                  this.latitude = latitude;                  this.latitude = latitude;
22                  this.longitude = longitude;                  this.longitude = longitude;
# Line 35  public class Adresse extends KdTree.XYZP Line 33  public class Adresse extends KdTree.XYZP
33                  return "Adresse id=" + id+ " postnr=" + postnr + " adresse=" + vejnavn + " " + husnr + husnrbogstav + " ho=" + ho;                  return "Adresse id=" + id+ " postnr=" + postnr + " adresse=" + vejnavn + " " + husnr + husnrbogstav + " ho=" + ho;
34          }          }
35                    
36            public String getPosString() {
37                    return "" + latitude + ", " + longitude + "   " + xyz[0] + "/" + xyz[1] + "/" + xyz[2];
38            }
39            
40  }  }

Legend:
Removed from v.2744  
changed lines
  Added in v.2747

  ViewVC Help
Powered by ViewVC 1.1.20