From d7603464f6c7c4029dd827aa152087ea52944952 Mon Sep 17 00:00:00 2001 From: Adam Wisher <37659188+mrwish7@users.noreply.github.com> Date: Mon, 27 Jan 2025 15:04:48 +0000 Subject: [PATCH] TX search algorithm weighting adjustment Weighting adjustment based on user feedback --- server/tx_search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tx_search.js b/server/tx_search.js index 7aad1e4..bd4b74b 100644 --- a/server/tx_search.js +++ b/server/tx_search.js @@ -108,7 +108,7 @@ async function processData(data, piCode, rdsPs) { weightDistance = Math.abs(distance.distanceKm - 1500); } let erp = station.erp && station.erp > 0 ? station.erp : 1; - let extraWeight = erp >= 5 && distance.distanceKm <= 2500 ? 0.5 : 0; + let extraWeight = erp > 10 && distance.distanceKm <= 2500 ? 0.3 : 0; const score = ((10 * Math.log10(erp * 1000)) / weightDistance) + extraWeight; if (score > maxScore) { maxScore = score;