Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[ios] Round to nearest foot
Browse files Browse the repository at this point in the history
  • Loading branch information
frederoni committed Apr 4, 2017
1 parent edba40e commit 46d2a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/darwin/src/MGLDistanceFormatter.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ - (NSString *)stringFromDistance:(CLLocationDistance)distance {
return [self stringFromValue:miles unit:unit];
} else {
unit = NSLengthFormatterUnitFoot;
self.numberFormatter.roundingIncrement = @50;
self.numberFormatter.roundingIncrement = @1;
return [self stringFromValue:feet unit:unit];
}
} else {
Expand Down

0 comments on commit 46d2a5a

Please sign in to comment.