google.maps.Geocoder.geocode() geometry.location lat/lng property names change frequently
I have an application, and I'm using the Google Javascript Geocoding API to fetch lat/lng for an address. The code goes something like geocoder = new google.maps.Geocoder() geocoder.geocode({ 'address': query }, function(results, status) { addresses = {}; $.each(results, function(index, value){ addresses[index] = {"lat":value.geometry.location.$a,"lng":value.geometry.location.ab} }) }); All is fine and dandy, but the thing is that the property names of the location object periodically change. Each time they change, my site breaks. Twice I've had to change my code to accommodate the weird lat