Nav
Commands related to navigation aids and airports.
- async flightplandb.nav.airport(icao: str, key: str | None = None) → Airport
Fetches information about an airport.
- Parameters:
icao (str) -- The airport ICAO to fetch information for
key (str, optional) -- API authentication key.
- Returns:
Airport
if the airport was found.- Return type:
Union[Airport, None]
- Raises:
BadRequestException -- No airport with the specified ICAO code was found.
- async flightplandb.nav.nats(key: str | None = None) → List[Track]
Fetches current North Atlantic Tracks.
- Parameters:
key (str, optional) -- API authentication key.
- Returns:
List of NATs
- Return type:
List[Track]
- async flightplandb.nav.pacots(key: str | None = None) → List[Track]
Fetches current Pacific Organized Track System tracks.
- Parameters:
key (str, optional) -- API authentication key.
- Returns:
List of PACOTs
- Return type:
List[Track]
- async flightplandb.nav.search(query: str, type_: str | None = None, key: str | None = None) → AsyncIterable[SearchNavaid]
Searches navaids using a query.
- Parameters:
query (str) -- The search query. Searches the navaid identifier and navaid name
type_ (str, optional) -- Navaid type. Must be either
None
(default value, returns all types) or one ofvalidtypes
key (str, optional) -- API authentication key.
- Yields:
AsyncIterable[SearchNavaid] -- A iterable of navaids with either a name or ident matching the
query