fix(directions): show a 996 m leg as 1.0 km, not 1000 m

routeDistanceText checked the raw meters against 1000 but printed them rounded to tens, so 995 m or more read "1000 m". Compare the rounded value so it moves to kilometres.
This commit is contained in:
Rudy Celekli committed 2026-10-25 11:32:15 -04:00
1 parent abd81155f9
commit b7e00f18a4
3 files changed
+7 -1

No files matched your search

@@ -0,0 +1,3 @@
- Show a route leg of 995 m or more as 1.0 km. The route summary and step
cards kept meters below 1000, then rounded 996 m up to "1000 m"
(Rudy Celekli, @rudycelekli, #1386).