diff --git a/src/Geocoder.php b/src/Geocoder.php index aadbfc2..79f33eb 100644 --- a/src/Geocoder.php +++ b/src/Geocoder.php @@ -112,7 +112,7 @@ private function queryEndpoint(array $params): array throw new Exception(sprintf('Geocoder api returned error: %s', $result['error_message'])); } - if (empty($result['items'])) { + if (empty($result['results'])) { $status = $result['status'] ?: 'no results'; throw new Exception(sprintf( 'Geocode api returned %s for query %s',