#[repr(C)]pub struct nrf_modem_gnss_agps_data_location {
pub latitude: i32,
pub longitude: i32,
pub altitude: i16,
pub unc_semimajor: u8,
pub unc_semiminor: u8,
pub orientation_major: u8,
pub unc_altitude: u8,
pub confidence: u8,
}
Expand description
A-GPS location data.
Fields§
§latitude: i32
Geodetic latitude in WGS-84. Range -8388607…8388607. The relation between the coded number N and the latitude range X (in degrees) is as follows: N <= (2^23/90) * X < N + 1. For N = 2^23 - 1, the range is extended to include N+1. Range of X (in degrees) -90…90.
longitude: i32
Geodetic longitude in WGS-84. Range -8388607..8388607. The relation between the coded number N and the longitude range X (in degrees) is as follows: N <= (2^24/360) * X < N + 1. Range of X (in degrees) -180…180.
altitude: i16
Altitude. Above (positive value) or below (negative value) WGS-84 ellipsoid surface. Range -32767…32767. The relation between the coded number N and the altitude range a (in meters) is as follows: N <= a < N + 1. For N = 2^15 - 1 the range is extended to include all greater values of a.
unc_semimajor: u8
Uncertainty, semi-major. Range 0…127 or 255 for missing latitude and longitude. The uncertainty (in meters) is mapped from the coded number K with following formula: r = C * ((1 + x)^K - 1), where C = 10 and x = 0,1. Range of r (in kilometers) 0…1800.
@note Value 255 is only supported by modem firmware v1.3.0 or later.
unc_semiminor: u8
Uncertainty, semi-minor. Range 0…127 or 255 for missing latitude and longitude. The uncertainty (in meters) is mapped from the coded number K with following formula: r = C * ((1 + x)^K - 1), where C = 10 and x = 0,1. Range of r (in kilometers) 0…1800.
@note Value 255 is only supported by modem firmware v1.3.0 or later.
orientation_major: u8
Orientation angle between the major axis and north. Range in degrees 0…179.
unc_altitude: u8
Uncertainty, altitude. Range 0…127 or 255 for missing altitude. The uncertainty in altitude h (in meters) is mapped from the coded number K with following formula: h = C * ((1 + x)^K - 1), where C = 45 and x = 0,025. Range of h (in meters) 0…990,5.
@note Value 255 is only supported by modem firmware v1.3.0 or later.
confidence: u8
The confidence level (expressed as a percentage) with which the position of a target entity is included within the uncertainty ellipsoid. Range 0…128. ‘0’ indicates ‘no information’. Values 101..128 should be treated as ‘0’.
Trait Implementations§
source§impl Clone for nrf_modem_gnss_agps_data_location
impl Clone for nrf_modem_gnss_agps_data_location
source§fn clone(&self) -> nrf_modem_gnss_agps_data_location
fn clone(&self) -> nrf_modem_gnss_agps_data_location
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more