libacfutils
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
Loading...
Searching...
No Matches
Data Fields
arpt_index_t Struct Reference

#include <airportdb.h>

Collaboration diagram for arpt_index_t:
Collaboration graph
[legend]

Data Fields

char ident [8]
 
char icao [8]
 
char iata [4]
 
char cc [4]
 
geo_pos3_32_t pos
 
uint16_t max_rwy_len
 
uint16_t TA
 
uint16_t TL
 
avl_node_t node
 

Detailed Description

This structure is used in the fast-global-lookup index of airportdb_t. This index is stored entirely in memory and thus doesn't incur any disk time access penalty, but it's also not as fully-featured.

This attempts to replicate the most useful fields of ARINC 424 "PA" records in a compact-enough manner that we can hold the entire world-wide database in memory at all times. For more information, lookup the airport using airport_lookup_ident by using the ident field. The other identifier fields may be empty, if the airport lacks this information.

Definition at line 318 of file airportdb.h.

Field Documentation

◆ cc

char cc[4]

2-letter country code. May be empty.

Definition at line 326 of file airportdb.h.

◆ iata

char iata[4]

IATA code. May be empty

Definition at line 324 of file airportdb.h.

◆ icao

char icao[8]

ICAO code. May be empty.

Definition at line 322 of file airportdb.h.

◆ ident

char ident[8]

Globally unique name.

Definition at line 320 of file airportdb.h.

◆ max_rwy_len

uint16_t max_rwy_len

Length of longest runway in feet.

Definition at line 328 of file airportdb.h.

◆ node

avl_node_t node

Definition at line 331 of file airportdb.h.

◆ pos

Reference point, elevation in feet.

Definition at line 327 of file airportdb.h.

◆ TA

uint16_t TA

Transition alt in feet. Zero if unknown.

Definition at line 329 of file airportdb.h.

◆ TL

uint16_t TL

Transition level in feet. Zero if undef.

Definition at line 330 of file airportdb.h.


The documentation for this struct was generated from the following file: