Explorar el Código

AddressApiController : récupération de toutes les adresses en France

develop
Guillaume Bourgeois hace 1 mes
padre
commit
aba1ee4a81
Se han modificado 1 ficheros con 5 adiciones y 2 borrados
  1. +5
    -2
      Controller/Address/AddressApiController.php

+ 5
- 2
Controller/Address/AddressApiController.php Ver fichero

@@ -27,10 +27,13 @@ class AddressApiController extends AbstractController
$data['nom'] = $term;
}

$result = array_merge(
// Uniquement bourgogne franche-comté
/*$result = array_merge(
json_decode($citiesComponent->callCitiesApi('get', 'communes', array_merge($data, ['codeRegion' => 27]))),
json_decode($citiesComponent->callCitiesApi('get', 'communes', array_merge($data, ['codeRegion' => 44])))
);
);*/

$result = json_decode($citiesComponent->callCitiesApi('get', 'communes', $data));

$return = [];
foreach ($result as $city) {

Cargando…
Cancelar
Guardar