feat(monitor): aggregate nationwide fleet by province
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user