Update OsmAndFormatter.java

Miles interval selection exceptions
This commit is contained in:
Hardy 2016-03-09 02:01:40 -08:00
parent d949e08bd6
commit 8311a5071f

View file

@ -66,7 +66,14 @@ public class OsmAndFormatter {
pointer = 1;
}
}
//Miles exceptions
if (mc == MetricsConstants.MILES_AND_FOOTS && point == 1 / metersInSecondUnit && roundDist == 2000) {
roundDist = 0.5f;
} else if (mc == MetricsConstants.MILES_AND_YARDS && point == 1 / metersInSecondUnit && roundDist == 1000) {
roundDist = 0.5f;
} else if (mc == MetricsConstants.MILES_AND_YARDS && point == 1 / metersInSecondUnit && roundDist ==500) {
roundDist = 0.25f;
}
return roundDist;
}