Index

src/tracking/gps-simulator.service.ts

LatLng

Per-organization GPS simulator.

The simulator boots once at app start and ticks every 5 seconds. Each tick it iterates organizations and only moves vehicles for orgs whose effective tracking mode is demo (org.settings.tracking.mode === 'demo' OR no tracking config at all OR live mode without verified telematics).

Why per-org: a multi-tenant deployment may have one customer running the demo simulator (sandbox / sales pitch) and another customer pulling real positions from Mix Telematics — we must never let the simulator stomp on real GPS data, and we must never make a real customer's map stand still just because the demo customer wants animation.

Routes: vehicles are distributed across multiple Kenyan road corridors so the demo map looks like a real fleet (Nairobi-Mombasa, Nairobi-Thika, Nairobi-Naivasha-Nakuru, Nairobi-Nyeri, Nairobi-Kisumu). Each vehicle is assigned a route based on its current position so the movement looks plausible relative to where the dispatcher last saw it.

[number, number]

src/users/dto/customization.dto.ts

TelematicsProvider
unknown
TrackingMode
unknown

results matching ""

    No results matching ""