Google maps - Weird geometry.location attributes (G, K)

后端 未结 1 604
感动是毒
感动是毒 2020-12-12 05:28

When I access the Places API, Google sends back an object with, among other things, these two properties :

location.geometry.G
location.geometry.K
         


        
1条回答
  •  情书的邮戳
    2020-12-12 05:43

    Those are undocumented properties of the API (the latitude and longitude of that particular google.maps.LatLng object)

    Access them reliably by using the documented methods (.lat(), .lng())

    0 讨论(0)
提交回复
热议问题