Google maps 如何在google.maps.places.autocomplete上设置一些类型?

Google maps 如何在google.maps.places.autocomplete上设置一些类型?,google-maps,Google Maps,我想展示城市和国家,但我只看到城市 这很有效 var options = { types: ['(cities)'], }; var autocomplete = new google.maps.places.Autocomplete(input, options); 这行不通 types: ['(cities)','(coutry)'], types: ['(cities),(coutry)'], types: ['(citi

我想展示城市和国家,但我只看到城市

这很有效

    var options = {
      types: ['(cities)'],
    };

    var autocomplete = new google.maps.places.Autocomplete(input, options);
这行不通

    types: ['(cities)','(coutry)'],

    types: ['(cities),(coutry)'],

    types: ['(cities,coutry)'],

迟做总比不做好我想这是可行的

types: ['(cities,country)']

迟做总比不做好我想这是可行的

types: ['(cities,country)']