13,212
edits
m (→fgcommand()) |
(Adding parenthesis to functions for consistency) |
||
Line 247: | Line 247: | ||
When the query functions take a position, the default value is the current aircraft location. An alternative location can be supplied by passing two number (lat, lon), a Geo.Coord object, or any positioned object or waypoint retrieved from another query. | When the query functions take a position, the default value is the current aircraft location. An alternative location can be supplied by passing two number (lat, lon), a Geo.Coord object, or any positioned object or waypoint retrieved from another query. | ||
;findAirportsWithinRange | ;findAirportsWithinRange() | ||
: Find all airports within a specified range (in NM) of the current position or explicit position | : Find all airports within a specified range (in NM) of the current position or explicit position | ||
;findAirportsByICAO | ;findAirportsByICAO() | ||
: Find airports matching a complete or partial ICAO code. In particular this can search for all airports starting with a two or three letter prefix. | : Find airports matching a complete or partial ICAO code. In particular this can search for all airports starting with a two or three letter prefix. | ||
;navinfo | ;navinfo() | ||
: Return a list of navaids near a location by type and ident. Type should be 'fix', 'vor', 'ndb', 'dme' | : Return a list of navaids near a location by type and ident. Type should be 'fix', 'vor', 'ndb', 'dme' | ||
;findNavaidsWithinRange | ;findNavaidsWithinRange() | ||
: Search for navaids within a particular range (in NM), optionally limited by type. This provides a 'find the closest ILS' function | : Search for navaids within a particular range (in NM), optionally limited by type. This provides a 'find the closest ILS' function | ||
;findNavaidByFrequency | ;findNavaidByFrequency() | ||
: find the closest navaid (of a particular type) matching an exact frequency | : find the closest navaid (of a particular type) matching an exact frequency | ||
;findNavaidsByFrequency | ;findNavaidsByFrequency() | ||
: find all the navaids matching a particular frequency and optional type, sorted by distance from the search location. | : find all the navaids matching a particular frequency and optional type, sorted by distance from the search location. | ||
Line 280: | Line 280: | ||
: the navaid type as a string: vor, dme, loc, ils, ndb | : the navaid type as a string: vor, dme, loc, ils, ndb | ||
;course | ;course | ||
: the degrees course associated with the navaid, for localiser and ILS stations | |||
=== <tt>flightplan</tt> === | === <tt>flightplan()</tt> === | ||
Function to retrieve the active flight-plan object, or load a flight plan from a file path. | Function to retrieve the active flight-plan object, or load a flight plan from a file path. |