Browse Source

[frontoffice] Bug adresse

feature/export_comptable
Fab 4 years ago
parent
commit
ad27226655
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      ShopBundle/Services/Utils.php

+ 7
- 1
ShopBundle/Services/Utils.php View 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…
Cancel
Save