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; |
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; |
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 |
} |
} |