All changes

This commit is contained in:
Andras Schmelczer 2026-03-14 21:36:00 +00:00
parent 593f380581
commit 49f7ec2f5a
60 changed files with 1783 additions and 679 deletions

View file

@ -38,6 +38,7 @@ export function parseUrlState(): {
poiCategories?: Set<string>;
tab?: 'properties' | 'area';
travelTime?: TravelTimeInitial;
postcode?: string;
} {
const params = new URLSearchParams(window.location.search);
const result: ReturnType<typeof parseUrlState> = {};
@ -70,6 +71,12 @@ export function parseUrlState(): {
result.tab = tab;
}
// Navigate-to-postcode: one-time param for opening a saved property
const pc = params.get('pc');
if (pc) {
result.postcode = pc;
}
// Travel time: repeated `tt` params
// Format: mode:slug:label or mode:slug:label:b or mode:slug:label:min:max or mode:slug:label:b:min:max
const ttParams = params.getAll('tt');