From 7061660e7d475fe3ed016858a49a0c9b7ba10c18 Mon Sep 17 00:00:00 2001
From: Ariel Costas Guerrero <ariel@costas.dev>
Date: Fri, 21 Nov 2025 10:53:03 +0100
Subject: Show path from bus position to terminus

---
 src/frontend/app/routes/stops-$id.tsx | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'src/frontend/app/routes/stops-$id.tsx')

diff --git a/src/frontend/app/routes/stops-$id.tsx b/src/frontend/app/routes/stops-$id.tsx
index a2b2da3..024ea73 100644
--- a/src/frontend/app/routes/stops-$id.tsx
+++ b/src/frontend/app/routes/stops-$id.tsx
@@ -23,6 +23,7 @@ export interface ConsolidatedCirculation {
     minutes: number;
     serviceId: string;
     tripId: string;
+    shapeId?: string;
   };
   realTime?: {
     minutes: number;
@@ -32,6 +33,7 @@ export interface ConsolidatedCirculation {
     latitude: number;
     longitude: number;
     orientationDegrees: number;
+    shapeIndex?: number;
   };
 }
 
@@ -269,6 +271,11 @@ export default function Estimates() {
               line: c.line,
               route: c.route,
               currentPosition: c.currentPosition,
+              schedule: c.schedule
+                ? {
+                    shapeId: c.schedule.shapeId,
+                  }
+                : undefined,
             }))}
             isOpen={isMapModalOpen}
             onClose={() => setIsMapModalOpen(false)}
-- 
cgit v1.3

