Files
maplibre-poc/types/meters.ts
2025-08-20 10:33:17 +02:00

29 lines
532 B
TypeScript

/**
* Shared type definitions for Saudi Meters data
* Used by both frontend and backend projects
*/
export interface MeterProperties {
id: string
maker: string
model: string
timestamp: string
}
export interface MeterFeature {
type: "Feature"
geometry: {
type: "Point"
coordinates: [number, number]
}
properties: MeterProperties
}
export interface MetersCollection {
type: "FeatureCollection"
features: MeterFeature[]
}
// Type alias for convenience
export type GeoJSONMeterData = MetersCollection