Closed acomito closed 8 years ago
covered here: https://github.com/jshimko/meteor-geocomplete/issues/7
result.geometry.location.lat
is a function.
this.autorun(function () {
if (GoogleMaps.loaded()) {
$("#Location_Input")
.geocomplete()
.bind("geocode:result", function(event, result){
const lat = result.geometry.location.lat();
const lng = result.geometry.location.lng();
console.log('Latitude: ', lat);
console.log('Longitude: ', lng);
});
}
});
When I console log the following, I am not getting anything... it says
function (){return a}
Everything else the input returns (that isn't in an object) returns fine.