aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/routes
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-11-21 10:53:03 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-11-21 10:53:03 +0100
commit7061660e7d475fe3ed016858a49a0c9b7ba10c18 (patch)
tree3b27e96d7a6d2148ab7cccc3785e3c000342a796 /src/frontend/app/routes
parent4fcf9ad479441e7661933b954cc878355bde1e5d (diff)
Show path from bus position to terminus
Diffstat (limited to 'src/frontend/app/routes')
-rw-r--r--src/frontend/app/routes/stops-$id.tsx7
1 files changed, 7 insertions, 0 deletions
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)}