Set display language on locations to match Google Places API

Offen
#552 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@wangela arbeitet bereits daran.

Seit 11.10.2022.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

triage me type: question

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

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

<script async
    src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&language=en">
</script>

Vorherrschende Sprache
TypeScript
Sterne
381
Forks
50
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus googlemaps/react-wrapper

Alle Issues in googlemaps/react-wrapper

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.