user1633962
user1633962

Reputation: 21

Google Maps Javascript API Places Library

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

Answers (1)

Scott
Scott

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

&region=GB&language=en

Replace with the locale codes you need. See Language codes here

Upvotes: 3

Related Questions