diff --git a/public/index.html b/public/index.html index e0d97a1f..0577d1f3 100644 --- a/public/index.html +++ b/public/index.html @@ -86,7 +86,7 @@ - + diff --git a/public/packets.js b/public/packets.js index 1080cc32..238d33f1 100644 --- a/public/packets.js +++ b/public/packets.js @@ -1100,10 +1100,12 @@ let pathHops; try { pathHops = JSON.parse(pkt.path_json || '[]'); } catch { pathHops = []; } - // Re-resolve hops with observer context for regional filtering - if (pathHops.length && pkt.observer_id) { + // Re-resolve hops with observer + sender location for regional filtering & disambiguation + if (pathHops.length) { await ensureHopResolver(); - const resolved = HopResolver.resolve(pathHops, null, null, null, null, pkt.observer_id); + const senderLat = decoded.lat || decoded.latitude || null; + const senderLon = decoded.lon || decoded.longitude || null; + const resolved = HopResolver.resolve(pathHops, senderLat, senderLon, null, null, pkt.observer_id); Object.assign(hopNameCache, resolved || {}); }