Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

location.geometry.G
location.geometry.K

These represent the latitude and longitudes. I never read about these anywhere. Besides, all my codebase recently became unstable because it recently changed for the letters H & L.

This is weird, isn't it ? What did I miss ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
270 views
Welcome To Ask or Share your Answers For Others

1 Answer

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())


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...