In \Drupal\geocoder\Geocoder::geocode there is:

$result = $provider->getPlugin()->geocode($data);
if (!isset($result) || $result->isEmpty()) {
throw new \Exception();
}

So when no result then empty (!) exception is thrown.

Comments

super_romeo created an issue. See original summary.

super_romeo’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new532 bytes
super_romeo’s picture

Status: Needs review » Fixed

Thanks for committing my patch!

duaelfr’s picture

I'm sorry I did not see your issue when I created #3164356: Provide a better feedback when unable to geocode / reverse which has been commited.
I hope you'll get some credit for your work!

super_romeo’s picture

:) Nevermind

itamair’s picture

thanks @super_romeo I just credited you for this (as empty) commit for the Gecoder project

super_romeo’s picture

Thank you! :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.