feat: announce going off route
All checks were successful
TrafficCue CI / check (push) Successful in 57s
TrafficCue CI / build (push) Successful in 1m41s
TrafficCue CI / build-android (push) Successful in 13m41s

This commit is contained in:
2025-09-13 20:44:57 +02:00
parent 2c702c4588
commit 32448cb2a8

View File

@ -179,10 +179,16 @@ async function tickRoute() {
// Check if the user is on the route
if (!isOnShape(loc, polyline)) {
console.log("Off route!");
if (!info.isOffRoute) {
say("You went off route.");
}
info.isOffRoute = true;
// TODO: Implement re-routing logic
return;
} else {
if (info.isOffRoute) {
say("You are back on route.");
}
info.isOffRoute = false;
}