feat: add Coords class to store (lat, lon)
This commit is contained in:
parent
a56bc2eb81
commit
ddcf989bac
27
src/main/java/eirb/pg203/utils/Coords.java
Normal file
27
src/main/java/eirb/pg203/utils/Coords.java
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
package eirb.pg203.utils;
|
||||||
|
|
||||||
|
public class Coords {
|
||||||
|
private float lat;
|
||||||
|
private float lon;
|
||||||
|
|
||||||
|
public Coords(float lat, float lon) {
|
||||||
|
this.lat = lat;
|
||||||
|
this.lon = lon;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getLat() {
|
||||||
|
return lat;
|
||||||
|
}
|
||||||
|
|
||||||
|
public float getLon() {
|
||||||
|
return lon;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLat(float lat) {
|
||||||
|
this.lat = lat;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLon(float lon) {
|
||||||
|
this.lon = lon;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user