Skip to content

F. \db\

Al Kissack edited this page Mar 22, 2024 · 2 revisions

The '\db' directory

The files in the \db directory, a series of json files, are provided and used to perform a look up on aircraft types.

As supplied with dump1090-fa they contain 3 bits of information, icao (utilising the json filename as the prefix to this), 'r' registration and 't' type. So given in file E.json we have:

e.json

  • icao: E4827E
  • Registration/call: PR-MYC
  • type: A319

My changes

This is referenced in planeObject.js (function PlaneObject(icao)).

I have update the above data and also included some bespoke data. such that in file 43C.json :

db changes

-icao : 43C485 -Country : United Kingdom -Force: RAF -Image : Typhoon -Interesting : 1 (yes) -Owner : RAF -Short : Typhoon -Trail : 5 (see trail codes below) -Type: Eurofighter Typhoon T3 -reg: ZJ805 -type: EUFI

This data is used in other modifications to show bespoke plane images and to provide more aircraft information.

Trail codes

Certain aircraft are displayed with their trails already on (regardless of whether they have been individually selected, or select all has been used)

The codes I use are:

  • 1 = Mil/noTrail
  • 2 = Civ/noTrail
  • 5 = Mil/Trail
  • 6 = Civ/Trail
  • 0 = ?/noTrail
  • 3,4,7 = ERR