From 37e68920ab1b4bcbd9d04550e2dbb531a26aeed9 Mon Sep 17 00:00:00 2001 From: dborup Date: Mon, 20 Jul 2026 14:07:47 +0200 Subject: [PATCH] fix: iataCoords missing Denmark/southern-Sweden airport codes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Surfaced by the new Wardriving Coverage-by-Observer table: every observer on this Danish mesh showed a "—" location because iataCoords only had US/global codes. Same root cause as issue #1786, just never extended to the codes this specific mesh's observers actually use. Added the 11 codes I could verify as real airport IATA codes; QXV, KRP, MRW look non-standard and are left unresolved. Co-Authored-By: Claude Sonnet 5 --- cmd/server/routes.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cmd/server/routes.go b/cmd/server/routes.go index 35d3814d..f3aa273e 100644 --- a/cmd/server/routes.go +++ b/cmd/server/routes.go @@ -3031,6 +3031,20 @@ var iataCoords = map[string]IataCoord{ "ICN": {Lat: 37.4602, Lon: 126.4407}, "SYD": {Lat: -33.9461, Lon: 151.1772}, "MEL": {Lat: -37.669, Lon: 144.841}, + // Denmark / southern Sweden — added for wardriving observer coverage + // (issue class: same as #1786, iataCoords lacked entries for the + // airport codes this mesh's observers actually use). + "CPH": {Lat: 55.618, Lon: 12.656}, // Copenhagen (Kastrup) + "AAL": {Lat: 57.0928, Lon: 9.8492}, // Aalborg + "AAR": {Lat: 56.3, Lon: 10.619}, // Aarhus (Tirstrup) + "BLL": {Lat: 55.7403, Lon: 9.1518}, // Billund + "ODE": {Lat: 55.4767, Lon: 10.3311}, // Odense + "RNN": {Lat: 55.0633, Lon: 14.7596}, // Bornholm (Rønne) + "RKE": {Lat: 55.5857, Lon: 12.1315}, // Roskilde + "SGD": {Lat: 54.9642, Lon: 9.7924}, // Sønderborg + "MMX": {Lat: 55.5363, Lon: 13.3762}, // Malmö + "HAD": {Lat: 56.6911, Lon: 12.8202}, // Halmstad + "VXO": {Lat: 56.9294, Lon: 14.7422}, // Växjö } func (s *Server) handleIATACoords(w http.ResponseWriter, r *http.Request) {