Navigation engine: windowed snapping to the route polyline #31
Labels
No labels
area:companion
area:docs
area:shared
area:tooling
area:watchapp
blocker
kind:chore
kind:feature
kind:spike
kind:test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
robert/PedalPebble#31
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Locate the rider along the route cheaply and without jumping.
Acceptance criteria
Files
companion/.../route/nav/RouteSnapper.ktUpdate — 2026-09-01: monotonicity and re-routing interact
asserted in tests (#39), not merely intended
its own monotonic distance axis, swapped in once at the moment the detour is accepted —
rather than mutating the route this engine is mid-way through reading
See D30. The rejoin point is the part everyone thinks of; the splice is the part that breaks
invariants.
Update — 2026-09-02: monotonicity is now free
D42 removes mid-ride re-routing from Phase 3, so the route object never changes during a ride.
Distance-along-route is therefore monotonic by construction rather than by rule.
out-and-back
The Phase 5 re-routing issue reintroduces a route swap, and carries the monotonic-axis requirement
itself.