googlemaps / googlemaps/react-wrapper

Set display language on locations to match Google Places API

未关闭
#552 0 条评论 0 个 reaction 已指派 1 人 已被 @wangela 认领 在 GitHub 查看
triage me type: question
主要语言
TypeScript
星标
381
派生
50
PR 合并指标
30 天内没有已合并 PR

描述

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)

```

```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。