aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/routes
diff options
context:
space:
mode:
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)}