diff --git a/server/tx_search.js b/server/tx_search.js index ca3c580..7aad1e4 100644 --- a/server/tx_search.js +++ b/server/tx_search.js @@ -108,7 +108,8 @@ async function processData(data, piCode, rdsPs) { weightDistance = Math.abs(distance.distanceKm - 1500); } let erp = station.erp && station.erp > 0 ? station.erp : 1; - const score = (10 * Math.log10(erp * 1000)) / weightDistance; + let extraWeight = erp >= 5 && distance.distanceKm <= 2500 ? 0.5 : 0; + const score = ((10 * Math.log10(erp * 1000)) / weightDistance) + extraWeight; if (score > maxScore) { maxScore = score; txAzimuth = distance.azimuth;