Merge pull request #361 from betagouv/api-geo-boost

Améliore la pertinence des résultats pour l'auto-complétion des noms de commune
pull/362/head
Mael 2018-09-13 17:36:17 +02:00 committed by GitHub
commit 2a6f885aa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ let getOptions = input =>
input.length < 3
? Promise.resolve({ options: [] })
: fetch(
`https://geo.api.gouv.fr/communes?nom=${input}&fields=nom,code,departement,region&`
`https://geo.api.gouv.fr/communes?nom=${input}&fields=nom,code,departement,region&boost=population`
)
.then(response => {
if (!response.ok)