Skip to content

Commit

Permalink
fix: change geocode api url
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-gavanier committed Oct 3, 2024
1 parent 8c74f16 commit c4a78fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformer/data/localisation/localisation-from-geo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const toLocalisation = (response: AxiosResponse): Localisation =>

export const localisationByGeocode = (adresse: Adresse) => async (): Promise<Localisation> => {
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;
Expand Down

0 comments on commit c4a78fc

Please sign in to comment.