mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add parking structures generator
This commit is contained in:
@@ -1,8 +1,37 @@
|
|||||||
import { IEta, IOrderedStop, IRoute, IShuttle, IStop } from "../../src/entities/ShuttleRepositoryEntities";
|
import { IEta, IOrderedStop, IRoute, IShuttle, IStop } from "../../src/entities/ShuttleRepositoryEntities";
|
||||||
|
import { IParkingStructure } from "../../src/entities/ParkingRepositoryEntities";
|
||||||
|
|
||||||
// Use a single set of generators in case any of the
|
// Use a single set of generators in case any of the
|
||||||
// interfaces change in the future
|
// interfaces change in the future
|
||||||
|
|
||||||
|
export function generateParkingStructures(): IParkingStructure[] {
|
||||||
|
// Copied from debugger
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
"capacity": 871,
|
||||||
|
"coordinates": {
|
||||||
|
"latitude": 33.7945513,
|
||||||
|
"longitude": -117.8518707
|
||||||
|
},
|
||||||
|
"id": "b0723baf8a6b8bcc37c821473373049e",
|
||||||
|
"name": "Anderson Structure",
|
||||||
|
"spotsAvailable": 163,
|
||||||
|
"address": "300 E Walnut, Orange, CA 92867"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"capacity": 692,
|
||||||
|
"coordinates": {
|
||||||
|
"latitude": 33.792937,
|
||||||
|
"longitude": -117.854782
|
||||||
|
},
|
||||||
|
"id": "81b9e1ed004cf6def2e6c568aaf79ece",
|
||||||
|
"name": "Barrera",
|
||||||
|
"spotsAvailable": 179,
|
||||||
|
"address": "200 W Sycamore Ave, Orange, CA 92866-1053"
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
export function generateMockShuttles(): IShuttle[] {
|
export function generateMockShuttles(): IShuttle[] {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user