CodeCanU
← Back to products
JavaScript / Miscellaneous

Google Geocomplete

This plugin generates an autocomplet from an input field, so that you can retrieve an address and its associated geodata from Google and fill it into input fields. Initialize Include libraries <script src="https://maps.googleapis.com/maps/api/js?key=<strong>YOUR_API_KEY</strong>&libraries=places"></script> <script src="jquery.js"></script> <script src="google-geocomplete.js"></script> Create your Autocomplete Input field <input class="form-control" id="formatted_address" dat…

7.00 USDT

All source code listed on this site is collected from the internet. If any listing infringes your rights, please contact us and we will remove it immediately.

Description

This plugin generates an autocomplet from an input field, so that you can retrieve an address and its associated geodata from Google and fill it into input fields.

Initialize

Include libraries

<script src="https://maps.googleapis.com/maps/api/js?key=<strong>YOUR_API_KEY</strong>&libraries=places"></script> <script src="jquery.js"></script> <script src="google-geocomplete.js"></script>

Create your Autocomplete Input field

<input class="form-control" id="formatted_address" data-geo="formatted_address" value="">

Setup your fields, you can use type=”hidden” too

<input class="form-control" id="street" <b>data-geo="street"</b> name="" value=""> <input class="form-control" id="latitude" <b>data-geo="latitude"</b> name="" value=""> <input class="form-control" id="longitude" <b>data-geo="longitude"</b> name="" value="">

Call the plugin

<script> $(function() { $('.autocomplete').googleGeoAutocomplete({ OPTIONS }); }); </script>

Google Geocomplete

7.00 USDT
Buy now

After successful payment, you will receive a download link for the source code