I am completely baffled by this situation. Initially, the API was returning the Latitude and Longitude like this: (I believe it was in this format):
place.geometry.location.y
as Latitude
place.geometry.location.z
as Longitude
Then it suddenly changed to this:
place.geometry.location.Ya
as Latitude
place.geometry.location.Za
as Longitude
And today, when my APP stopped working, I realized that the Google API was providing the Lat and Lon like this:
place.geometry.location.$a
as Latitude
place.geometry.location.ab
as Longitude
What is going on? How can I handle this situation? I am considering just treating the first variable within locations as Latitude and the second as Longitude, regardless of their specific names. However, I am worried that the API could return a completely different object in the future, causing chaos in my javascript.
Has anyone else faced this issue? How did you handle it?