现在我用
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=<my api key>&sensor=false&libraries=places">
</script>
但似乎错了
答案 0 :(得分:0)
找到了解决此问题的方法:
var options = {
types: ['(cities)']
};
var autocomplete = new google.maps.places.Autocomplete(input, options);