Skip to main content

🧪 ADSBLoader

From-v5.0Status: Experimental

ADSBLoader auto-detects the two supported aircraft state JSON layouts and returns one row per aircraft. Rows without a complete position are retained with both coordinates set to null.

🧪 ADSBLoader
File formatADS-B aircraft state JSON
Data formatApache Arrow Table or ObjectRowTable
Supported APIsload, parse, parseSync (bundled loader)

Usage​

import {load} from '@loaders.gl/core';
import {ADSBLoader} from '@loaders.gl/scientific/adsb';

const table = await load('aircraft.json', ADSBLoader, {
adsb: {shape: 'object-row-table'}
});

For synchronous parsing, import ADSBLoader or ADSBLoaderWithParser from @loaders.gl/scientific/adsb/bundled.

Options​

OptionDefaultDescription
adsb.shape'arrow'Output shape. Use 'object-row-table' for a table of plain objects.

Output schema​

Missing optional values appear as null.

ColumnTypeMeaning
timestampfloat64Position time in Unix seconds. Named records use now - seen_pos when position and time are available. State vectors use time_position.
icao24stringAircraft transponder address.
callsignstringAircraft call sign with whitespace trimmed.
longitude, latitudefloat64Decimal degrees, east and north positive.
altitudeBaro, altitudeGeomfloat64Barometric and geometric altitude in metres.
onGroundbooleanSurface status. For named records, alt_baro: "ground" yields true with a null barometric altitude, and numeric alt_baro yields false.
groundSpeedfloat64Metres per second.
trackfloat64True track in degrees clockwise from north.
verticalRatefloat64Signed metres per second.
squawkstringTransponder code, including leading zeroes.
categorystringSource category code. Numeric state-vector codes are converted to strings.