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

@@ -25,13 +25,14 @@ type MonitorSummary struct {
}
type MonitorMapResponse struct {
Mode string `json:"mode"`
Zoom int `json:"zoom"`
Total int `json:"total"`
Truncated bool `json:"truncated"`
Points []MonitorMapPoint `json:"points"`
Clusters []MonitorMapCluster `json:"clusters"`
AsOf string `json:"asOf"`
Mode string `json:"mode"`
Zoom int `json:"zoom"`
Total int `json:"total"`
Truncated bool `json:"truncated"`
Points []MonitorMapPoint `json:"points"`
Clusters []MonitorMapCluster `json:"clusters"`
ProvincePoints []MonitorMapProvincePoint `json:"provincePoints"`
AsOf string `json:"asOf"`
}
type MonitorWorkspaceResponse struct {
@@ -69,6 +70,16 @@ type MonitorMapCluster struct {
Unknown int `json:"unknown"`
}
// MonitorMapProvincePoint is deliberately compact and identity-free. At the
// nationwide zoom the browser groups these already-scoped coordinates with
// AMap's cached administrative boundary node, while Clusters remain available
// as a no-blank-map fallback if the boundary resource cannot be loaded.
type MonitorMapProvincePoint struct {
Longitude float64 `json:"longitude"`
Latitude float64 `json:"latitude"`
Status string `json:"status"`
}
type TrackPlaybackResponse struct {
VIN string `json:"vin"`
Plate string `json:"plate"`