Cache category search results

And abort ongoing searches when there's a new query
This commit is contained in:
2026-03-20 19:27:26 +04:00
parent 7e98b6796c
commit 9183e3c366
3 changed files with 67 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ export default class SearchRoute extends Route {
};
}
pois = await this.osm.getCategoryPois(bounds, params.category);
pois = await this.osm.getCategoryPois(bounds, params.category, lat, lon);
// Sort by distance from center
pois = pois