Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set display language on locations to match Google Places API #552

Open
marteloge opened this issue Oct 11, 2022 · 0 comments
Open

Set display language on locations to match Google Places API #552

marteloge opened this issue Oct 11, 2022 · 0 comments
Assignees
Labels
triage me I really want to be triaged. type: question Request for information or clarification. Not an issue.

Comments

@marteloge
Copy link

marteloge commented Oct 11, 2022

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>

@marteloge marteloge added triage me I really want to be triaged. type: question Request for information or clarification. Not an issue. labels Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants