How to get lat and lng from Google autocomplete?

<input id="location_input" type="text" onchange="console.log(getLatLngFromAddress(this.value));" name="location_input"class="input-prompt" placeholder="Specify where your event will happen.">

function initialize() {
var input = document.getElementById('location_input');
var autocomplete = new google.maps.places.Autocomplete(input);

google.maps.event.addDomListener(window, 'load', initialize);

I am using the above code for auto completing of addresses. How can I get the lat and lng as well?
1 person has
this question
This topic is no longer open for comments or replies.