html - How do I get the Google Autofill to return positional information -


i using google address api autofill address form. want latitude , longitude. api call working , gives me address components. how give me latitude , longitude ?

i can not find document on other components can return. options portion

var componentform = {   street_number: 'short_name',   route: 'long_name',   locality: 'long_name',   administrative_area_level_1: 'short_name',   country: 'long_name',   postal_code: 'short_name' }; 

this form , code using https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform

are looking similar this?

http://codepen.io/algib/pen/kpxzpy

have looked calling

place.geometry.location.lat(); place.geometry.location.lng(); 

Comments