Created
April 15, 2016 13:59
-
-
Save TimDorand/456f49e075e7cacb5c9d264a73f33beb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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 options = { | |
types: ['geocode'], | |
types: ['(regions)'], | |
componentRestrictions: {country: 'fr'} | |
}; | |
autocomplete = new google.maps.places.Autocomplete(input, options); | |
} | |
google.maps.event.addDomListener(window, 'load', initialize); | |
</script> | |
<div> | |
<input id="searchTextField" type="text" size="50"> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment