How to load following script in meteor


#1

function initialize() {
// Create the autocomplete object, restricting the search
// to geographical location types.
autocomplete = new google.maps.places.Autocomplete(
/** @type {HTMLInputElement} */ (document.getElementById(‘autocomplete’)), {
types: [‘geocode’]
});
// When the user selects an address from the dropdown,
// populate the address fields in the form.
google.maps.event.addListener(autocomplete, ‘place_changed’, function () {
fillInAddress();
});
}

<script src = "https://maps.googleapis.com/maps/api/js?key=AIzaSyAqWN_l8JRtOekhyyxblB3Vy3aSJENNaa8&libraries=places&callback=initialize"
async defer></script>


#2

This would depend on your front-end library.