Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Google Maps: Ajouter l'autocomplete des adresses sur un champ input
<!doctype html>
<!-- Voir https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete?csw=1 -->
<html>
<head>
<title>test Gmap</title>
<meta charset="utf-8" />
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?libraries=places"></script>
<script type="text/javascript">
$(function () {
var input = (document.getElementById('test'));
var autocomplete = new google.maps.places.Autocomplete(input);
});
</script>
</head>
<body>
<form action="#" method="post">
<input name="Test" type="text" value="" id="test"/>
<input name="submit" type="submit" value="ok"/>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment