Skip to content

Instantly share code, notes, and snippets.

Last active December 20, 2021 10:54
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Auto Complete Location using Google Map API
<!DOCTYPE html>
<script src=""></script>
<label for="locationTextField">Location</label>
<input id="locationTextField" type="text" size="50">
function init() {
var input = document.getElementById('locationTextField');
var autocomplete = new google.maps.places.Autocomplete(input);
google.maps.event.addDomListener(window, 'load', init);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment