Skip to content

nadeeth/address-autocomplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published