Add boost option to API Géo calls

pull/361/head
Jérôme Desboeufs 2018-09-13 17:29:10 +02:00 committed by GitHub
parent 9f6ba59bba
commit d57a4b3ac9
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)