We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 397efd6 + dc0bd25 commit b41ad65Copy full SHA for b41ad65
src/Concerns/HasGooglePlaceApi.php
@@ -91,9 +91,17 @@ protected function getPlace(string $placeId)
91
{
92
$this->setGoogleApi();
93
94
- $addressData = $this->googlePlaces->placeDetails($placeId);
+ $detailParams = [];
95
96
- return $addressData;
+ if ($this->placesApiNew) {
97
+ $detailParams['languageCode'] = $this->params['languageCode'] ?? null;
98
+
99
+ return $this->googlePlaces->placeDetails($placeId, ['*'], $detailParams);
100
+ }
101
102
+ $detailParams['language'] = $this->params['language'] ?? null;
103
104
+ return $this->googlePlaces->placeDetails($placeId, $detailParams);
105
}
106
107
protected function getFormattedApiResults($data): array
0 commit comments