Explorar el Código

[frontoffice] Bug adresse

feature/export_comptable
Fab hace 4 años
padre
commit
ad27226655
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. +7
    -1
      ShopBundle/Services/Utils.php

+ 7
- 1
ShopBundle/Services/Utils.php Ver fichero

@@ -305,7 +305,13 @@ class Utils
$provider = $this->getGeocoderProvider() ;;
$query = GeocodeQuery::create($query)->withData('type', 'housenumber');
$results = $provider->geocodeQuery($query);
return $results->all() ;
$resultsToReturn = array();
foreach($results as $result) {
if ($result->getStreetNumber() && strlen($result->getStreetNumber()) > 0) {
$resultsToReturn[] = $result;
}
}
return $resultsToReturn;
}

public function callReverseAddressApi($latitude, $longitude)

Cargando…
Cancelar
Guardar