Initial commit

This commit is contained in:
Julio Cesar
2025-08-20 08:13:18 +02:00
commit ed7912129f
38 changed files with 337268 additions and 0 deletions

6
types/index.ts Normal file
View File

@@ -0,0 +1,6 @@
/**
* Shared types index
* Re-exports all type definitions for easy importing
*/
export * from "./meters"

28
types/meters.ts Normal file
View File

@@ -0,0 +1,28 @@
/**
* 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