Add getters

This commit is contained in:
Matthias Beyer 2017-09-21 17:28:13 +02:00
parent 0efffdbea3
commit f5d5e3c9c3

View file

@ -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 {