wpalahnuk / ngAutocomplete

Simple AngulasJS directive for adding google places autocomplete to a textbox element
425 stars 169 forks source link

Force language of returned address #32

Open sistemisolarirossi opened 10 years ago

sistemisolarirossi commented 10 years ago

Is it possible to force language google-places should use to return addresses? I mean: I need all street addresses to be formatted in the same language (for example, "Street ABC, Italy", and not "Strada ABC, Italia"), indipendently by client's browser language... I see in ngAutocomplete there is a "country" option, but I am not sure I understand it's meaning; but for sure it doesn't fulfill my need... :-(

martonbaranyai commented 10 years ago

I just found it here: https://developers.google.com/maps/documentation/javascript/basics#Localization

The solution in short is to specify the language when you include the google places api:

Githubissues.
  • Githubissues is a development platform for aggregating issues.