|
|
|
|
@@ -17,7 +17,7 @@ export function generateParkingStructures(): IParkingStructure[] {
|
|
|
|
|
"name": "Anderson Structure",
|
|
|
|
|
"spotsAvailable": 163,
|
|
|
|
|
"address": "300 E Walnut, Orange, CA 92867",
|
|
|
|
|
updatedTime: Date.now(),
|
|
|
|
|
updatedTime: new Date(),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"capacity": 692,
|
|
|
|
|
@@ -29,7 +29,7 @@ export function generateParkingStructures(): IParkingStructure[] {
|
|
|
|
|
"name": "Barrera",
|
|
|
|
|
"spotsAvailable": 179,
|
|
|
|
|
"address": "200 W Sycamore Ave, Orange, CA 92866-1053",
|
|
|
|
|
updatedTime: Date.now(),
|
|
|
|
|
updatedTime: new Date(),
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
@@ -46,7 +46,7 @@ export function generateMockShuttles(): IShuttle[] {
|
|
|
|
|
longitude: 20
|
|
|
|
|
},
|
|
|
|
|
orientationInDegrees: 25.163,
|
|
|
|
|
updatedTime: Date.now(),
|
|
|
|
|
updatedTime: new Date(),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "sh2",
|
|
|
|
|
@@ -58,7 +58,7 @@ export function generateMockShuttles(): IShuttle[] {
|
|
|
|
|
longitude: 25
|
|
|
|
|
},
|
|
|
|
|
orientationInDegrees: 50.912,
|
|
|
|
|
updatedTime: Date.now(),
|
|
|
|
|
updatedTime: new Date(),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: "sh3",
|
|
|
|
|
@@ -70,40 +70,40 @@ export function generateMockShuttles(): IShuttle[] {
|
|
|
|
|
longitude: 40
|
|
|
|
|
},
|
|
|
|
|
orientationInDegrees: 321.019,
|
|
|
|
|
updatedTime: Date.now(),
|
|
|
|
|
updatedTime: new Date(),
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function generateMockRoutes(): IRoute[] {
|
|
|
|
|
return [
|
|
|
|
|
{ id: "r1", name: "Route 1", color: "red", systemId: "sys1", polylineCoordinates: [], updatedTime: Date.now() },
|
|
|
|
|
{ id: "r2", name: "Route 2", color: "blue", systemId: "sys2", polylineCoordinates: [], updatedTime: Date.now() },
|
|
|
|
|
{ id: "r3", name: "Route 3", color: "green", systemId: "sys3", polylineCoordinates: [], updatedTime: Date.now() },
|
|
|
|
|
{ id: "r1", name: "Route 1", color: "red", systemId: "sys1", polylineCoordinates: [], updatedTime: new Date() },
|
|
|
|
|
{ id: "r2", name: "Route 2", color: "blue", systemId: "sys2", polylineCoordinates: [], updatedTime: new Date() },
|
|
|
|
|
{ id: "r3", name: "Route 3", color: "green", systemId: "sys3", polylineCoordinates: [], updatedTime: new Date() },
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function generateMockStops(): IStop[] {
|
|
|
|
|
return [
|
|
|
|
|
{ id: "st1", name: "Stop A", systemId: "sys1", coordinates: { latitude: 10, longitude: 20 }, updatedTime: Date.now() },
|
|
|
|
|
{ id: "st2", name: "Stop B", systemId: "sys2", coordinates: { latitude: 15, longitude: 25 }, updatedTime: Date.now() },
|
|
|
|
|
{ id: "st3", name: "Stop C", systemId: "sys3", coordinates: { latitude: 30, longitude: 40 }, updatedTime: Date.now() },
|
|
|
|
|
{ id: "st1", name: "Stop A", systemId: "sys1", coordinates: { latitude: 10, longitude: 20 }, updatedTime: new Date() },
|
|
|
|
|
{ id: "st2", name: "Stop B", systemId: "sys2", coordinates: { latitude: 15, longitude: 25 }, updatedTime: new Date() },
|
|
|
|
|
{ id: "st3", name: "Stop C", systemId: "sys3", coordinates: { latitude: 30, longitude: 40 }, updatedTime: new Date() },
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function generateMockOrderedStops(): IOrderedStop[] {
|
|
|
|
|
return [
|
|
|
|
|
{ stopId: "st1", routeId: "r1", position: 1, systemId: "sys1", updatedTime: Date.now(), },
|
|
|
|
|
{ stopId: "st1", routeId: "r2", position: 2, systemId: "sys1", updatedTime: Date.now(), },
|
|
|
|
|
{ stopId: "st2", routeId: "r1", position: 3, systemId: "sys1", updatedTime: Date.now(), },
|
|
|
|
|
{ stopId: "st2", routeId: "r2", position: 4, systemId: "sys1", updatedTime: Date.now(), },
|
|
|
|
|
{ stopId: "st1", routeId: "r1", position: 1, systemId: "sys1", updatedTime: new Date(), },
|
|
|
|
|
{ stopId: "st1", routeId: "r2", position: 2, systemId: "sys1", updatedTime: new Date(), },
|
|
|
|
|
{ stopId: "st2", routeId: "r1", position: 3, systemId: "sys1", updatedTime: new Date(), },
|
|
|
|
|
{ stopId: "st2", routeId: "r2", position: 4, systemId: "sys1", updatedTime: new Date(), },
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function generateMockEtas(): IEta[] {
|
|
|
|
|
return [
|
|
|
|
|
{ shuttleId: "sh1", stopId: "st1", secondsRemaining: 120, systemId: "sys1", updatedTime: Date.now() },
|
|
|
|
|
{ shuttleId: "sh1", stopId: "st2", secondsRemaining: 180, systemId: "sys1", updatedTime: Date.now() },
|
|
|
|
|
{ shuttleId: "sh2", stopId: "st3", secondsRemaining: 240, systemId: "sys1", updatedTime: Date.now() },
|
|
|
|
|
{ shuttleId: "sh1", stopId: "st1", secondsRemaining: 120, systemId: "sys1", updatedTime: new Date() },
|
|
|
|
|
{ shuttleId: "sh1", stopId: "st2", secondsRemaining: 180, systemId: "sys1", updatedTime: new Date() },
|
|
|
|
|
{ shuttleId: "sh2", stopId: "st3", secondsRemaining: 240, systemId: "sys1", updatedTime: new Date() },
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|