From c4a78fca53a5cd9a93745c5a87944047bd693a1e Mon Sep 17 00:00:00 2001 From: Marc Gavanier Date: Thu, 3 Oct 2024 16:30:58 +0200 Subject: [PATCH] fix: change geocode api url --- src/transformer/data/localisation/localisation-from-geo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformer/data/localisation/localisation-from-geo.ts b/src/transformer/data/localisation/localisation-from-geo.ts index eb87dc91..b34a551c 100644 --- a/src/transformer/data/localisation/localisation-from-geo.ts +++ b/src/transformer/data/localisation/localisation-from-geo.ts @@ -15,7 +15,7 @@ const toLocalisation = (response: AxiosResponse): Localisation => export const localisationByGeocode = (adresse: Adresse) => async (): Promise => { const response: AxiosResponse = await axios.get( - `https://wxs.ign.fr/essentiels/geoportail/geocodage/rest/0.1/search?q=${adresse.voie}&postcode=${adresse.code_postal}&city=${adresse.commune}` + `https://data.geopf.fr/geocodage/search?q=${adresse.voie} ${adresse.code_postal} ${adresse.commune}` ); return isValid(adresse, response) ? toLocalisation(response) : NO_LOCALISATION;