Fix overly broad military ICAO ranges causing false positives

The UK range 0x400000-0x43FFFF was the entire UK allocation, not just
military - this incorrectly flagged civilian airlines like EasyJet
(EZY callsign) as military aircraft.

Fixed ranges:
- Removed broad UK range, kept only RAF sub-range 0x43C000-0x43CFFF
- Narrowed France range to actual military 0x3F4000-0x3F7FFF
- Fixed Germany to correct Luftwaffe range 0x3D0000-0x3DFFFF
- Fixed typo in US range (0xADFFFFF -> 0xADFFFF)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
James Smith
2025-12-30 18:34:30 +00:00
parent 4cf2fa9fe5
commit bde977c73d
2 changed files with 12 additions and 14 deletions
+5 -6
View File
@@ -3924,14 +3924,13 @@
'7700': { type: 'mayday', name: 'EMERGENCY', color: '#ff0000', description: 'General emergency' }
};
// Military ICAO hex ranges (partial list - many countries)
// Military ICAO hex ranges (specific military-only sub-ranges)
const MILITARY_RANGES = [
{ start: 0xADF7C0, end: 0xADFFFFF, country: 'US' }, // US Military
{ start: 0xADF7C0, end: 0xADFFFF, country: 'US' }, // US Military
{ start: 0xAE0000, end: 0xAEFFFF, country: 'US' }, // US Military
{ start: 0x3F0000, end: 0x3FFFFF, country: 'FR' }, // France Military
{ start: 0x400000, end: 0x43FFFF, country: 'UK' }, // UK Military
{ start: 0x43C000, end: 0x43CFFF, country: 'UK' }, // UK Military
{ start: 0x4B0000, end: 0x4B7FFF, country: 'DE' }, // Germany Military
{ start: 0x3F4000, end: 0x3F7FFF, country: 'FR' }, // France Military (Armee de l'Air)
{ start: 0x43C000, end: 0x43CFFF, country: 'UK' }, // UK Military (RAF)
{ start: 0x3D0000, end: 0x3DFFFF, country: 'DE' }, // Germany Military (Luftwaffe)
{ start: 0x501C00, end: 0x501FFF, country: 'NATO' }, // NATO
];