I am using the Autocomplete method to get Place Suggestions and when I click the Place I want to choose, I want to extract the Lat
and Lng
which is
place.geometry.location
is a LatLng, so you can call its .lat()
and .lng()
methods.
var location = place.geometry.location;
var lat = location.lat();
var lng = location.lng();
You'll see that these methods are present in your inspection of this object.
Never use undocumented properties such as the ib
and jb
you discovered. Google compiles the Maps API using the Closure Compiler or a similar tool, which generates random names for private properties and variables.