Update OsmAndFormatter.java
Miles interval selection exceptions
This commit is contained in:
parent
d949e08bd6
commit
8311a5071f
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue