Google Place Autocomplete In jQuery - Download Minimal Google Place Autocomplete In jQuery - Address Suggestion

Download Minimal Google Place Autocomplete In jQuery – Address Suggestion

Posted on

This time I will share jQuery Plugin and tutorial about Minimal Google Place Autocomplete In jQuery – Address Suggestion, hope it will help you in programming stack.

Google Place Autocomplete In jQuery - Download Minimal Google Place Autocomplete In jQuery - Address Suggestion
File Size: 6.83 KB
Views Total: 2160
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Address Suggestion a lightweight jQuery address/place picker plugin that allows to autocomplete, search places using Google Map Geocode API.

How to use it:

1. Put jQuery library and the jQuery Address Suggestion plugin’s files in the html file.

1 <link rel="stylesheet" href="jquery.address-suggest.css">
2 <script src="//code.jquery.com/jquery.min.js"></script>
3 <script src="jquery.address-suggest.js"></script>

2. Create the address, number, street, zip, town, department, region and country input fields for the place picker.

1 <input type="text" class="form-control" id="number">
2 <input type="text" class="form-control" id="street">
3 <input type="text" class="form-control" id="zip">
4 <input type="text" class="form-control" id="town">
5 <input type="text" class="form-control" id="department">
6 <input type="text" class="form-control" id="region">
7 <input type="text" class="form-control" id="country">

3. Activate the address/place picker with default options.

1 $("input#address").suggest();

4. All default options to customize the address/place picker.

01 $("input#address").suggest({
02   label : "Formatted address",
03   street_number_input : {
04     id : "number",
05     label : "Street number"
06   },
07   street_name_input : {
08     id : "street",
09     label : "Street"
10   },
11   zip_input : {
12     id : "zip",
13     label : "Zip code"
14   },
15   town_input : {
16     id : "town",
17     label : "Town"
18   },
19   department_input : {
20     id : "department",
21     label : "Department"
22   },
23   region_input : {
24     id : "region",
25     label : "Region"
26   },
27   country_input : {
28     id : "country",
29     label : "Country"
30   }
31 });

This awesome jQuery plugin is developed by meyacine. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net