I have a Google maps API which gives the Google map address.Here is the code to get the Google map API:
<input name="add" type="text" id="address" class="required" style="width: 500px;">
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&libraries=places&language=en-AU"></script>
<script>
var autocomplete = new google.maps.places.Autocomplete($("#address")[0], {});
google.maps.event.addListener(autocomplete, 'place_changed', function() {
var place = autocomplete.getPlace();
console.log(place.address_components);
});
</script>
<!--code for Google address API-->
Now i also want the longitude And Latitude of entered address.any one have idea about this how can i get The values of longitude & Latitude of the entered address.
I got the answer :