diff --git a/src/Service/Geocoder.php b/src/Service/Geocoder.php index 6ba10e0..72e4ec9 100644 --- a/src/Service/Geocoder.php +++ b/src/Service/Geocoder.php @@ -30,6 +30,10 @@ class Geocoder return null; } + if (array_key_exists('error', $data)) { + return null; + } + return $this->createLatLongModel($data); }