Nasal library/geo: Difference between revisions

Jump to navigation Jump to search
→‎Functions: Doc format()
(→‎Functions: Doc geo.elevation())
(→‎Functions: Doc format())
Line 334: Line 334:


=== format() ===
=== format() ===
{{Nasal doc
|syntax = geo.format(lat, lon);
|text = Returns the coordinate formatted as a string. The format will be the same as used for scenery tiles, e.g., <code>w010n50</code> (10 degrees West, 50 degrees North).
|param1 = lat
|param1text = Mandatory latitude coordinate.
|param2 = lon
|param2text = Mandatory longitude coordinate.
|example1 = var ac_pos = geo.aircraft_position();
print(geo.format(ac_pos.lat(), ac_pos.lon()));
}}
=== normdeg() ===
=== normdeg() ===
=== normdeg180() ===
=== normdeg180() ===

Navigation menu