feat: add route 80

This commit is contained in:
Diego Mireles
2026-05-23 12:36:09 -06:00
parent 01f01ebd0a
commit 295bb0a6b8
2 changed files with 17 additions and 1 deletions

View File

@@ -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" },
],
},
];

View File

@@ -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;