if (status == google.maps.GeocoderStatus.OK) {
hangout = results[0].geometry.location;
console.log(hangout);
console.log(hangout.lat);
}
我知道我在这里做错了什么,但这是什么?Hangout 会提醒 lat lng,但我如何自己获取 lat。
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()