XPLMGetMagneticVariation
XPLM_API float XPLMGetMagneticVariation(
double latitude,
double longitude);
Returns X-Plane’s simulated magnetic variation (declination) at the indication latitude and longitude.