|
|
|
|
|
|
|
|
$data['nom'] = $term; |
|
|
$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' => 27]))), |
|
|
json_decode($citiesComponent->callCitiesApi('get', 'communes', array_merge($data, ['codeRegion' => 44]))) |
|
|
json_decode($citiesComponent->callCitiesApi('get', 'communes', array_merge($data, ['codeRegion' => 44]))) |
|
|
); |
|
|
|
|
|
|
|
|
);*/ |
|
|
|
|
|
|
|
|
|
|
|
$result = json_decode($citiesComponent->callCitiesApi('get', 'communes', $data)); |
|
|
|
|
|
|
|
|
$return = []; |
|
|
$return = []; |
|
|
foreach ($result as $city) { |
|
|
foreach ($result as $city) { |