Something happened to my google map api script

Don’t access undocumented properties like e.g. results[0].geometry.location.nb . The names of these properties may(and will) change. To access the values of these properties use the documented methods, e.g. lat() to access the latitude of a LatLng-instance:

document.getElementById('latitude').value 
    = results[0].geometry.location.lat().toPrecision(9);

Leave a Comment