Skip to content
Snippets Groups Projects
Commit 9d3dd191 authored by Stephanie Freitag's avatar Stephanie Freitag
Browse files

Merge branch 'NOISSUE-change-bias' into 'main'

NOISSUE: exchange countrycode bias by rect bias around germany

See merge request app/holi-geo-api!47
parents 221cd5d4 58664c81
No related branches found
No related tags found
No related merge requests found
......@@ -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',
}
......@@ -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] })
})
......
......@@ -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',
)
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment