Clone this repository or download the latest build.
Include jQuery library and google maps API places library:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&libraries=places"></script>
Include address-autocomplete.js after the jQuery library:
<script src="/path/to/address-autocomplete.js"></script>
$(function() {
$("#autocomplete").auto_address(); // 'autocomplete' is the id of the text box to be auto filled.
});
user_region : false
Bias the autocomplete object to the user's geographical location, as supplied by the browser's 'navigator.geolocation' object. Default value is 'true'.
Ex:
$("#autocomplete").auto_address({
user_region : false
});
http://nadeeth.github.io/address-autocomplete
Please track issues, bugs, and feature requests in this tracker.