Skip to content

Commit

Permalink
[chore-6158]: Reduce geosearch distance (#2962)
Browse files Browse the repository at this point in the history
* Reduce geosearch distance

* Update test
  • Loading branch information
alimpens authored Sep 16, 2024
1 parent 0ee5895 commit f5a2c75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('formatRequest', () => {

it('should format correct without distance', () => {
expect(formatRequest('https://base-url', testLocation)).toEqual(
`${result}50`
`${result}30`
)
})

Expand Down
2 changes: 1 addition & 1 deletion src/shared/services/reverse-geocoder/reverse-geocoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const serviceURL = `${configuration.map.pdok.reverse}?type=adres&rows=1&f
export const formatRequest = (
baseUrl: URL | string,
wgs84point: LatLngLiteral,
distance = 50
distance = 30
) => {
const { x, y } = wgs84ToRd(wgs84point)
return `${new URL(baseUrl).toString()}&X=${x}&Y=${y}&distance=${distance}`
Expand Down

0 comments on commit f5a2c75

Please sign in to comment.