Sfoglia il codice sorgente

[frontoffice] Bug adresse

feature/export_comptable
Fab 4 anni fa
parent
commit
ad27226655
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. +7
    -1
      ShopBundle/Services/Utils.php

+ 7
- 1
ShopBundle/Services/Utils.php Vedi File

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

Loading…
Annulla
Salva