Files
wtr/types/location.ts
zv 2182297adc
All checks were successful
CI / Lint, typecheck and build (push) Successful in 9m54s
feat: add global weather support
2026-06-14 15:59:14 +02:00

47 lines
1.1 KiB
TypeScript

import type { WeatherRegion } from "@/types/weather-region";
export interface LocationSearchResult {
id: number;
name: string;
latitude: number;
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 | null;
stationName: string | null;
distanceKm: number | null;
}