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