Home / JavaScript / Google Geocomplete (Miscellaneous)

Google Geocomplete (Miscellaneous)

This plugin generates an autocomplet from an enter area, so as to retrieve an deal with and its related geodata from Google and fill it into enter fields.


Embody libraries

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

Create your Autocomplete Enter area

<enter class="form-control" id="formatted_address" data-geo="formatted_address" worth="">

Setup your fields, you should utilize sort=”hidden” too

<enter class="form-control" id="avenue" <b>data-geo="avenue"</b> title="" worth="">
<enter class="form-control" id="latitude" <b>data-geo="latitude"</b> title="" worth="">
<enter class="form-control" id="longitude" <b>data-geo="longitude"</b> title="" worth="">

Name the plugin

    $(operate() {

Best Price| | Preview

Source Link

About danroo