Add getters
This commit is contained in:
parent
0efffdbea3
commit
f5d5e3c9c3
1 changed files with 21 additions and 0 deletions
|
@ -49,6 +49,19 @@ impl GPSValue {
|
|||
seconds: s
|
||||
}
|
||||
}
|
||||
|
||||
pub fn degree(&self) -> i8 {
|
||||
self.degree
|
||||
}
|
||||
|
||||
pub fn minutes(&self) -> i8 {
|
||||
self.minutes
|
||||
}
|
||||
|
||||
pub fn seconds(&self) -> i8 {
|
||||
self.seconds
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -119,6 +132,14 @@ impl Coordinates {
|
|||
latitude: lat,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn longitude(&self) -> &GPSValue {
|
||||
&self.longitude
|
||||
}
|
||||
|
||||
pub fn latitude(&self) -> &GPSValue {
|
||||
&self.latitude
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<Value> for Coordinates {
|
||||
|
|
Loading…
Reference in a new issue