pub struct GpsPosition {
pub latitude: f64,
pub longitude: f64,
pub altitude: f64,
pub speed: f64,
pub course: f64,
pub fix: GpsFix,
pub satellites: u8,
pub hdop: f64,
pub timestamp: Option<String>,
pub date: Option<String>,
pub grid_square: Option<String>,
}Expand description
Parsed GPS position from the receiver.
Represents the current GPS fix data as parsed from NMEA sentences (GGA, RMC, etc.). This is a read-only data type populated by the GPS receiver.
Fields§
§latitude: f64Latitude in decimal degrees (positive = North, negative = South).
longitude: f64Longitude in decimal degrees (positive = East, negative = West).
altitude: f64Altitude above mean sea level in meters.
speed: f64Ground speed in km/h.
course: f64Course over ground in degrees (0.0 = true north, 90.0 = east).
fix: GpsFixGPS fix quality.
satellites: u8Number of satellites used in the fix.
hdop: f64Horizontal dilution of precision (HDOP). Lower is better. Typical values: 1.0 = excellent, 2.0 = good, 5.0 = moderate.
timestamp: Option<String>UTC timestamp in “HHMMSSss” format (hours, minutes, seconds,
hundredths), or None if time is not available.
date: Option<String>UTC date in “DDMMYY” format, or None if date is not available.
grid_square: Option<String>Maidenhead grid square locator (4 or 6 characters).
Trait Implementations§
Source§impl Clone for GpsPosition
impl Clone for GpsPosition
Source§fn clone(&self) -> GpsPosition
fn clone(&self) -> GpsPosition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more