# Airports {{< callout context="caution" title="IMPORTANT!" icon="outline/alert-triangle" >}} GPS variables are **deprecated** in Microsoft Flight Simulator 2024. For more information, please see the [GPS Vars In MSFS 2024](../gps-variables-legacy/#gps-vars-in-msfs-2024) section. {{< /callout >}} The tables below indicate the requirements for the [GPS Variables](../gps-variables-legacy/) that can be used to get and set the different GPS properties associated with airports. You can find a complete index of all available GPS Vars here: [GPSVar Index](../gps-variables-legacy/#index) {{< table-wrapper "" "" "100px">}} | GPS Variable | Units | Settable | |---|---|:---:| | {{< anchor id="WaypointAirportICAO" />}}`WaypointAirportICAO` | String | {{< check/good >}} | | {{< anchor id="WaypointAirportIdent" />}}`WaypointAirportIdent` | String | {{< check/bad >}} | | {{< anchor id="WaypointAirportKind" />}}`WaypointAirportKind` | Enum:{{< params/smallfont >}}`UNKNOWN_KIND_AIRPORT` (0)`HARD_SURFACE_AIRPORT` (1)`SOFT_SURFACE_AIRPORT` (2)`WATER_SURFACE_AIRPORT` (3)`HELIPAD_AIRPORT` (4)`PRIVATE_AIRPORT` (5){{< /params/smallfont >}} | {{< check/bad >}} | | {{< anchor id="WaypointAirportLongestRunwayDirection" />}}`WaypointAirportLongestRunwayDirection` | Degrees | {{< check/bad >}} | | {{< anchor id="WaypointAirportType" />}}`WaypointAirportType` | Enum:{{< params/smallfont >}}`UNKNOWN_TYPE_AIRPORT` (0)`PUBLIC_TYPE_AIRPORT` (1)`MILITARY_TYPE_AIRPORT` (2)`PRIVATE_TYPE_AIRPORT` (3){{< /params/smallfont >}} | {{< check/bad >}} | | {{< anchor id="WaypointAirportName" />}}`WaypointAirportName` | String | {{< check/bad >}} | | {{< anchor id="WaypointAirportCity" />}}`WaypointAirportCity` | String | {{< check/bad >}} | | {{< anchor id="WaypointAirportRegion" />}}`WaypointAirportRegion` | String | {{< check/bad >}} | | {{< anchor id="WaypointAirportLatitude" />}}`WaypointAirportLatitude` | Degrees | {{< check/bad >}} | | {{< anchor id="WaypointAirportLongitude" />}}`WaypointAirportLongitude` | Degrees | {{< check/bad >}} | | {{< anchor id="WaypointAirportElevation" />}}`WaypointAirportElevation` | Meters | {{< check/bad >}} | | {{< anchor id="WaypointAirportFuel" />}}`WaypointAirportFuel` | String | {{< check/bad >}} | | {{< anchor id="WaypointAirportRadarCoverage" />}}`WaypointAirportRadarCoverage` | Enum:{{< params/smallfont >}}`UNKNOWN` (0)`NO` (1)`YES` (2){{< /params/smallfont >}} | {{< check/bad >}} | | {{< anchor id="WaypointAirportAirspace" />}}`WaypointAirportAirspace` | String | {{< check/bad >}} | | {{< anchor id="WaypointAirportTowered" />}}`WaypointAirportTowered` | Boolean | {{< check/bad >}} | | {{< anchor id="WaypointAirportCurrentFrequency" />}}`WaypointAirportCurrentFrequency` | Hz | {{< check/good >}} | | {{< anchor id="WaypointAirportSelectedFrequencyIndex" />}}`WaypointAirportSelectedFrequencyIndex` | Number | {{< check/bad >}} | | {{< anchor id="WaypointAirportSelectedFrequencyValue" />}}`WaypointAirportSelectedFrequencyValue` | Number | {{< check/bad >}} | | {{< anchor id="WaypointAirportFrequenciesNumber" />}}`WaypointAirportFrequenciesNumber` | Number | {{< check/bad >}} | | {{< anchor id="WaypointAirportFrequencyName" />}}`WaypointAirportFrequencyName` | Number | {{< check/bad >}} | | {{< anchor id="WaypointAirportFrequencyLimit" />}}`WaypointAirportFrequencyLimit` | Enum:{{< params/smallfont >}}`NO_LIMIT` (0)`RX_ONLY` (1)`TX_ONLY` (2)`PART_TIME` (3){{< /params/smallfont >}} | {{< check/bad >}} | | {{< anchor id="WaypointAirportFrequencyValue" />}}`WaypointAirportFrequencyValue` | Hz | {{< check/bad >}} | | {{< anchor id="WaypointAirportFrequencyType" />}}`WaypointAirportFrequencyType` | Enum:{{< params/smallfont >}}`UNKNOWN` (0)`COM` (1)`NAV` (2)`ADF` (3){{< /params/smallfont >}} | {{< check/bad >}} | {{< /table-wrapper >}} ### Airport Runways {{< table-wrapper "" "" "100px">}} | GPS Variable | Units | Settable | |---|---|:---:| | {{< anchor id="WaypointAirportCurrentRunway" />}}`WaypointAirportCurrentRunway` | Number | {{< check/good >}} | | {{< anchor id="WaypointAirportRunwaysNumber" />}}`WaypointAirportRunwaysNumber` | Number | {{< check/bad >}} | | {{< anchor id="WaypointAirportRunwayLatitude" />}}`WaypointAirportRunwayLatitude` | Degrees | {{< check/bad >}} | | {{< anchor id="WaypointAirportRunwayLongitude" />}}`WaypointAirportRunwayLongitude` | Degrees | {{< check/bad >}} | | {{< anchor id="WaypointAirportRunwayElevation" />}}`WaypointAirportRunwayElevation` | Meters | {{< check/bad >}} | | {{< anchor id="WaypointAirportRunwayDirection" />}}`WaypointAirportRunwayDirection` | Degrees | {{< check/bad >}} | | {{< anchor id="WaypointAirportRunwayDesignation" />}}`WaypointAirportRunwayDesignation` | String | {{< check/bad >}} | | {{< anchor id="WaypointAirportRunwayLength" />}}`WaypointAirportRunwayLength` | Meters | {{< check/bad >}} | | {{< anchor id="WaypointAirportRunwayWidth" />}}`WaypointAirportRunwayWidth` | Meters | {{< check/bad >}} | | {{< anchor id="WaypointAirportRunwaySurface" />}}`WaypointAirportRunwaySurface` | Enum:{{< params/smallfont >}}`UNKNOWN` (0)`CONCRETE` (1)`ASPHALT` (2)`GRASS` (101)`TURF` (102)`DIRT` (103)`CORAL` (104)`GRAVEL` (105)`OIL_TREATED` (106)`STEEL` (107)`BITUMINUS` (108)`BRICK` (109)`MACADAM` (110)`PLANKS` (111)`SAND` (112)`SHALE` (113)`TARMAC` (114)`SNOW` (115)`ICE` (116)`WATER` (201){{< /params/smallfont >}} | {{< check/bad >}} | | {{< anchor id="WaypointAirportRunwayLighting" />}}`WaypointAirportRunwayLighting` | Enum:{{< params/smallfont >}}`UNKNOWN` (0)`NONE` (1)`PART_TIME` (2)`FULL_TIME` (3)`FREQUENCY` (4){{< /params/smallfont >}} | {{< check/bad >}} | {{< /table-wrapper >}} ### Airport Approaches {{< table-wrapper "" "" "100px">}} | GPS Variable | Units | Settable | |---|---|:---:| | {{< anchor id="WaypointAirportBestApproachEnum" />}}`WaypointAirportBestApproachEnum` | Enum:{{< params/smallfont >}}`UNKNOWN` (0)`VFR` (1)`HEL` (2)`TACAN` (3)`NDB` (4)`LORAN` (5)`RNAV` (6)`VOR` (7)`GPS` (8)`SDF` (9)`LDA` (10)`LOC` (11)`MLS` (12)`ILS` (13){{< /params/smallfont >}} | {{< check/bad >}} | | {{< anchor id="WaypointAirportBestApproach" />}}`WaypointAirportBestApproach` | String | {{< check/bad >}} | | {{< anchor id="WaypointAirportCurrentApproach" />}}`WaypointAirportCurrentApproach` | Number | {{< check/good >}} | | {{< anchor id="WaypointAirportSelectedApproach" />}}`WaypointAirportSelectedApproach` | Number | {{< check/good >}} | | {{< anchor id="WaypointAirportApproachesNumber" />}}`WaypointAirportApproachesNumber` | Number | {{< check/bad >}} | | {{< anchor id="WaypointAirportApproachName" />}}`WaypointAirportApproachName` | String | {{< check/bad >}} | | {{< anchor id="WaypointAirportApproachGps" />}}`WaypointAirportApproachGps` | Boolean | {{< check/bad >}} | | {{< anchor id="WaypointAirportApproachTransitionsNumber" />}}`WaypointAirportApproachTransitionsNumber` | Number | {{< check/bad >}} | | {{< anchor id="WaypointAirportApproachCurrentTransition" />}}`WaypointAirportApproachCurrentTransition` | Number | {{< check/good >}} | | {{< anchor id="WaypointAirportApproachSelectedTransition" />}}`WaypointAirportApproachSelectedTransition` | Number | {{< check/good >}} | | {{< anchor id="WaypointAirportApproachTransitionName" />}}`WaypointAirportApproachTransitionName` | String | {{< check/bad >}} | | {{< anchor id="WaypointAirportApproachTransitionLatitude" />}}`WaypointAirportApproachTransitionLatitude` | Degrees | {{< check/bad >}} | | {{< anchor id="WaypointAirportApproachTransitionLongitude" />}}`WaypointAirportApproachTransitionLongitude` | Degrees | {{< check/bad >}} | | {{< anchor id="WaypointAirportApproachTransitionSize" />}}`WaypointAirportApproachTransitionSize` | Meters | {{< check/bad >}} | | {{< anchor id="WaypointAirportApproachCurrentLeg" />}}`WaypointAirportApproachCurrentLeg` | Number | {{< check/good >}} | | {{< anchor id="WaypointAirportApproachNumberLegs" />}}`WaypointAirportApproachNumberLegs` | Number | {{< check/bad >}} | | {{< anchor id="WaypointAirportApproachCurrentLegIcao" />}}`WaypointAirportApproachCurrentLegIcao` | String | {{< check/bad >}} | | {{< anchor id="WaypointAirportApproachCurrentLegType" />}}`WaypointAirportApproachCurrentLegType` | String | {{< check/bad >}} | | {{< anchor id="WaypointAirportApproachCurrentLegBearing" />}}`WaypointAirportApproachCurrentLegBearing` | Degrees | {{< check/bad >}} | | {{< anchor id="WaypointAirportApproachCurrentLegDistance" />}}`WaypointAirportApproachCurrentLegDistance` | Meters | {{< check/bad >}} | | {{< anchor id="WaypointAirportApproachCurrentLegIsMinutes" />}}`WaypointAirportApproachCurrentLegIsMinutes` | Boolean | {{< check/bad >}} | {{< /table-wrapper >}} ### Airport Departures {{< table-wrapper "" "" "100px">}} | GPS Variable | Units | Settable | |---|---|:---:| | {{< anchor id="WaypointAirportDeparturesNumber" />}}`WaypointAirportDeparturesNumber` | Number | {{< check/bad >}} | | {{< anchor id="WaypointAirportCurrentDeparture" />}}`WaypointAirportCurrentDeparture` | Number | {{< check/good >}} | | {{< anchor id="WaypointAirportDepartureName" />}}`WaypointAirportDepartureName` | String | {{< check/bad >}} | | {{< anchor id="WaypointAirportDepartureWaypointsNumber" />}}`WaypointAirportDepartureWaypointsNumber` | Number | {{< check/bad >}} | | {{< anchor id="WaypointAirportDepartureCurrentWaypoint" />}}`WaypointAirportDepartureCurrentWaypoint` | Number | {{< check/good >}} | | {{< anchor id="WaypointAirportDepartureWaypointICAO" />}}`WaypointAirportDepartureWaypointICAO` | String | {{< check/bad >}} | {{< /table-wrapper >}} ### Airport Arrivals {{< table-wrapper "" "" "100px">}} | GPS Variable | Units | Settable | |---|---|:---:| | {{< anchor id="WaypointAirportArrivalsNumber" />}}`WaypointAirportArrivalsNumber` | Number | {{< check/bad >}} | | {{< anchor id="WaypointAirportCurrentArrival" />}}`WaypointAirportCurrentArrival` | Number | {{< check/good >}} | | {{< anchor id="WaypointAirportArrivalName" />}}`WaypointAirportArrivalName` | String | {{< check/bad >}} | | {{< anchor id="WaypointAirportArrivalWaypointsNumber" />}}`WaypointAirportArrivalWaypointsNumber` | Number | {{< check/bad >}} | | {{< anchor id="WaypointAirportArrivalCurrentWaypoint" />}}`WaypointAirportArrivalCurrentWaypoint` | Number | {{< check/good >}} | | {{< anchor id="WaypointAirportArrivalWaypointICAO" />}}`WaypointAirportArrivalWaypointICAO` | String | {{< check/bad >}} | {{< /table-wrapper >}} ### Nearest Airports {{< table-wrapper "" "" "100px">}} | GPS Variable | Units | Settable | |---|---|:---:| | {{< anchor id="NearestAirportMaximumItems" />}}`NearestAirportMaximumItems` | Number | {{< check/good >}} | | {{< anchor id="NearestAirportMaximumDistance" />}}`NearestAirportMaximumDistance` | Meters | {{< check/good >}} | | {{< anchor id="NearestAirportItemsNumber" />}}`NearestAirportItemsNumber` | Number | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentLine" />}}`NearestAirportCurrentLine` | Number | {{< check/good >}} | | {{< anchor id="NearestAirportCurrentICAO" />}}`NearestAirportCurrentICAO` | String | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentIdent" />}}`NearestAirportCurrentIdent` | String | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentFrequency" />}}`NearestAirportCurrentFrequency` | Hz | {{< check/good >}} | | {{< anchor id="NearestAirportCurrentFrequencyName" />}}`NearestAirportCurrentFrequencyName` | String | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentFuel1" />}}`NearestAirportCurrentFuel1` | String | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentFuel2" />}}`NearestAirportCurrentFuel2` | String | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentAirportKind" />}}`NearestAirportCurrentAirportKind` | Enum:{{< params/smallfont >}}`UNKNOWN_KIND_AIRPORT` (0)`HARD_SURFACE_AIRPORT` (1)`SOFT_SURFACE_AIRPORT` (2)`WATER_SURFACE_AIRPORT` (3)`HELIPAD_AIRPORT` (4)`PRIVATE_AIRPORT` (5){{< /params/smallfont >}} | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentLongestAirportDirection" />}}`NearestAirportCurrentLongestAirportDirection` | Meters | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentDistance" />}}`NearestAirportCurrentDistance` | Meters | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentTrueBearing" />}}`NearestAirportCurrentTrueBearing` | Degrees | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentBestApproachEnum" />}}`NearestAirportCurrentBestApproachEnum` | Enum:{{< params/smallfont >}}`UNKNOWN` (0)`VFR` (1)`HEL` (2)`TACAN` (3)`NDB` (4)`LORAN` (5)`RNAV` (6)`VOR` (7)`GPS` (8)`SDF` (9)`LDA` (10)`LOC` (11)`MLS` (12)`ILS` (13){{< /params/smallfont >}} | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentBestApproach" />}}`NearestAirportCurrentBestApproach` | String | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentComFrequencyName" />}}`NearestAirportCurrentComFrequencyName` | String | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentComFrequencyValue" />}}`NearestAirportCurrentComFrequencyValue` | Hz | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentLongestRunwayLength" />}}`NearestAirportCurrentLongestRunwayLength` | Meters | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentApproach" />}}`NearestAirportCurrentApproach` | Number | {{< check/good >}} | | {{< anchor id="NearestAirportCurrentApproachName" />}}`NearestAirportCurrentApproachName` | String | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentTowered" />}}`NearestAirportCurrentTowered` | Boolean | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentAirportLatitude" />}}`NearestAirportCurrentAirportLatitude` | Degrees | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentAirportLongitude" />}}`NearestAirportCurrentAirportLongitude` | Degrees | {{< check/bad >}} | | {{< anchor id="NearestAirportCurrentDeparture" />}}`NearestAirportCurrentDeparture` | Number | {{< check/good >}} | | {{< anchor id="NearestAirportDeparturesNumber" />}}`NearestAirportDeparturesNumber` | Number | {{< check/bad >}} | | {{< anchor id="NearestAirportDepartureName" />}}`NearestAirportDepartureName` | String | {{< check/bad >}} | | {{< anchor id="NearestAirportDepartureWaypointsNumber" />}}`NearestAirportDepartureWaypointsNumber` | Number | {{< check/bad >}} | | {{< anchor id="NearestAirportDepartureCurrentWaypoint" />}}`NearestAirportDepartureCurrentWaypoint` | Number | {{< check/good >}} | | {{< anchor id="NearestAirportDepartureWaypointICAO" />}}`NearestAirportDepartureWaypointICAO` | String | {{< check/bad >}} | | {{< anchor id="NearestAirportSelected" />}}`NearestAirportSelected` | Number | {{< check/good >}} | | {{< anchor id="NearestAirportSelectedAirportName" />}}`NearestAirportSelectedAirportName` | String | {{< check/bad >}} | | {{< anchor id="NearestAirportSelectedLatitude" />}}`NearestAirportSelectedLatitude` | Degrees | {{< check/bad >}} | | {{< anchor id="NearestAirportSelectedLongitude" />}}`NearestAirportSelectedLongitude` | Degrees | {{< check/bad >}} | | {{< anchor id="NearestAirportSelectedNumberFrequencies" />}}`NearestAirportSelectedNumberFrequencies` | Number | {{< check/bad >}} | | {{< anchor id="NearestAirportSelectedApproachIndex" />}}`NearestAirportSelectedApproachIndex` | Number | {{< check/good >}} | | {{< anchor id="NearestAirportSelectedNumberApproaches" />}}`NearestAirportSelectedNumberApproaches` | Number | {{< check/bad >}} | | {{< anchor id="NearestAirportSelectedAirportRunwaysNumber" />}}`NearestAirportSelectedAirportRunwaysNumber` | Number | {{< check/bad >}} | | {{< anchor id="NearestAirportSelectedRunwayDesignation" />}}`NearestAirportSelectedRunwayDesignation` | String | {{< check/bad >}} | | {{< anchor id="NearestAirportSelectedRunwayLength" />}}`NearestAirportSelectedRunwayLength` | Meters | {{< check/bad >}} | | {{< anchor id="NearestAirportSelectedRunwayWidth" />}}`NearestAirportSelectedRunwayWidth` | Meters | {{< check/bad >}} | | {{< anchor id="NearestAirportSelectedRunwaySurface" />}}`NearestAirportSelectedRunwaySurface` | Enum:{{< params/smallfont >}}`UNKNOWN` (0)`CONCRETE` (1)`ASPHALT` (2)`GRASS` (101)`TURF` (102)`DIRT` (103)`CORAL` (104)`GRAVEL` (105)`OIL_TREATED` (106)`STEEL` (107)`BITUMINUS` (108)`BRICK` (109)`MACADAM` (110)`PLANKS` (111)`SAND` (112)`SHALE` (113)`TARMAC` (114)`SNOW` (115)`ICE` (116)`WATER` (201){{< /params/smallfont >}} | {{< check/bad >}} | | {{< anchor id="NearestAirportSelectedAirportCity" />}}`NearestAirportSelectedAirportCity` | String | {{< check/bad >}} | | {{< anchor id="NearestAirportSelectedAirportElevation" />}}`NearestAirportSelectedAirportElevation` | Meters | {{< check/bad >}} | | {{< anchor id="NearestAirportSelectedRunway" />}}`NearestAirportSelectedRunway` | Numbers | {{< check/good >}} | | {{< anchor id="NearestAirportSelectedFrequencyValue" />}}`NearestAirportSelectedFrequencyValue` | Hz | {{< check/bad >}} | | {{< anchor id="NearestAirportSelectedFrequencyIndex" />}}`NearestAirportSelectedFrequencyIndex` | Number | {{< check/good >}} | | {{< anchor id="NearestAirportSelectedAirportLatitude" />}}`NearestAirportSelectedAirportLatitude` | Degrees | {{< check/bad >}} | | {{< anchor id="NearestAirportSelectedAirportLongitude" />}}`NearestAirportSelectedAirportLongitude` | Degrees | {{< check/bad >}} | {{< /table-wrapper >}}