diff --git a/backend/src/data/mocks/routes.mock.ts b/backend/src/data/mocks/routes.mock.ts index da0b40d..2c05331 100644 --- a/backend/src/data/mocks/routes.mock.ts +++ b/backend/src/data/mocks/routes.mock.ts @@ -304,4 +304,20 @@ export const routes: MockRoute[] = [ { positionId: 8, lat: 20.5111, lng: -100.9037, speed: 45, timestamp: "2026-05-22T07:49:00Z" }, ], }, + { + routeId: "RUTA-80", + name: "Sector Residencial Sur - Fracc. Pinos Sur", + truckId: 180, + status: "EN_RUTA", + positions: [ + { positionId: 1, lat: 20.5111, lng: -100.9037, speed: 0, timestamp: "2026-05-22T07:00:00Z" }, + { positionId: 2, lat: 20.5050, lng: -100.8550, speed: 42, timestamp: "2026-05-22T07:12:00Z" }, + { positionId: 3, lat: 20.4980, lng: -100.8200, speed: 25, timestamp: "2026-05-22T07:25:00Z" }, + { positionId: 4, lat: 20.4920, lng: -100.8050, speed: 15, timestamp: "2026-05-22T07:38:00Z" }, + { positionId: 5, lat: 20.4880, lng: -100.7990, speed: 0, timestamp: "2026-05-22T07:50:00Z" }, + { positionId: 6, lat: 20.4910, lng: -100.7960, speed: 18, timestamp: "2026-05-22T08:05:00Z" }, + { positionId: 7, lat: 20.4955, lng: -100.8030, speed: 22, timestamp: "2026-05-22T08:18:00Z" }, + { positionId: 8, lat: 20.5111, lng: -100.9037, speed: 38, timestamp: "2026-05-22T08:40:00Z" }, + ], + }, ]; \ No newline at end of file diff --git a/backend/src/data/simulation/route-simulator.ts b/backend/src/data/simulation/route-simulator.ts index 22d9d7c..d801be5 100644 --- a/backend/src/data/simulation/route-simulator.ts +++ b/backend/src/data/simulation/route-simulator.ts @@ -17,7 +17,7 @@ import type { NotificationCacheRepository } from "../../domain/repositories/noti import type { RouteStateRepository } from "../../domain/repositories/route-state.repository.js"; const TICK_INTERVAL_MS = 30_000; // 30 segundos -const SIMULATED_ROUTE_IDS = ["RUTA-01"]; +const SIMULATED_ROUTE_IDS = ["RUTA-01", "RUTA-80"]; export class RouteSimulator { private timer: NodeJS.Timeout | null = null;