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;