feat(monitor): aggregate nationwide fleet by province

This commit is contained in:
lingniu
2026-07-16 18:36:31 +08:00
parent ea4d576793
commit 21d1baada5
9 changed files with 598 additions and 32 deletions

View File

@@ -123,13 +123,20 @@ export interface MonitorMapCluster {
unknown: number;
}
export interface MonitorMapProvincePoint {
longitude: number;
latitude: number;
status: 'driving' | 'idle' | 'offline' | 'unknown';
}
export interface MonitorMapResponse {
mode: 'clusters' | 'mixed' | 'points';
mode: 'provinces' | 'clusters' | 'mixed' | 'points';
zoom: number;
total: number;
truncated: boolean;
points: MonitorMapPoint[];
clusters: MonitorMapCluster[];
provincePoints?: MonitorMapProvincePoint[];
asOf: string;
}