我想展示城市和国家,但我只是城市
这有效
var options = {
types: ['(cities)'],
};
var autocomplete = new google.maps.places.Autocomplete(input, options);
这不起作用
types: ['(cities)','(coutry)'],
types: ['(cities),(coutry)'],
types: ['(cities,coutry)'],
答案 0 :(得分:1)
迟到总比没有好,我认为
types: ['(cities,country)']