fix: add languageCode=pl to Places API get_place_details
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

Reviews and business type names were returned in English because
the get_place_details endpoint lacked the languageCode parameter,
unlike searchText and searchNearby which already had it.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-03-13 12:37:26 +01:00
parent 47db6a2b14
commit 753a84dff2

View File

@ -123,8 +123,12 @@ class GooglePlacesService:
'X-Goog-FieldMask': field_mask
}
params = {
'languageCode': 'pl',
}
try:
response = self.session.get(url, headers=headers, timeout=15)
response = self.session.get(url, headers=headers, params=params, timeout=15)
response.raise_for_status()
data = response.json()
logger.info(f"Fetched place details for {place_id}: {data.get('displayName', {}).get('text', 'unknown')}")