feat: tracker location based on multiple location providers #5

Merged
localhorst merged 19 commits from feature/ttn-location-algo into main 2025-01-02 14:57:34 +01:00
Showing only changes of commit 7e42d3b8c9 - Show all commits
5
@@ -33,11 +33,8 @@ const CalculateTtnGatewayLocation = (event: TtnMessageReceivedEvent) => {
}); });
// Calculate the weighted average to get the virtual location // Calculate the weighted average to get the virtual location
const virtualLocation = { virtualLocation.latitude = weightedLatitude / totalWeight;
latitude: weightedLatitude / totalWeight, virtualLocation.longitude = weightedLongitude / totalWeight;
longitude: weightedLongitude / totalWeight
};
console.log("Tracker location based on TTN Gateway location:", virtualLocation); console.log("Tracker location based on TTN Gateway location:", virtualLocation);
} }
return { return {
4