【发布时间】:2015-01-19 14:55:36
【问题描述】:
如何在通过自动完成获得的地方获得 latlngbound?
为了获得纬度,我使用以下代码
var place = places.getPlace();
var latitude = place.geometry.location.lat();
但是当我尝试使用以下代码获取 latlngbounds 时它不起作用
// northeast is undefined
var latlngbounds = place.geometry.bounds.northeast.lat();
// undefined
var latlngbounds = place.geometry.bounds;
【问题讨论】:
标签: google-maps-api-3 google-places-api