Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.36 KB

README.md

File metadata and controls

53 lines (33 loc) · 1.36 KB

Address Autocomplete with Google Maps

Installation

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>

Usage

$(function() {
    $("#autocomplete").auto_address(); // 'autocomplete' is the id of the text box to be auto filled. 
});

Options

user_region

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
});

Demo

http://nadeeth.github.io/address-autocomplete

Issues & Suggestions

Please track issues, bugs, and feature requests in this tracker.

https://github.com/nadeeth/address-autocomplete/issues