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
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:
parent
47db6a2b14
commit
753a84dff2
@ -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')}")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user