-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLoc.java
More file actions
41 lines (33 loc) · 805 Bytes
/
Loc.java
File metadata and controls
41 lines (33 loc) · 805 Bytes
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
package com.example.lenovo.employeetrackingsystem;
import com.google.firebase.database.Exclude;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Lenovo on 19-11-2017.
*/
class Loc {
double lat;
double lng;
Loc()
{
this.lat=lat;
this.lng=lng;
}
public double getLat() {
return lat;
}
public double getLng(){ return lng;}
public void setLat(double lat) {
this.lat = lat;
}
public void setLng(double lng) {
this.lng = lng;
}
@Exclude
public Map<String, Object> toLMap() {
HashMap<String, Object> location = new HashMap<>();
location.put("Latitude", lat);
location.put("Longitude", lng);
return location;
}
}