-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPosition.java
47 lines (38 loc) · 1014 Bytes
/
Position.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
package com.example.flament.lille1parc.appObjects;
/**
* Object representation of a position
* it contains longitude, latitude and address
*/
public class Position {
private int id;
private double longitude;
private double latitude;
private String address;
public Position(int id, double longitude, double latitude, String address) {
this.id = id;
this.longitude = longitude;
this.latitude = latitude;
this.address = address;
}
public void setId(int id) {
this.id = id;
}
public double getLongitude() {
return longitude;
}
public void setLongitude(double longitude) {
this.longitude = longitude;
}
public double getLatitude() {
return latitude;
}
public void setLatitude(double latitude) {
this.latitude = latitude;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
}