Flightplan XML formats: Difference between revisions

Jump to navigation Jump to search
Tags and their use in tables instead
(Extending)
(Tags and their use in tables instead)
Line 8: Line 8:
=== Waypoint tags ===
=== Waypoint tags ===
Each waypoint can contain the following tags:
Each waypoint can contain the following tags:
* <tt>'''<name>'''</tt> - Waypoint name, if it is the last waypoint use <tt>'''EOF'''</tt> or, if you want the AI model deleted, use <tt>'''END'''</tt>.
{| class="wikitable"
* <tt>'''<lat>'''</tt> - Latitude, decimal degrees
! Tag !! Type !! Use !! Comment
* <tt>'''<lon>'''</tt> - Longitude, decimal degrees
|-
* <tt>'''<alt>'''</tt> - Altitude above mean sea level, feet
| &lt;name&gt; || N/A || Waypoint name || The last waypoint use '''EOF''' or, if the AI model is to be deleted, '''END'''.
* <tt>'''<crossat>'''</tt> - Crossing altitude, feet
|-
* <tt>'''<ktas>'''</tt> - Knots true air speed
| &lt;lat&gt; || N/A || Latitude, decimal degrees ||
* <tt>'''<on-ground>'''</tt> - Set to <tt>'''true'''</tt> or <tt>1</tt> if on ground, if in air or in a tunnel set to <tt>'''false'''</tt> or <tt>'''0'''</tt>
|-
* <tt>'''<gear-down>'''</tt> - <tt>'''true'''</tt> for gear down, <tt>'''false'''</tt> for gear up, or any number between 0 and 1
| &lt;lon&gt; || N/A || Longitude, decimal degrees ||
* <tt>'''<flaps-down>'''</tt> - <tt>'''true'''</tt> for flaps down, <tt>'''false'''</tt> for flaps up, or any number between 0 and 1
|-
| &lt;alt&gt; || N/A || Altitude above mean sea level, feet ||
|-
| &lt;crossat&gt; || N/A || Crossing altitude, feet ||
|-
| &lt;ktas&gt; || N/A || True air speed, knots ||
|-
| &lt;on-ground&gt; || N/A || Set to '''true''' or '''1''' if on ground
 
Set to '''false''' or '''0''' if in air or in a tunnel
|
|-
| &lt;gear-down&gt; || N/A || '''true''' for gear down
 
'''false''' for gear up
| Or any number between '''0''' and '''1'''
|-
| &lt;flaps-down&gt; || N/A || '''true''' for flaps down
 
'''false''' for flaps up
| Or any number between '''0''' and '''1'''
|}


=== Example ===
=== Example ===
Line 51: Line 72:


=== Departure and destination tags ===
=== Departure and destination tags ===
* <tt>'''<airport type="string">'''</tt> - The ICAO identifier of the airport
{| class="wikitable"
* <tt>'''<sid type="string">'''</tt> - Any available SID
! Tag !! Type !! Use !! Comment
* <tt>'''<star type="string">'''</tt> - Any available STAR
|-
* <tt>'''<transition type="string">'''</tt> -  
| &lt;airport&gt; || string || The ICAO identifier of the airport ||
* <tt>'''<runway type="string">'''</tt> - Departure or destination runway
|-
| &lt;sid&gt; || string || Any available SID ||
|-
| &lt;star&gt; || string || Any available STAR ||
|-
| &lt;transition&gt; || string || ?  #FIXME ||
|-
| &lt;runway&gt; || string || Departure or destination runway ||
|}


=== Waypoint types and tags ===
=== Waypoint types and tags ===
* <tt>'''<type type="string">'''</tt> - Either of:
{| class="wikitable"
** <tt>'''runway'''</tt> - The number of the departure or destination airport's runway. Accompanied in the waypoint by the <icao> tag.
! Tag !! Type !! Use !! Comment
** <tt>'''navaid'''</tt> - Any significant point along the route. Both airports, navaids and fixes.
|-
** <tt>'''offset-navaid'''</tt> - An point offset from a navaid by a bearing and distance. Note that true bearings are used here.
| &lt;type&gt; || string || Type of waypoint. Either '''runway''', '''navaid''' or '''offset-navaid''' ||
* <tt>'''<alt-restrict type="string">'''</tt> - ?  #FIXME
|-
* <tt>'''<altitude-ft type="double">'''</tt> - Altitude in feet
| &lt;alt-restrict&gt; || string || ?  #FIXME ||
* <tt>'''<ident type="string">'''</tt> - Identity of an airport, navaid or fixe
|-
* <tt>'''<icao type="string">'''</tt> - ICAO code of an airport
| &lt;altitude-ft&gt; || double || Altitude in feet ||
* <tt>'''<lon type="double">'''</tt> - Longitude of the waypoint in decimal degrees
|-
* <tt>'''<lat type="double">'''</tt> - Latitude of the waypoint in decimal degrees
| &lt;ident&gt; || string || If '''&lt;type&gt;''' is
* <tt>'''<radial-deg type="double">'''</tt> - True bearing from a navaid, fix or airport ''Do note that radials on charts are magnetic!''
; runway:  The number of the departure or destination airport's runway. Accompanied in the waypoint by the '''&lt;icao&gt;''' tag.
* <tt>'''<distance-nm type="double">'''</tt> - Distance from a navaid, fix or airport
; navaid:  Any significant point along the route. Both airports, navaids and fixes.
; offset-navaidAn point offset from a navaid by a bearing and distance. Note that true bearings are used here.
|
|-
| &lt;icao&gt; || string || ICAO code of an airport || Used only if &lt;type&gt; is '''runway'''
|-
| &lt;lon&gt; || double || Longitude of the waypoint in decimal degrees ||
|-
| &lt;lat&gt; || double || Latitude of the waypoint in decimal degrees ||
|-
| &lt;radial-deg&gt; || double || True bearing from a navaid, fix or airport || '''Note:''' Radials on charts are magnetic!
|-
| &lt;distance-nm&gt; || double || Distance from a navaid, fix or airport ||
|}


=== Example ===
=== Example ===

Navigation menu