1<input type="text"required id="autocomplete">
2<script>
3function initAutocomplete() {
4 new google.maps.places.Autocomplete(
5 (document.getElementById('autocomplete')),
6 {types: ['geocode']}
7 );
8}
9</script>
10<script src="https://maps.googleapis.com/maps/api/js?key=&libraries=places&callback=initAutocomplete"
11 async defer></script>