]> git.mxchange.org Git - flightgear.git/commit
add airportinfo() function, which returns airport/runway data:
authormfranz <mfranz>
Tue, 2 Oct 2007 15:31:03 +0000 (15:31 +0000)
committermfranz <mfranz>
Tue, 2 Oct 2007 15:31:03 +0000 (15:31 +0000)
commitf65dbf553846276585d2bbe18a9d11899b60721e
tree603a803b5089e950078382a830f616bd65ae64bf
parentc8de2cd08ba501def5e33661729b1f0b7d17def6
add airportinfo() function, which returns airport/runway data:

Usage:  airportinfo("KSFO");
        airportinfo(37, 122);  # airport closest to lat/lon
        airportinfo();         # airport closest to current position

Returns nil on error, or a data hash otherwise. Example:

  # length of runway 28R
  var len = airportinfo("KSFO").runways["10L"].length;

Note that only one side of a runway is returned.
src/Scripting/NasalSys.cxx