Skip to content

Instantly share code, notes, and snippets.

@Acarus
Created October 24, 2015 17:42
Show Gist options
  • Save Acarus/a898d0dfd2b787f345ad to your computer and use it in GitHub Desktop.
Save Acarus/a898d0dfd2b787f345ad to your computer and use it in GitHub Desktop.
checkpoint autocomplete
<html>
<head>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places"></script>
</head>
<body>
<input id="searchTextField" type="text" size="50">
<script>
function initialize() {
var input = document.getElementById('searchTextField');
var autocomplete = new google.maps.places.Autocomplete(input);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment