google.maps.Geocoder.geocode() geometry.location lat/lng property names change frequently

Use the documented properties, they will not change

geometry.location is a google.maps.LatLng object, the documented methods are:

lat()   number  Returns the latitude in degrees.
lng()   number  Returns the longitude in degrees.

Leave a Comment