houses: keep Kamernet to the Gouda region (small-city pages are padded with listings from all over NL), share GOUDA_REGION
All checks were successful
Deploy production / deploy (push) Successful in 2m42s

This commit is contained in:
2026-10-24 14:22:58 +00:00
parent 07d2c70973
commit 8818dde99d
3 changed files with 36 additions and 20 deletions

View File

@@ -102,3 +102,19 @@ export function addressKeyFromText(
const { street, houseNumber } = splitAddress(text.replace(/,.*$/, ''));
return addressKey(street, houseNumber, city);
}
// The area Stan and Juhee are looking in (same list as the "Gouda area rentals" alert rule):
// the page's default filter and the Kamernet scraper's scope.
export const GOUDA_REGION = [
'gouda',
'waddinxveen',
'reeuwijk',
'moordrecht',
'nieuwerkerk-aan-den-ijssel',
'zevenhuizen',
'bodegraven',
'boskoop',
'oudewater',
'schoonhoven',
'haastrecht'
] as const;

View File

@@ -29,22 +29,10 @@ import {
normalizeKeys,
toColumns
} from '#lib/house-tracker/manual.js';
import { GOUDA_REGION } from '#lib/house-tracker/address.js';
import type { Actions, PageServerLoad } from './$types';
// The area Stan and Juhee are looking in (same list as the "Gouda area rentals" alert rule).
const REGION = [
'gouda',
'waddinxveen',
'reeuwijk',
'moordrecht',
'nieuwerkerk-aan-den-ijssel',
'zevenhuizen',
'bodegraven',
'boskoop',
'oudewater',
'schoonhoven',
'haastrecht'
] as const;
const REGION = GOUDA_REGION;
const DEFAULTS = { city: 'region', max: '1800', area: '35' } as const;
const int = (value: string | null) => {