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

后端 未结 1 588
感动是毒
感动是毒 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)
提交回复
热议问题