* K. Hoercher -- Thursday 18 October 2007:
> airportinfo("FOOBAR").

BTW: it's only documented in the source code for now, but in
case you missed it: the syntax has slightly changed a few days
ago:

 (a) airportinfo(<id>);    ...  e.g. "KSFO"
 (b) airportinfo(<type>);  ...  type := ("airport"|"seaport"|"heliport")
 (c) airportinfo()         ...  same as  airportinfo("airport")
 (d) airportinfo(<lat>, <lon> [, <type>]);

That is, an airportinfo() without argument returns the next
"regular" (land-)airport, but one can ask for the next
seaport or heliport, too:  airportinfo("seaport");

It's a bit ugly that the syntax is the same for (a) and (b),
but I wanted to avoid yet another argument, and the three
airport <type>s can't be misinterpreted as airport <id>s
thanks to case and length.

m.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to