autocomplete endpoint change

This commit is contained in:
Arnaud Delcasse
2026-02-03 12:57:48 +01:00
parent 764b301dbb
commit 29bc3a8bfa
4 changed files with 6 additions and 6 deletions

View File

@@ -22,7 +22,7 @@
this.responselength = 0
return []
}
result = await fetch("https://api-adresse.data.gouv.fr/search/?q=" + this.input)
result = await fetch("https://data.geopf.fr/geocodage/search/?q=" + this.input)
json = await result.json()
this.responselength = json["features"].length
return json["features"]
@@ -71,7 +71,7 @@
this.responselength = 0
return []
}
result = await fetch("https://api-adresse.data.gouv.fr/search/?q=" + this.input)
result = await fetch("https://data.geopf.fr/geocodage/search/?q=" + this.input)
json = await result.json()
this.responselength = json["features"].length
return json["features"]