good changes

This commit is contained in:
Andras Schmelczer 2026-03-25 08:04:48 +00:00
parent 160283f1a1
commit c997ea46a5
26 changed files with 991 additions and 288 deletions

View file

@ -46,6 +46,12 @@ export class ScreenshotCache {
normalized.poi = pois.join(',');
}
// Sort travel time entries
const tt = params.getAll('tt').sort();
if (tt.length > 0) {
normalized.tt = tt.join(',');
}
if (params.get('tab')) {
normalized.tab = params.get('tab')!;
}

View file

@ -41,8 +41,8 @@ app.get('/screenshot', async (req, res) => {
qs.set(key, val);
}
}
// Repeated params: filter, poi
for (const key of ['filter', 'poi']) {
// Repeated params: filter, poi, tt (travel time)
for (const key of ['filter', 'poi', 'tt']) {
const val = req.query[key];
if (typeof val === 'string' && val) {
qs.append(key, val);