Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #google #maps #places #autocomplete #api
ADD COMMENT
Topic
Name
7+3 =