Filter meteo warnings by local county

This commit is contained in:
zv
2026-06-12 19:16:57 +02:00
parent 5eaaff963f
commit 487a480bbd
19 changed files with 154 additions and 30 deletions

View File

@@ -11,6 +11,7 @@ interface RawReverseLocation {
town?: string;
village?: string;
municipality?: string;
county?: string;
state?: string;
};
}
@@ -56,6 +57,7 @@ export async function GET(request: Request) {
return NextResponse.json({
name,
province: data.address?.state ?? null,
district: data.address?.county ?? null,
}, {
headers: { "Cache-Control": "public, s-maxage=86400, stale-while-revalidate=604800" },
});