good changes
This commit is contained in:
parent
160283f1a1
commit
c997ea46a5
26 changed files with 991 additions and 288 deletions
|
|
@ -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')!;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue