Google 地图 - 奇怪的 geometry.location 属性(G,K)
Google maps - Weird geometry.location attributes (G, K)
当我访问 Places API 时,Google 发回一个对象,其中包括以下两个属性:
location.geometry.G
location.geometry.K
这些代表纬度和经度。我从来没有在任何地方读到过这些。此外,我所有的代码库最近都变得不稳定,因为它最近更改为字母 H 和 L。
这很奇怪,不是吗?我错过了什么?
这些是 API 的未记录属性(特定 google.maps.LatLng 对象的纬度和经度)
使用记录的方法可靠地访问它们(.lat()
、.lng()
)
当我访问 Places API 时,Google 发回一个对象,其中包括以下两个属性:
location.geometry.G
location.geometry.K
这些代表纬度和经度。我从来没有在任何地方读到过这些。此外,我所有的代码库最近都变得不稳定,因为它最近更改为字母 H 和 L。
这很奇怪,不是吗?我错过了什么?
这些是 API 的未记录属性(特定 google.maps.LatLng 对象的纬度和经度)
使用记录的方法可靠地访问它们(.lat()
、.lng()
)