Skip to content

Instantly share code, notes, and snippets.

@masaki925
Last active December 11, 2015 19:18
Show Gist options
  • Save masaki925/4647233 to your computer and use it in GitHub Desktop.
Save masaki925/4647233 to your computer and use it in GitHub Desktop.
simple use for google auto complete
<!DOCTYPE html>
<html>
<head>
<title>Google Maps JavaScript API v3 Example: Places Autocomplete</title>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places"></script>
<script>
function initialize() {
var input = document.getElementById('searchTextField');
var autocomplete = new google.maps.places.Autocomplete(input);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<input id="searchTextField" type="text" size="50">
<img src="https://developers.google.com/maps/documentation/places/images/powered-by-google-on-white.png"/>
</body>
</html>
@masaki925
Copy link
Author

seems that we have to represente google logo if we don't use google map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment