浏览代码

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

develop
Guillaume Bourgeois 1 个月前
父节点
当前提交
aba1ee4a81
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. +5
    -2
      Controller/Address/AddressApiController.php

+ 5
- 2
Controller/Address/AddressApiController.php 查看文件

@@ -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) {

正在加载...
取消
保存