pub struct GPSInfo {
pub latitude_ref: char,
pub latitude: LatLng,
pub longitude_ref: char,
pub longitude: LatLng,
pub altitude_ref: u8,
pub altitude: URational,
pub speed_ref: Option<char>,
pub speed: Option<URational>,
}
Expand description
Represents gps information stored in GPSInfo
subIFD.
Fields§
§latitude_ref: char
N, S
latitude: LatLng
degree, minute, second,
longitude_ref: char
E, W
longitude: LatLng
degree, minute, second,
altitude_ref: u8
0: Above Sea Level 1: Below Sea Level
altitude: URational
meters
speed_ref: Option<char>
Speed unit
- K: kilometers per hour
- M: miles per hour
- N: knots
speed: Option<URational>
Implementations§
Source§impl GPSInfo
impl GPSInfo
Sourcepub fn format_iso6709(&self) -> String
pub fn format_iso6709(&self) -> String
Returns an ISO 6709 geographic point location string such as
+48.8577+002.295/
.
Sourcepub fn to_iso6709(&self) -> String
👎Deprecated since 1.2.3: please use format_iso6709
instead
pub fn to_iso6709(&self) -> String
format_iso6709
insteadReturns an ISO 6709 geographic point location string such as
+48.8577+002.295/
.
Trait Implementations§
Source§impl From<ISO6709Coord> for GPSInfo
impl From<ISO6709Coord> for GPSInfo
Source§fn from(v: ISO6709Coord) -> Self
fn from(v: ISO6709Coord) -> Self
Converts to this type from the input type.
impl Eq for GPSInfo
impl StructuralPartialEq for GPSInfo
Auto Trait Implementations§
impl Freeze for GPSInfo
impl RefUnwindSafe for GPSInfo
impl Send for GPSInfo
impl Sync for GPSInfo
impl Unpin for GPSInfo
impl UnwindSafe for GPSInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more