Google Map JS API changed event.latLng.* property names

google-maps, javascript

Solution

Oh I understand now, those properties are supposed to be private attributes. Thanks again Javascript...

Answer: correct way of getting latitude and longitude would be `latLng.lat()` and `latLng.lng()`

Problem

Did Google Maps just changed the property names from `event.latLng.d` to `event.latLng.A` (Latitude) and from `event.latLng.e` to `event.latLng.k` (Longitude)? I just noticed cause an entire webapp function just broke down and I was like 2 hours looking for it until I decided to log responses from Google Maps. It also changed on `TextSearch` from Places Library The question would be why? did they notified? is this a normal thing? give me something please

Original source