On this page Home Flighting Programming APIs GPSVars Miscellaneous IMPORTANT!
GPS variables are
deprecated in Microsoft Flight Simulator 2024. For more information, please see the
GPS Vars In MSFS 2024 section.
The tables below indicate the requirements for the GPS Variables that can be used to get and set various different GPS properties. You can find a complete index of all available GPS Vars here: GPSVar Index
Nearest Airspace# GPS Variable Units Settable NearestAirspaceCurrentLatitudeDegrees NearestAirspaceCurrentLongitudeDegrees NearestAirspaceCurrentAltitudeMeters NearestAirspaceTrueGroundTrackDegrees NearestAirspaceGroundSpeedMeters per Second NearestAirspaceNearDistanceMeters NearestAirspaceNearAltitudeMeters NearestAirspaceAheadTimeSeconds NearestAirspaceQueryNumber NearestAirspaceMaximumItemsNumber NearestAirspaceMaximumDistanceMeters NearestAirspaceItemsNumberNumber NearestAirspaceCurrentLineNumber NearestAirspaceCurrentNameString NearestAirspaceCurrentTypeEnum:NONE (0)CENTER (1)CLASS_A (2)CLASS_B (3)CLASS_C (4)CLASS_D (5)CLASS_E (6)CLASS_F (7)CLASS_G (8)TOWER (9)CLEARANCE (10)GROUND (11)DEPARTURE (12)APPROACH (13)MOA (14)RESTRICTED (15)PROHIBITED (16)WARNING (17)ALERT (18)DANGER (19)NATIONAL_PARK (20)MODE_C (21)RADAR (22)TRAINING (23) NearestAirspaceCurrentFrequencyHz NearestAirspaceCurrentFrequencyNameString NearestAirspaceCurrentMinAltitudeMeters NearestAirspaceCurrentMaxAltitudeMeters NearestAirspaceCurrentStatusEnum:NONE (0)NEAR (1)AHEAD (2)NEAR_AHEAD (3)INSIDE (4) NearestAirspaceCurrentNearDistanceMeters NearestAirspaceCurrentAheadTimeSeconds
Messages# GPS Variable Units Settable MessageItemsNumberNumber MessageCurrentLineNumber MessageCurrentTypeEnum:NONE (0)NEAR (1)AHEAD (2)NEAR_AHEAD (3)INSIDE (4) NewMessagesNumberNumber NewMessagesConfirmNumber
ICAO Search Data# GPS Variable Units Settable IcaoSearchInitialIcaoString IcaoSearchStartCursorString IcaoSearchStopCursorNumber IcaoSearchAdvanceCursorNumber IcaoSearchAdvanceCharacterNumber IcaoSearchEnterCharString IcaoSearchBackupCharNumber IcaoSearchCursorPositionNumber IcaoSearchCurrentIdentString IcaoSearchCurrentIcaoString IcaoSearchCurrentIcaoTypeString IcaoSearchCurrentIcaoRegionString IcaoSearchMatchedIcaosNumberNumber IcaoSearchMatchedIcaoNumber
Name Search Data# GPS Variable Units Settable NameSearchInitialIcaoString NameSearchInitialNameString NameSearchStartCursorString NameSearchStopCursorNumber NameSearchAdvanceCursorNumber NameSearchAdvanceCharacterNumber NameSearchEnterCharString NameSearchBackupCharNumber NameSearchCursorPositionNumber NameSearchCurrentNameString NameSearchCurrentMatchNumber NameSearchCurrentIcaoString NameSearchCurrentIcaoTypeString NameSearchCurrentIcaoRegionString
Facilities# GPS Variable Units Settable FacilityICAOString FacilityCodeString FacilityIdentString FacilityValidBoolean FacilityNameString FacilityCityString FacilityRegionString FacilityLatitudeDegrees FacilityLongitudeDegrees FacilityMagneticVariationDegrees
Geo Calculations# GPS Variable Units Settable GeoCalcLatitude1Degrees GeoCalcLongitude1Degrees GeoCalcAzimuth1Degrees GeoCalcLatitude2Degrees GeoCalcLongitude2Degrees GeoCalcAzimuth2Degrees GeoCalcLengthMeters GeoCalcCrossTrackMeters GeoCalcBearingDegrees GeoCalcDistanceMeters GeoCalcIsIntersectBoolean GeoCalcIntersectionLatitudeDegrees GeoCalcExtrapolationLatitudeDegrees GeoCalcExtrapolationLongitudeDegrees