UNPKG

flight-planner

Version:

Plan and route VFR flights

77 lines (76 loc) 2.75 kB
import RepositoryBase from "./repository.js"; import AerodromeService from "./services/aerodrome.js"; import WeatherService from "./services/weather.js"; import { UnitOptions } from "./units.js"; /** * Represents an ICAO (International Civil Aviation Organization) identifier, * typically used for airports, navigation aids, or weather stations. * * @type {string} */ export type ICAO = string; /** * Standard atmospheric pressure at sea level in hectopascals (hPa). * * @constant {number} */ export declare const StandardPressure = 1013.25; /** * Standard atmospheric temperature at sea level in Celsius. * * @constant {number} */ export declare const StandardTemperature = 15; /** * Enumeration representing different flight rules categories. * * @enum {string} * @readonly * @property {string} VFR - Visual Flight Rules * @property {string} MVFR - Marginal Visual Flight Rules * @property {string} IFR - Instrument Flight Rules * @property {string} LIFR - Low Instrument Flight Rules */ export declare enum FlightRules { VFR = "VFR", MVFR = "MVFR", IFR = "IFR", LIFR = "LIFR" } /** * Default unit settings used throughout the application when specific units aren't provided. * Uses nautical miles for distance, knots for speed, feet for altitude, Celsius for temperature, * hectopascals for pressure, kilograms for weight, liters for volume, and degrees for angles. * * @constant {UnitOptions} */ export declare const DefaultUnits: UnitOptions; /** * Exports various utility functions and types for flight planning and weather information. * * @module flight-planner */ export { normalizeICAO, isICAO, isIATA, normalizeIATA } from "./utils.js"; /** * Weather-related exports including flight rules, METAR data, and formatting functions. */ export type { MetarStation, Metar } from "./metar.js"; export { createMetarFromString, metarFlightRule, metarCeiling, isMetarExpired, metarFlightRuleColor, metarColorCode, } from "./metar.js"; /** * Formatting exports */ export { formatWind, formatVisibility, formatClouds } from "./format.js"; /** * Airport and navigation-related exports including waypoints, reporting points, and airport information. */ export type { Frequency, Runway, RunwayWindVector } from "./waypoint.js"; export { Aerodrome, FrequencyType, VisualReportingPoint, Waypoint, validateFrequencyType } from "./waypoint.js"; /** * Service-related exports for handling weather and aerodrome data. */ export { RepositoryBase, AerodromeService, WeatherService }; /** * Route planning exports including route options, legs, trips, and planning functions. */ export type { RouteOptions, RouteLeg, RouteTrip, } from "./planner.js"; export { default as FlightPlanner } from "./planner.js";