feat: add global weather support
All checks were successful
CI / Lint, typecheck and build (push) Successful in 9m54s

This commit is contained in:
zv
2026-06-14 15:53:34 +02:00
parent d572c9cc53
commit 2182297adc
45 changed files with 739 additions and 212 deletions

View File

@@ -1,3 +1,5 @@
import type { WeatherRegion } from "@/types/weather-region";
export interface LocationSearchResult {
id: number;
name: string;
@@ -5,22 +7,40 @@ export interface LocationSearchResult {
longitude: number;
province: string | null;
district: string | null;
country: string | null;
countryCode: string | null;
admin1: string | null;
admin2: string | null;
timezone: string | null;
region: WeatherRegion;
}
export interface ReverseLocationResult {
name: string;
province: string | null;
district: string | null;
country: string | null;
countryCode: string | null;
admin1: string | null;
admin2: string | null;
timezone: string | null;
region: WeatherRegion;
}
export interface SelectedLocation {
name: string;
province: string | null;
district: string | null;
country: string | null;
countryCode: string | null;
admin1: string | null;
admin2: string | null;
timezone: string | null;
region: WeatherRegion;
countyTeryt: string | null;
latitude: number;
longitude: number;
stationId: string;
stationName: string;
distanceKm: number;
stationId: string | null;
stationName: string | null;
distanceKm: number | null;
}