@@ -85,7 +85,11 @@ class CitiesComponent | |||
public function callAddressApi($query) | |||
{ | |||
$provider = $this->getGeocoderProvider() ;; | |||
if(is_null($query)) { | |||
$query = ''; | |||
} | |||
$provider = $this->getGeocoderProvider() ; | |||
$query = GeocodeQuery::create($query)->withData('type', 'housenumber'); | |||
$results = $provider->geocodeQuery($query); | |||
$resultsToReturn = array(); |