Reputation: 21
Why Google Maps Javascript API Places Library are returning the string "Republica Federativa do Brasil" instead of "Brasil" for the country Brazil in autocomplete function?
It's causing me several problem in my application. Can you help?
Upvotes: 2
Views: 464
Reputation: 21521
This looks like a locale issue. You can specify the locale you want to return. See here: https://developers.google.com/maps/documentation/javascript/basics#Localization
®ion=GB&language=en
Replace with the locale codes you need. See Language codes here
Upvotes: 3