17. Aircraft Model and Operator Aliases
Aircraft Model and Operator Aliases
These tools live in the admin Visuals group:
/admin/aircraft-model-mappings- menu labelAircraft Models,/admin/operator-aliases- menu labelOperator Aliases.
They are still present in the admin panel. If they are not visible, expand Visuals in the left menu or open the direct routes above.
1. Aircraft Models
Aircraft Models maps an ICAO aircraft type code to a readable model name.
Use it when aircraft have a type code such as A321, B738, or B77W, but the aircraft database record does not contain an exact model.
Runtime behavior:
- an exact model from the aircraft database wins,
- if the exact model is missing, VRS X looks up the ICAO type code in
Aircraft Models, - if there is no mapping, the model remains empty.
Example:
- type code:
A321, - model name:
Airbus A321, - aircraft without an exact database model can display
Airbus A321.
Validation:
- ICAO type code must be
2-8characters, - allowed type code characters are
A-Zand0-9, - model name is required and is stored trimmed,
- very long model names are shortened to 160 characters.
CSV import:
- file extension must be
.csv, - maximum upload size is
5 MB, - format is semicolon-separated:
icao_type;model_name, - optional headers such as
icao_type;model_nameare accepted, - duplicate ICAO type rows inside the same import are skipped,
- existing mappings are updated when the imported model name changes.
Mappings are stored in aircraft-model-mappings.json in the VRS X data directory.
2. Operator Aliases
Operator Aliases maps an operator code to a carrier display name.
Use it when the aircraft list has a callsign/operator code such as DLH, BAW, or RYR, and you want the UI/API to expose a readable name such as Lufthansa, British Airways, or Ryanair.
Runtime behavior:
- if the aircraft has
OperatorFlagCode, that code is used first, - otherwise VRS X derives a code from the callsign prefix,
- the derived callsign prefix must be two or three letters followed by a digit, for example
DLH123->DLH, - VRS X looks up that code in
Operator Aliases, - the matched display name is exposed as
operatorName.
Validation:
- operator code must be
2-40characters, - allowed characters are
A-Z,0-9,@,.,_,+, and-, - display name is required and is stored trimmed.
CSV import:
- file extension must be
.csv, - maximum upload size is
5 MB, - format is semicolon-separated:
code;display_name, - optional header
code;display_nameis accepted, - existing aliases are updated when the imported display name changes.
Aliases are stored in operator-aliases.json in the VRS X data directory.
3. Relationship to colors and logos
These mappings do not replace resource files.
Use:
Operator Aliasesfor readable carrier names,Operator Colorsfor marker tinting by operator code,Custom Operator Logofor customOPERATOR.bmp/pngorOPERATOR-ICAOTYPE.bmp/pngresources,Aircraft Modelsfor filling missing display model names by ICAO type.
If a logo or color does not apply, first verify which operator code the aircraft resolves to. The direct routes above are the fastest way to check and maintain mappings.