mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add orientation data for mock shuttles function
This commit is contained in:
@@ -13,9 +13,39 @@ export function generateMockSystems(): ISystem[] {
|
||||
|
||||
export function generateMockShuttles(): IShuttle[] {
|
||||
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: "sh3", name: "Shuttle C", routeId: "r3", systemId: "sys3", coordinates: { latitude: 30, longitude: 40 } },
|
||||
{
|
||||
id: "sh1",
|
||||
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
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user