<script type="text/javascript"src="https://maps.googleapis.com/maps/api/js?libraries=places&key=API_KEY"></script>
<input id="search" type="text">
var autoComplete = new google.maps.places.Autocomplete( document.getElementById(search), { types: ['(cities)']});
google.maps.event.addListener(autoComplete, 'place_changed', function() { var place = autocomplete.getPlace(); if (place.geometry) { map.panTo(place.geometry.location); map.setZoom(15); } });
Give us feedback in our Product Forums.