Answers for "google maps places autocomplete api"

3

google maps places autocomplete api

<input type="text"required id="autocomplete">
<script>
function initAutocomplete() {
   new google.maps.places.Autocomplete(
          (document.getElementById('autocomplete')),
          {types: ['geocode']}
   );
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=&libraries=places&callback=initAutocomplete"
                async defer></script>
Posted by: Guest on May-05-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language