diff --git a/android/app/src/main/kotlin/dev/fiatcode/tracpulse/service/LocationTrackingService.kt b/android/app/src/main/kotlin/dev/fiatcode/tracpulse/service/LocationTrackingService.kt index 282602b..00834c0 100644 --- a/android/app/src/main/kotlin/dev/fiatcode/tracpulse/service/LocationTrackingService.kt +++ b/android/app/src/main/kotlin/dev/fiatcode/tracpulse/service/LocationTrackingService.kt @@ -256,7 +256,7 @@ class LocationTrackingService : Service() { isMoving = (nativeSpeed ?: 0f) > 1.0f ) - logEvent("LOCATION", "Lat: ${location.latitude}, Lon: ${location.longitude}, Speed: ${location.speed}") + logEvent("LOCATION", "Lat: ${location.latitude}, Lon: ${location.longitude}, Speed: ${location.speed} (native)") updateNotification(location) @@ -326,7 +326,8 @@ class LocationTrackingService : Service() { logEvent("SPEED_CALC", "Speed calculation failed - sending without speed") // Fallback: send location without speed rather than losing it } else { - logEvent("LOCATION", "Lat: ${location.latitude}, Lon: ${location.longitude}, Calc Speed: ${finalSpeed}") + val speedSource = if (location.hasSpeed() && location.speed > 0) "native" else "calculated" + logEvent("LOCATION", "Lat: ${location.latitude}, Lon: ${location.longitude}, Speed: ${finalSpeed} ($speedSource)") } val speedToSend = if (finalSpeed != null && finalSpeed > 0) finalSpeed else null