add orientation data for mock shuttles function

This commit is contained in:
2025-03-17 13:18:34 -07:00
parent d9d11e1b31
commit c0b7d99e8e

View File

@@ -13,9 +13,39 @@ export function generateMockSystems(): ISystem[] {
export function generateMockShuttles(): IShuttle[] { export function generateMockShuttles(): IShuttle[] {
return [ return [
{ id: "sh1", name: "Shuttle A", routeId: "r1", systemId: "sys1", coordinates: { latitude: 10, longitude: 20 } }, {
{ id: "sh2", name: "Shuttle B", routeId: "r2", systemId: "sys2", coordinates: { latitude: 15, longitude: 25 } }, id: "sh1",
{ id: "sh3", name: "Shuttle C", routeId: "r3", systemId: "sys3", coordinates: { latitude: 30, longitude: 40 } }, name: "Shuttle A",
routeId: "r1",
systemId: "sys1",
coordinates: {
latitude: 10,
longitude: 20
},
orientationInDegrees: 25.163
},
{
id: "sh2",
name: "Shuttle B",
routeId: "r2",
systemId: "sys2",
coordinates: {
latitude: 15,
longitude: 25
},
orientationInDegrees: 50.912
},
{
id: "sh3",
name: "Shuttle C",
routeId: "r3",
systemId: "sys3",
coordinates: {
latitude: 30,
longitude: 40
},
orientationInDegrees: 321.019
},
]; ];
} }
@@ -50,4 +80,4 @@ export function generateMockEtas(): IEta[] {
{ shuttleId: "sh1", stopId: "st2", secondsRemaining: 180 }, { shuttleId: "sh1", stopId: "st2", secondsRemaining: 180 },
{ shuttleId: "sh2", stopId: "st3", secondsRemaining: 240 }, { shuttleId: "sh2", stopId: "st3", secondsRemaining: 240 },
]; ];
} }