From 56c2e739d95dd7b64a7332e2320579925c1751a9 Mon Sep 17 00:00:00 2001
From: Ariel Costas Guerrero <ariel@costas.dev>
Date: Fri, 13 Mar 2026 10:09:30 +0100
Subject: Refactor geolocation settings across components; improve accuracy and
 timeout configurations

---
 src/frontend/app/routes/planner.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/frontend/app/routes/planner.tsx')

diff --git a/src/frontend/app/routes/planner.tsx b/src/frontend/app/routes/planner.tsx
index 7bfc5a3..b7ecaf9 100644
--- a/src/frontend/app/routes/planner.tsx
+++ b/src/frontend/app/routes/planner.tsx
@@ -831,7 +831,11 @@ export default function PlannerPage() {
                     () => {
                       // If geolocation fails, just keep origin empty
                     },
-                    { enableHighAccuracy: true, timeout: 10000 }
+                    {
+                      enableHighAccuracy: true,
+                      timeout: 10000,
+                      maximumAge: 60 * 60 * 1000, // 1 hour in milliseconds
+                    }
                   );
                 }
               }}
-- 
cgit v1.3

