autocomplete endpoint change
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
this.responselength = 0
|
this.responselength = 0
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
result = await fetch("https://api-adresse.data.gouv.fr/search/?q=" + this.input)
|
result = await fetch("https://data.geopf.fr/geocodage/search/?q=" + encodeURIComponent(this.input))
|
||||||
json = await result.json()
|
json = await result.json()
|
||||||
console.log(json)
|
console.log(json)
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
this.responselength = 0
|
this.responselength = 0
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
result = await fetch("https://api-adresse.data.gouv.fr/search/?q=" + this.input)
|
result = await fetch("https://data.geopf.fr/geocodage/search/?q=" + encodeURIComponent(this.input))
|
||||||
json = await result.json()
|
json = await result.json()
|
||||||
console.log(json)
|
console.log(json)
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
this.responselength = 0
|
this.responselength = 0
|
||||||
this.address = this.def
|
this.address = this.def
|
||||||
this.input = `{{ .Default.properties.label}}`
|
this.input = `{{ .Default.properties.label}}`
|
||||||
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()
|
json = await result.json()
|
||||||
|
|
||||||
bb = json['features'][0]
|
bb = json['features'][0]
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
return [bb]
|
return [bb]
|
||||||
}
|
}
|
||||||
|
|
||||||
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()
|
json = await result.json()
|
||||||
|
|
||||||
this.responselength = json['features'].length
|
this.responselength = json['features'].length
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
this.responselength = 0
|
this.responselength = 0
|
||||||
return []
|
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()
|
json = await result.json()
|
||||||
this.responselength = json["features"].length
|
this.responselength = json["features"].length
|
||||||
return json["features"]
|
return json["features"]
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
this.responselength = 0
|
this.responselength = 0
|
||||||
return []
|
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()
|
json = await result.json()
|
||||||
this.responselength = json["features"].length
|
this.responselength = json["features"].length
|
||||||
return json["features"]
|
return json["features"]
|
||||||
|
|||||||
Reference in New Issue
Block a user