<script>
let autocomplete;
function initializeAutoComplete() {
let input = document.getElementById('{{ inputId }}');
autocomplete = new google.maps.places.Autocomplete(input,{ types: ['address'] });
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key={{ GOOGLE_API_KEY }}&libraries=places&callback=initializeAutoComplete&language=en">
</script>