some changes

This commit is contained in:
2026-03-20 17:27:41 +01:00
parent b08a57a5e8
commit 2aeb81697a
9 changed files with 175 additions and 46 deletions
+1 -2
View File
@@ -294,8 +294,7 @@ async function fetchTx(freq, piCode, rdsPs) {
filteredLocations.sort((a, b) => b.score - a.score);
match = filteredLocations[0];
// Have a maximum of 10 extra matches and remove any with less than 1/10 of the winning score
multiMatches = filteredLocations
.slice(1, 11)
multiMatches = filteredLocations.slice(1, 11)
.filter(obj => obj.score >= (match.score / 10));
} else if (filteredLocations.length === 1) {
match = filteredLocations[0];