/** * Country information interface */ export interface Country { id: string; code: string; name: string; continent: string; wikipedia_link: string | null; keywords: string | null; } /** * Region information interface */ export interface Region { id: string; code: string; local_code: string; name: string; continent: string; iso_country: string; wikipedia_link: string | null; keywords: string | null; } /** * Core airport data interface */ export interface Airport { /** Unique internal identifier */ id: string; /** Airport identifier (ICAO or local) */ ident: string; /** Type of airport facility */ type: AirportType; /** Official airport name */ name: string; /** Latitude in decimal degrees */ latitude_deg: number | null; /** Longitude in decimal degrees */ longitude_deg: number | null; /** Elevation in feet above sea level */ elevation_ft: number | null; /** Continent code */ continent: string | null; /** ISO country code (2-letter) */ iso_country: string | null; /** ISO region code */ iso_region: string | null; /** Municipality/city name */ municipality: string | null; /** Whether airport has scheduled commercial service */ scheduled_service: boolean; /** ICAO airport code (4-letter) */ icao_code: string | null; /** IATA airport code (3-letter) */ iata_code: string | null; /** GPS/FAA identifier */ gps_code: string | null; /** Local airport identifier */ local_code: string | null; /** Official airport website */ home_link: string | null; /** Wikipedia article URL */ wikipedia_link: string | null; /** Search keywords */ keywords: string | null; /** Region information (added at runtime for enhanced searching) */ region?: Region; /** Country information (added at runtime for enhanced searching) */ country?: Country; } /** * Airport facility types */ export type AirportType = | 'large_airport' | 'medium_airport' | 'small_airport' | 'heliport' | 'seaplane_base' | 'balloonport' | 'closed'; /** * Pre-processed airport data with indices for fast lookups */ export interface AirportData { meta: { type: AirportType; count: number; generated: string; }; airports: Airport[]; indices: { byId: Record; byIcao: Record; byIata: Record; byCountry: Record; byRegion: Record; }; }