if (status == google.maps.GeocoderStatus.OK) {
hangout = results[0].geometry.location;
console.log(hangout);
console.log(hangout.lat);
}
我知道我在这里做错了什么,但它是什么?Hangout提醒lat LNG,但我如何获得lat本身。
根据文档:http://code.google.com/apis/maps/documentation/javascript/reference.html#LatLng
你可以使用:
hangout.lat()