47 lines
1.1 KiB
TypeScript
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;
|
|
}
|