feat: redesign dashboard around place search
This commit is contained in:
@@ -23,6 +23,19 @@ export interface SynopStation {
|
||||
pressure: number | null;
|
||||
}
|
||||
|
||||
export interface RawMeteoStation {
|
||||
kod_stacji?: string | null;
|
||||
nazwa_stacji?: string | null;
|
||||
lon?: string | null;
|
||||
lat?: string | null;
|
||||
}
|
||||
|
||||
export interface MeteoStationPosition {
|
||||
name: string;
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
}
|
||||
|
||||
export interface RawHydroStation {
|
||||
id_stacji?: string | null;
|
||||
stacja?: string | null;
|
||||
|
||||
16
types/location.ts
Normal file
16
types/location.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export interface LocationSearchResult {
|
||||
id: number;
|
||||
name: string;
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
province: string | null;
|
||||
district: string | null;
|
||||
}
|
||||
|
||||
export interface SelectedLocation {
|
||||
name: string;
|
||||
province: string | null;
|
||||
stationId: string;
|
||||
stationName: string;
|
||||
distanceKm: number;
|
||||
}
|
||||
Reference in New Issue
Block a user