Filter meteo warnings by local county
This commit is contained in:
@@ -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" },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user