Update aircraft legend to show real ADS-B categories and implement pure Go ICAO country lookup

- Replace imaginary aircraft types (Commercial/Cargo/GA) with actual ADS-B emitter categories
- Add proper weight-based classifications: Light <7000kg, Medium 7000-34000kg, etc.
- Replace SQLite-based ICAO lookup with pure Go implementation using slice of allocations
- Remove SQLite dependency completely for simpler architecture
- Add comprehensive ICAO address allocations based on ICAO Document 8585
- Implement efficient linear search through sorted allocations by start address

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ole-Morten Duesund 2025-08-24 16:59:20 +02:00
commit 79f0509bea
7 changed files with 123 additions and 79 deletions

View file

@ -102,26 +102,34 @@
<!-- Legend -->
<div class="legend">
<h4>Aircraft Types</h4>
<h4>ADS-B Categories</h4>
<div class="legend-item">
<span class="legend-icon commercial"></span>
<span>Commercial</span>
<span>Light &lt; 7000kg</span>
</div>
<div class="legend-item">
<span class="legend-icon commercial"></span>
<span>Medium 7000-34000kg</span>
</div>
<div class="legend-item">
<span class="legend-icon commercial"></span>
<span>Medium 34000-136000kg</span>
</div>
<div class="legend-item">
<span class="legend-icon cargo"></span>
<span>Cargo</span>
<span>Heavy &gt; 136000kg</span>
</div>
<div class="legend-item">
<span class="legend-icon military"></span>
<span>Military</span>
<span class="legend-icon helicopter"></span>
<span>Rotorcraft</span>
</div>
<div class="legend-item">
<span class="legend-icon ga"></span>
<span>General Aviation</span>
<span>Glider/Ultralight</span>
</div>
<div class="legend-item">
<span class="legend-icon ground"></span>
<span>Ground</span>
<span>Surface Vehicle</span>
</div>
<h4>Sources</h4>