-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMapPoint.java
executable file
·56 lines (50 loc) · 1.11 KB
/
MapPoint.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import java.net.*;
import java.io.*;
import java.lang.*;
/**
* Point with id/lat/lon/ele attributes. MapPoint.invalidEle standsfor undefined elevation.
*
* @author Christoph Fuenfzig
* @version 1.0
*/
public class MapPoint {
private int id;
private double lat;
private double lon;
private double ele;
static public double invalidEle = -1.79769313486231E+308;
public MapPoint () {
}
public MapPoint (double lat, double lon) {
this.lat = lat;
this.lon = lon;
}
public void setId(int id) {
this.id = id;
}
public void setLat (double lat) {
this.lat = lat;
}
public void setLon (double lon) {
this.lon = lon;
}
public void setEle (double ele) {
this.ele = ele;
}
public int getId() {
return this.id;
}
public double getLat () {
return this.lat;
}
public double getLon () {
return this.lon;
}
public double getEle () {
return this.ele;
}
@Override
public String toString() {
return "[[" + this.id + "] ["+ this.lat + ", " + this.lon + ", " + this.ele + " ]]";
}
}