google.maps.places.Autocomplete language output

后端 未结 2 1491

I am using google.maps.places.Autocomplete object and always get results in Ukrainian language.

I am loading library like that

http://maps.google.com/maps/api/js?s

2条回答
  •  清歌不尽
    2021-02-19 04:57

    According Docs

    "The API detects the browser settings of the user and set the language appropriately. It is possible to override the language in the APIs."

    That means, that the input will change according user language on the browser

    try on the script tag.

    
    

    take a look at this list of languages

    Edit:

    Try setting this on language parameter

    language=ru-RU
    

提交回复
热议问题