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:
parent
20bdcf54ec
commit
79f0509bea
7 changed files with 123 additions and 79 deletions
|
|
@ -270,6 +270,7 @@ body {
|
|||
|
||||
.legend-icon.commercial { background: #00ff88; }
|
||||
.legend-icon.cargo { background: #ff8c00; }
|
||||
.legend-icon.helicopter { background: #00d4ff; }
|
||||
.legend-icon.military { background: #ff4444; }
|
||||
.legend-icon.ga { background: #ffff00; }
|
||||
.legend-icon.ground { background: #888888; }
|
||||
|
|
|
|||
|
|
@ -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 < 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 > 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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue