From 7f526140c3e63170e9600547032bbb0f4635ea7a Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 12 Oct 2025 15:45:29 +0200 Subject: [PATCH 1/2] Upgrade geodb plan to increase radius and page limit --- backend/api/src/search-near-city.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/api/src/search-near-city.ts b/backend/api/src/search-near-city.ts index 33ab5318..046c7f8a 100644 --- a/backend/api/src/search-near-city.ts +++ b/backend/api/src/search-near-city.ts @@ -2,8 +2,7 @@ import {APIHandler} from './helpers/endpoint' import {geodbFetch} from "common/geodb"; const searchNearCityMain = async (cityId: string, radius: number) => { - // Limit to 10 cities for now for free plan, was 100 before (may need to buy plan) - const endpoint = `/cities/${cityId}/nearbyCities?radius=${radius}&offset=0&sort=-population&limit=10` + const endpoint = `/cities/${cityId}/nearbyCities?radius=${radius}&offset=0&sort=-population&limit=100` return await geodbFetch(endpoint) } From 12d73b94aefccb2b89150f2e37bdd01db99904c5 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 12 Oct 2025 15:56:33 +0200 Subject: [PATCH 2/2] Speed location debounce --- web/components/search-location.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/search-location.tsx b/web/components/search-location.tsx index ddeb229a..004d4c60 100644 --- a/web/components/search-location.tsx +++ b/web/components/search-location.tsx @@ -113,7 +113,7 @@ export const useCitySearch = () => { } else { fetchData() } - }, 1000) + }, 400) return () => { clearTimeout(debounce)