diff --git a/app/geoapify_api_types.ts b/app/geoapify_api_types.ts index 7e22c16ef40cb22183800c87ca27d5eec2919fbc..2da1580dfde4a683778510423bcaaf9c2b1c8454 100644 --- a/app/geoapify_api_types.ts +++ b/app/geoapify_api_types.ts @@ -32,5 +32,5 @@ export type GeoapifyPlaceDetailsResult = { export enum GeoapifyFilters { LIMIT = 3, FORMAT = 'json', - BIAS = 'countrycode:de', + BIAS = 'rect:5.9,47.3,15.1,55', } diff --git a/app/geoapify_test.ts b/app/geoapify_test.ts index 0bc7ca8022666b8ec3068c278dfb578d96f6ab36..e68e4f0a2076db76e906e301058d8e039046533d 100644 --- a/app/geoapify_test.ts +++ b/app/geoapify_test.ts @@ -93,9 +93,8 @@ describe('places', () => { DEFAULT_LANGUAGE, placesApiKey, ) - const expectedUrl = new URL( - `https://api.geoapify.com/v1/geocode/autocomplete?text=Munich&limit=3&format=json&lang=en&bias=countrycode%3Ade&apiKey=${placesApiKey}`, + `https://api.geoapify.com/v1/geocode/autocomplete?text=Munich&limit=3&format=json&lang=en&bias=rect%3A5.9%2C47.3%2C15.1%2C55&apiKey=${placesApiKey}`, ) assertSpyCall(fetchStub, 0, { args: [expectedUrl] }) }) diff --git a/app/server.ts b/app/server.ts index f8ba4e369d4567cedcd4052a1f988ddb265d3a77..bb1916a5644152fd5956dd50ba9b01a520e290c1 100644 --- a/app/server.ts +++ b/app/server.ts @@ -160,7 +160,7 @@ export const startServer = (config: ServerConfig): Promise<void> => { ) if (config.fake) { logger.info( - `Server is serving fake data due to FAKE env var set to true`, + 'Server is serving fake data due to FAKE env var set to true', ) } },