33 planes are around Frankfurt Airport right now. Here’s how I know (in 20 lines of TypeScript)
Описание и применение
Скрипт на TypeScript выводит список самолетов в радиусе 25 NM от Франкфурта, используя бесплатный API adsb.lol.
Задача
Determine which aircraft are currently within a 25‑NM radius of a given airport using free ADS‑B data.
Результат
The script reports 33 aircraft within 25 NM of Frankfurt Airport, listing callsigns, altitudes, distances, and indicating military status. No aircraft were squawking 7700 worldwide.
Рабочий процесс
- 1. Initialise a Node project and install @matmuenzel/adsblol-ts.
- 2. Create a script that imports AdsbLol and helper functions.
- 3. Define the target location (lat/lon) and radius (25 NM).
- 4. Call adsb.aircraft.near() to fetch nearby aircraft.
- 5. Filter out ground aircraft and sort by distance.
- 6. Log the count and details of the top 10 aircraft.
- 7. Optionally query adsb.aircraft.bySquawk('7700') to count worldwide emergency squawking aircraft.
- 8. Run the script with npx tsx overhead.ts.
Доказательства
I wrote a small, zero‑dependency TypeScript client for it: @matmuenzel/adsblol-ts. Let's build a tiny "what's flying around here?" CLI with it.
Node 22+ is all you need. No API key required.
✈️ 33 aircraft within 25 NM CFG4KC A319 -100 ft 2.6 km ...
-100 ft isn’t a bug. alt_baro is barometric altitude relative to standard pressure (1013.25 hPa)...
- Дата записи: 2026-11-01T22:58:49.506Z