googlemaps / googlemaps/react-wrapper

Set display language on locations to match Google Places API

Đang mở
#552 0 bình luận 0 reaction 1 người được giao Được @wangela nhận Xem trên GitHub
triage me type: question
Ngôn ngữ chính
TypeScript
Star
381
Fork
50
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I am creating an app using google places api to search for autocomplete in a custom sidebar. We are using the autocomplete to search in our own dataset. We are using the map to display our custom data on the map.

The problem is that google places api shows results differently then the map.
For example: `Sevilla, Spain` from Google Places API is displayed as `Seville`.

I have set the language to `en` in the google places API and it would be helpful to figure out how to configure the locality on the displayed map as well so it matches the Google API.

![Screenshot 2022-10-11 at 09 50 08](https://user-images.githubusercontent.com/1506766/195030177-01e5c989-7e6d-45a8-94b1-7b03b37a22eb.png)

I think is a parameter in a default Google map? (see below)

```

```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.