gedai.fetch

Functions that fetch ADS-B data and metadata.

gedai.fetch.fetch_raw_data(source: str, base_url: str, icao: str)[source]

Fetch ADS-B data from a given source.

Parameters:
  • source (str) – Source of the ADS-B data (e.g., “adsb_exchange”).

  • base_url (str) – Base URL to fetch data from.

  • icao (str) – ICAO identifier of the aircraft.

Returns:

A tuple containing the full data and extracted

metadata.

Return type:

tuple[dict, dict]

Raises:

ValueError – If the source is unknown or unsupported.