Commit 3b65d02
fix: wrap replay bearing to [0, 360) and compute first-point bearing
TurfMeasurement.bearing() returns [-180, 180] but Android Location expects [0, 360). Apply MathUtils.wrap() consistent with SnapToRoute. Also derive first point bearing from route direction instead of hardcoding 0 (north).1 parent 534334f commit 3b65d02
1 file changed
Lines changed: 5 additions & 1 deletion
File tree
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| |||
0 commit comments