Altitude extremities is now null instead of (0,0) if no altitude was received (yet).

This commit is contained in:
Dennis Guse
2025-11-22 13:03:52 +01:00
parent e234e9c493
commit e6bdc9a41d
4 changed files with 26 additions and 62 deletions
@@ -64,20 +64,6 @@ public record Statistics(
return Speed.of(totalDistance, movingDuration);
}
@Deprecated
//TODO null should be return (need adjusting ContentPtoviderUtils.createContentValues()
public double getMinAltitude() {
if (altitudeExtremities == null) return 0;
return altitudeExtremities.min_m();
}
@Deprecated
//TODO null should be return (need adjusting ContentPtoviderUtils.createContentValues()
public double getMaxAltitude() {
if (altitudeExtremities == null) return 0;
return altitudeExtremities.max_m();
}
/**
* Combines these statistics with those from another object.
* This assumes that the time periods covered by each do not intersect.