29 lines
532 B
TypeScript
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
|